Package com.google.cloud.batch.v1alpha
Class AllocationPolicy.InstancePolicy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.batch.v1alpha.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.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAccelerators(int index) The accelerators attached to each VM instance.intThe accelerators attached to each VM instance.The accelerators attached to each VM instance.getAcceleratorsOrBuilder(int index) The accelerators attached to each VM instance.List<? extends AllocationPolicy.AcceleratorOrBuilder>The accelerators attached to each VM instance.getAllowedMachineTypes(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.com.google.protobuf.ByteStringgetAllowedMachineTypesBytes(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.intDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.com.google.protobuf.ProtocolStringListDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.Boot disk to be created and attached to each VM by this InstancePolicy.Boot disk to be created and attached to each VM by this InstancePolicy.static final com.google.protobuf.Descriptors.DescriptorgetDisks(int index) Non-boot disks to be attached for each VM created by this InstancePolicy.intNon-boot disks to be attached for each VM created by this InstancePolicy.Non-boot disks to be attached for each VM created by this InstancePolicy.getDisksOrBuilder(int index) Non-boot disks to be attached for each VM created by this InstancePolicy.List<? extends AllocationPolicy.AttachedDiskOrBuilder>Non-boot disks to be attached for each VM created by this InstancePolicy.The Compute Engine machine type.com.google.protobuf.ByteStringThe Compute Engine machine type.The minimum CPU platform.com.google.protobuf.ByteStringThe minimum CPU platform.com.google.protobuf.Parser<AllocationPolicy.InstancePolicy>The provisioning model.intThe provisioning model.Optional.com.google.protobuf.ByteStringOptional.intbooleanBoot disk to be created and attached to each VM by this InstancePolicy.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(AllocationPolicy.InstancePolicy prototype) protected AllocationPolicy.InstancePolicy.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AllocationPolicy.InstancePolicy>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ALLOWED_MACHINE_TYPES_FIELD_NUMBER
public static final int ALLOWED_MACHINE_TYPES_FIELD_NUMBER- See Also:
-
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER- See Also:
-
MIN_CPU_PLATFORM_FIELD_NUMBER
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER- See Also:
-
PROVISIONING_MODEL_FIELD_NUMBER
public static final int PROVISIONING_MODEL_FIELD_NUMBER- See Also:
-
ACCELERATORS_FIELD_NUMBER
public static final int ACCELERATORS_FIELD_NUMBER- See Also:
-
BOOT_DISK_FIELD_NUMBER
public static final int BOOT_DISK_FIELD_NUMBER- See Also:
-
DISKS_FIELD_NUMBER
public static final int DISKS_FIELD_NUMBER- See Also:
-
RESERVATION_FIELD_NUMBER
public static final int RESERVATION_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getAllowedMachineTypesList
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Specified by:
getAllowedMachineTypesListin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- A list containing the allowedMachineTypes.
-
getAllowedMachineTypesCount
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Specified by:
getAllowedMachineTypesCountin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The count of allowedMachineTypes.
-
getAllowedMachineTypes
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Specified by:
getAllowedMachineTypesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedMachineTypes at the given index.
-
getAllowedMachineTypesBytes
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Specified by:
getAllowedMachineTypesBytesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedMachineTypes at the given index.
-
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
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.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Specified by:
getProvisioningModelValuein interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The enum numeric value on the wire for provisioningModel.
-
getProvisioningModel
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Specified by:
getProvisioningModelin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The provisioningModel.
-
getAcceleratorsList
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsOrBuilderList
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsOrBuilderListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsCountin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAccelerators
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsOrBuilder
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.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.v1alpha.AllocationPolicy.Disk boot_disk = 8;- Specified by:
hasBootDiskin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- Whether the bootDisk field is set.
-
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.v1alpha.AllocationPolicy.Disk boot_disk = 8;- Specified by:
getBootDiskin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bootDisk.
-
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.v1alpha.AllocationPolicy.Disk boot_disk = 8;- Specified by:
getBootDiskOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
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.v1alpha.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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksCountin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisks
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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisksOrBuilder
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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
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];- Specified by:
getReservationin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The reservation.
-
getReservationBytes
public 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];- Specified by:
getReservationBytesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bytes for reservation.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static AllocationPolicy.InstancePolicy.Builder newBuilder(AllocationPolicy.InstancePolicy prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AllocationPolicy.InstancePolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-