Class AllocationPolicy.InstancePolicy (0.2.0)

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AllocationPolicy.InstancePolicy

Static Fields

ACCELERATORS_FIELD_NUMBER

public static final int ACCELERATORS_FIELD_NUMBER
Field Value
TypeDescription
int

ALLOWED_MACHINE_TYPES_FIELD_NUMBER

public static final int ALLOWED_MACHINE_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

DISKS_FIELD_NUMBER

public static final int DISKS_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_CPU_PLATFORM_FIELD_NUMBER

public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
Field Value
TypeDescription
int

PROVISIONING_MODEL_FIELD_NUMBER

public static final int PROVISIONING_MODEL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AllocationPolicy.InstancePolicy getDefaultInstance()
Returns
TypeDescription
AllocationPolicy.InstancePolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AllocationPolicy.InstancePolicy.Builder newBuilder()
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

newBuilder(AllocationPolicy.InstancePolicy prototype)

public static AllocationPolicy.InstancePolicy.Builder newBuilder(AllocationPolicy.InstancePolicy prototype)
Parameter
NameDescription
prototypeAllocationPolicy.InstancePolicy
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

parseDelimitedFrom(InputStream input)

public static AllocationPolicy.InstancePolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.InstancePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AllocationPolicy.InstancePolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.InstancePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AllocationPolicy.InstancePolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.InstancePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AllocationPolicy.InstancePolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.InstancePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AllocationPolicy.InstancePolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.InstancePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AllocationPolicy.InstancePolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.InstancePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.InstancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AllocationPolicy.InstancePolicy> parser()
Returns
TypeDescription
Parser<InstancePolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAccelerators(int index)

public AllocationPolicy.Accelerator getAccelerators(int index)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.Accelerator

getAcceleratorsCount()

public int getAcceleratorsCount()

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
int

getAcceleratorsList()

public List<AllocationPolicy.Accelerator> getAcceleratorsList()

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
List<Accelerator>

getAcceleratorsOrBuilder(int index)

public AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.AcceleratorOrBuilder

getAcceleratorsOrBuilderList()

public List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
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=331

repeated string allowed_machine_types = 1 [deprecated = true];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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=331

repeated string allowed_machine_types = 1 [deprecated = true];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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=331

repeated string allowed_machine_types = 1 [deprecated = true];

Returns
TypeDescription
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=331

repeated string allowed_machine_types = 1 [deprecated = true];

Returns
TypeDescription
ProtocolStringList

A list containing the allowedMachineTypes.

getDefaultInstanceForType()

public AllocationPolicy.InstancePolicy getDefaultInstanceForType()
Returns
TypeDescription
AllocationPolicy.InstancePolicy

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 attached VM is deleted.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.AttachedDisk

getDisksCount()

public int getDisksCount()

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
int

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 attached VM is deleted.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
List<AttachedDisk>

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 attached VM is deleted.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.AttachedDiskOrBuilder

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 attached VM is deleted.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder>

getMachineType()

public String getMachineType()

The Compute Engine machine type.

string machine_type = 2;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The Compute Engine machine type.

string machine_type = 2;

Returns
TypeDescription
ByteString

The bytes for machineType.

getMinCpuPlatform()

public String getMinCpuPlatform()

The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

string min_cpu_platform = 3;

Returns
TypeDescription
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public ByteString getMinCpuPlatformBytes()

The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

string min_cpu_platform = 3;

Returns
TypeDescription
ByteString

The bytes for minCpuPlatform.

getParserForType()

public Parser<AllocationPolicy.InstancePolicy> getParserForType()
Returns
TypeDescription
Parser<InstancePolicy>
Overrides

getProvisioningModel()

public AllocationPolicy.ProvisioningModel getProvisioningModel()

The provisioning model.

.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;

Returns
TypeDescription
AllocationPolicy.ProvisioningModel

The provisioningModel.

getProvisioningModelValue()

public int getProvisioningModelValue()

The provisioning model.

.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for provisioningModel.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AllocationPolicy.InstancePolicy.Builder newBuilderForType()
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AllocationPolicy.InstancePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AllocationPolicy.InstancePolicy.Builder toBuilder()
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException