public static final class AllocationPolicy.InstancePolicy extends GeneratedMessageV3 implements AllocationPolicy.InstancePolicyOrBuilder
InstancePolicy describes an instance type and resources attached to each VM
created by this InstancePolicy.
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy
Static Fields
ACCELERATORS_FIELD_NUMBER
public static final int ACCELERATORS_FIELD_NUMBER
Field Value
ALLOWED_MACHINE_TYPES_FIELD_NUMBER
public static final int ALLOWED_MACHINE_TYPES_FIELD_NUMBER
Field Value
BOOT_DISK_FIELD_NUMBER
public static final int BOOT_DISK_FIELD_NUMBER
Field Value
DISKS_FIELD_NUMBER
public static final int DISKS_FIELD_NUMBER
Field Value
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
Field Value
PROVISIONING_MODEL_FIELD_NUMBER
public static final int PROVISIONING_MODEL_FIELD_NUMBER
Field Value
RESERVATION_FIELD_NUMBER
public static final int RESERVATION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AllocationPolicy.InstancePolicy getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AllocationPolicy.InstancePolicy.Builder newBuilder()
Returns
newBuilder(AllocationPolicy.InstancePolicy prototype)
public static AllocationPolicy.InstancePolicy.Builder newBuilder(AllocationPolicy.InstancePolicy prototype)
Parameter
Returns
public static AllocationPolicy.InstancePolicy parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocationPolicy.InstancePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AllocationPolicy.InstancePolicy parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.InstancePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AllocationPolicy.InstancePolicy parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.InstancePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocationPolicy.InstancePolicy parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AllocationPolicy.InstancePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocationPolicy.InstancePolicy parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocationPolicy.InstancePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AllocationPolicy.InstancePolicy parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.InstancePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AllocationPolicy.InstancePolicy> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAccelerators(int index)
public AllocationPolicy.Accelerator getAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Parameter
Name |
Description |
index |
int
|
Returns
getAcceleratorsCount()
public int getAcceleratorsCount()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Returns
getAcceleratorsList()
public List<AllocationPolicy.Accelerator> getAcceleratorsList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Returns
getAcceleratorsOrBuilder(int index)
public AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Parameter
Name |
Description |
index |
int
|
Returns
getAcceleratorsOrBuilderList()
public List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Returns
Type |
Description |
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AcceleratorOrBuilder> |
|
getAllowedMachineTypes(int index) (deprecated)
public String getAllowedMachineTypes(int index)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types
is deprecated. See google/cloud/batch/v1alpha/job.proto;l=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Parameter
Name |
Description |
index |
int
The index of the element to return.
|
Returns
Type |
Description |
String |
The allowedMachineTypes at the given index.
|
getAllowedMachineTypesBytes(int index) (deprecated)
public ByteString getAllowedMachineTypesBytes(int index)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types
is deprecated. See google/cloud/batch/v1alpha/job.proto;l=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Parameter
Name |
Description |
index |
int
The index of the value to return.
|
Returns
Type |
Description |
ByteString |
The bytes of the allowedMachineTypes at the given index.
|
getAllowedMachineTypesCount() (deprecated)
public int getAllowedMachineTypesCount()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types
is deprecated. See google/cloud/batch/v1alpha/job.proto;l=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Returns
Type |
Description |
int |
The count of allowedMachineTypes.
|
getAllowedMachineTypesList() (deprecated)
public ProtocolStringList getAllowedMachineTypesList()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types
is deprecated. See google/cloud/batch/v1alpha/job.proto;l=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Returns
getBootDisk()
public AllocationPolicy.Disk getBootDisk()
Book disk to be created and attached to each VM by this InstancePolicy.
Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Returns
getBootDiskOrBuilder()
public AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder()
Book disk to be created and attached to each VM by this InstancePolicy.
Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Returns
getDefaultInstanceForType()
public AllocationPolicy.InstancePolicy getDefaultInstanceForType()
Returns
getDisks(int index)
public 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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Parameter
Name |
Description |
index |
int
|
Returns
getDisksCount()
public 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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Returns
getDisksList()
public 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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Returns
getDisksOrBuilder(int index)
public 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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Parameter
Name |
Description |
index |
int
|
Returns
getDisksOrBuilderList()
public 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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Returns
Type |
Description |
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder> |
|
getMachineType()
public String getMachineType()
The Compute Engine machine type.
string machine_type = 2;
Returns
Type |
Description |
String |
The machineType.
|
getMachineTypeBytes()
public ByteString getMachineTypeBytes()
The Compute Engine machine type.
string machine_type = 2;
Returns
Type |
Description |
ByteString |
The bytes for machineType.
|
public String getMinCpuPlatform()
Returns
Type |
Description |
String |
The minCpuPlatform.
|
public ByteString getMinCpuPlatformBytes()
Returns
Type |
Description |
ByteString |
The bytes for minCpuPlatform.
|
getParserForType()
public Parser<AllocationPolicy.InstancePolicy> getParserForType()
Returns
Overrides
getProvisioningModel()
public AllocationPolicy.ProvisioningModel getProvisioningModel()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
Returns
getProvisioningModelValue()
public int getProvisioningModelValue()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
Returns
Type |
Description |
int |
The enum numeric value on the wire for provisioningModel.
|
getReservation()
public String getReservation()
If specified, VMs will be allocated only inside the matching reservation.
string reservation = 7;
Returns
Type |
Description |
String |
The reservation.
|
getReservationBytes()
public ByteString getReservationBytes()
If specified, VMs will be allocated only inside the matching reservation.
string reservation = 7;
Returns
Type |
Description |
ByteString |
The bytes for reservation.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasBootDisk()
public boolean hasBootDisk()
Book disk to be created and attached to each VM by this InstancePolicy.
Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Returns
Type |
Description |
boolean |
Whether the bootDisk field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AllocationPolicy.InstancePolicy.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AllocationPolicy.InstancePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AllocationPolicy.InstancePolicy.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions