Package com.google.cloud.batch.v1
Class AllocationPolicy.InstancePolicy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy
-
- All Implemented Interfaces:
AllocationPolicy.InstancePolicyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- AllocationPolicy
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 typegoogle.cloud.batch.v1.AllocationPolicy.InstancePolicy- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAllocationPolicy.InstancePolicy.BuilderInstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.-
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_FIELD_NUMBERstatic intDISKS_FIELD_NUMBERstatic intMACHINE_TYPE_FIELD_NUMBERstatic intMIN_CPU_PLATFORM_FIELD_NUMBERstatic intPROVISIONING_MODEL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AllocationPolicy.AcceleratorgetAccelerators(int index)The accelerators attached to each VM instance.intgetAcceleratorsCount()The accelerators attached to each VM instance.List<AllocationPolicy.Accelerator>getAcceleratorsList()The accelerators attached to each VM instance.AllocationPolicy.AcceleratorOrBuildergetAcceleratorsOrBuilder(int index)The accelerators attached to each VM instance.List<? extends AllocationPolicy.AcceleratorOrBuilder>getAcceleratorsOrBuilderList()The accelerators attached to each VM instance.AllocationPolicy.DiskgetBootDisk()Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.DiskOrBuildergetBootDiskOrBuilder()Boot disk to be created and attached to each VM by this InstancePolicy.static AllocationPolicy.InstancePolicygetDefaultInstance()AllocationPolicy.InstancePolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()AllocationPolicy.AttachedDiskgetDisks(int index)Non-boot disks to be attached for each VM created by this InstancePolicy.intgetDisksCount()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.AttachedDiskOrBuildergetDisksOrBuilder(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.StringgetMachineType()The Compute Engine machine type.com.google.protobuf.ByteStringgetMachineTypeBytes()The Compute Engine machine type.StringgetMinCpuPlatform()The minimum CPU platform.com.google.protobuf.ByteStringgetMinCpuPlatformBytes()The minimum CPU platform.com.google.protobuf.Parser<AllocationPolicy.InstancePolicy>getParserForType()AllocationPolicy.ProvisioningModelgetProvisioningModel()The provisioning model.intgetProvisioningModelValue()The provisioning model.intgetSerializedSize()booleanhasBootDisk()Boot disk to be created and attached to each VM by this InstancePolicy.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AllocationPolicy.InstancePolicy.BuildernewBuilder()static AllocationPolicy.InstancePolicy.BuildernewBuilder(AllocationPolicy.InstancePolicy prototype)AllocationPolicy.InstancePolicy.BuildernewBuilderForType()protected AllocationPolicy.InstancePolicy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AllocationPolicy.InstancePolicyparseDelimitedFrom(InputStream input)static AllocationPolicy.InstancePolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicy.InstancePolicyparseFrom(byte[] data)static AllocationPolicy.InstancePolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicy.InstancePolicyparseFrom(com.google.protobuf.ByteString data)static AllocationPolicy.InstancePolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicy.InstancePolicyparseFrom(com.google.protobuf.CodedInputStream input)static AllocationPolicy.InstancePolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicy.InstancePolicyparseFrom(InputStream input)static AllocationPolicy.InstancePolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicy.InstancePolicyparseFrom(ByteBuffer data)static AllocationPolicy.InstancePolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AllocationPolicy.InstancePolicy>parser()AllocationPolicy.InstancePolicy.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, internalGetMapField, 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
-
MIN_CPU_PLATFORM_FIELD_NUMBER
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROVISIONING_MODEL_FIELD_NUMBER
public static final int PROVISIONING_MODEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCELERATORS_FIELD_NUMBER
public static final int ACCELERATORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_DISK_FIELD_NUMBER
public static final int BOOT_DISK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISKS_FIELD_NUMBER
public static final int DISKS_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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getMachineType
public String getMachineType()
The Compute Engine machine type.
string machine_type = 2;- Specified by:
getMachineTypein interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
The Compute Engine machine type.
string machine_type = 2;- Specified by:
getMachineTypeBytesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bytes for machineType.
-
getMinCpuPlatform
public String getMinCpuPlatform()
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;- Specified by:
getMinCpuPlatformin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
public 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;- Specified by:
getMinCpuPlatformBytesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bytes for minCpuPlatform.
-
getProvisioningModelValue
public int getProvisioningModelValue()
The provisioning model.
.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Specified by:
getProvisioningModelValuein interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The enum numeric value on the wire for provisioningModel.
-
getProvisioningModel
public AllocationPolicy.ProvisioningModel getProvisioningModel()
The provisioning model.
.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Specified by:
getProvisioningModelin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The provisioningModel.
-
getAcceleratorsList
public List<AllocationPolicy.Accelerator> getAcceleratorsList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsOrBuilderList
public List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsOrBuilderListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsCountin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAccelerators
public AllocationPolicy.Accelerator getAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsOrBuilder
public AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
hasBootDisk
public 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;- Specified by:
hasBootDiskin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- Whether the bootDisk field is set.
-
getBootDisk
public 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;- Specified by:
getBootDiskin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bootDisk.
-
getBootDiskOrBuilder
public 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;- Specified by:
getBootDiskOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
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. 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;- Specified by:
getDisksListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
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. 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;- Specified by:
getDisksOrBuilderListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
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. 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;- Specified by:
getDisksCountin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisks
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. 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;- Specified by:
getDisksin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisksOrBuilder
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. 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;- Specified by:
getDisksOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
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 AllocationPolicy.InstancePolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy.InstancePolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy.InstancePolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy.InstancePolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy.InstancePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy.InstancePolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy.InstancePolicy parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AllocationPolicy.InstancePolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AllocationPolicy.InstancePolicy parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AllocationPolicy.InstancePolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AllocationPolicy.InstancePolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AllocationPolicy.InstancePolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AllocationPolicy.InstancePolicy.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AllocationPolicy.InstancePolicy.Builder newBuilder()
-
newBuilder
public static AllocationPolicy.InstancePolicy.Builder newBuilder(AllocationPolicy.InstancePolicy prototype)
-
toBuilder
public AllocationPolicy.InstancePolicy.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AllocationPolicy.InstancePolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AllocationPolicy.InstancePolicy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AllocationPolicy.InstancePolicy> parser()
-
getParserForType
public com.google.protobuf.Parser<AllocationPolicy.InstancePolicy> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AllocationPolicy.InstancePolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-