Package com.google.cloud.batch.v1alpha
Class AllocationPolicy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.batch.v1alpha.AllocationPolicy
- All Implemented Interfaces:
AllocationPolicyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AllocationPolicy
extends com.google.protobuf.GeneratedMessage
implements AllocationPolicyOrBuilder
A Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.Protobuf type
google.cloud.batch.v1alpha.AllocationPolicy- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAccelerator describes Compute Engine accelerators to be attached to the VM.static interfacestatic final classA new or an existing persistent disk (PD) or a local ssd attached to a VM instance.static interfacestatic final classA Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.static final classA new persistent disk or a local ssd.static interfacestatic final classInstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.static interfacestatic final classInstancePolicyOrTemplate lets you define the type of resources to use for this job either with an InstancePolicy or an instance template.static interfacestatic final classProtobuf typegoogle.cloud.batch.v1alpha.AllocationPolicy.LocationPolicystatic interfacestatic final classA network interface.static interfacestatic final classNetworkPolicy describes VM instance network configurations.static interfacestatic final classPlacementPolicy describes a group placement policy for the VMs controlled by this AllocationPolicy.static interfacestatic enumCompute Engine VM instance provisioning model.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 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 TypeMethodDescriptionbooleancontainsLabels(String key) Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.booleanstatic AllocationPolicystatic final com.google.protobuf.Descriptors.DescriptorDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.Deprecated.getInstances(int index) Describe instances that can be created by this AllocationPolicy.intDescribe instances that can be created by this AllocationPolicy.Describe instances that can be created by this AllocationPolicy.getInstancesOrBuilder(int index) Describe instances that can be created by this AllocationPolicy.Describe instances that can be created by this AllocationPolicy.getInstanceTemplates(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ByteStringgetInstanceTemplatesBytes(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.intDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ProtocolStringListDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.Deprecated.intCustom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.getLabelsOrDefault(String key, String defaultValue) Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.getLabelsOrThrow(String key) Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.Location where compute resources should be allocated for the Job.Location where compute resources should be allocated for the Job.The network policy.The network policy.com.google.protobuf.Parser<AllocationPolicy>The placement policy.The placement policy.getProvisioningModels(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intgetProvisioningModelsValue(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intDefines the service account for Batch-created VMs.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.Defines the service account for Batch-created VMs.getTags(int index) Optional.com.google.protobuf.ByteStringgetTagsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.inthashCode()booleanDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.booleanLocation where compute resources should be allocated for the Job.booleanThe network policy.booleanThe placement policy.booleanDefines the service account for Batch-created VMs.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic AllocationPolicy.Builderstatic AllocationPolicy.BuildernewBuilder(AllocationPolicy prototype) protected AllocationPolicy.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AllocationPolicyparseDelimitedFrom(InputStream input) static AllocationPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AllocationPolicyparseFrom(byte[] data) static AllocationPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AllocationPolicyparseFrom(com.google.protobuf.ByteString data) static AllocationPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AllocationPolicyparseFrom(com.google.protobuf.CodedInputStream input) static AllocationPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AllocationPolicyparseFrom(InputStream input) static AllocationPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AllocationPolicyparseFrom(ByteBuffer data) static AllocationPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AllocationPolicy>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, 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
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER- See Also:
-
INSTANCE_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER- See Also:
-
INSTANCES_FIELD_NUMBER
public static final int INSTANCES_FIELD_NUMBER- See Also:
-
INSTANCE_TEMPLATES_FIELD_NUMBER
public static final int INSTANCE_TEMPLATES_FIELD_NUMBER- See Also:
-
PROVISIONING_MODELS_FIELD_NUMBER
public static final int PROVISIONING_MODELS_FIELD_NUMBER- See Also:
-
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER- See Also:
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER- See Also:
-
PLACEMENT_FIELD_NUMBER
public static final int PLACEMENT_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasLocation
public boolean hasLocation()Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;- Specified by:
hasLocationin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;- Specified by:
getLocationin interfaceAllocationPolicyOrBuilder- Returns:
- The location.
-
getLocationOrBuilder
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;- Specified by:
getLocationOrBuilderin interfaceAllocationPolicyOrBuilder
-
hasInstance
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=642Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];- Specified by:
hasInstancein interfaceAllocationPolicyOrBuilder- Returns:
- Whether the instance field is set.
-
getInstance
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=642Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];- Specified by:
getInstancein interfaceAllocationPolicyOrBuilder- Returns:
- The instance.
-
getInstanceOrBuilder
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];- Specified by:
getInstanceOrBuilderin interfaceAllocationPolicyOrBuilder
-
getInstancesList
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;- Specified by:
getInstancesListin interfaceAllocationPolicyOrBuilder
-
getInstancesOrBuilderList
public List<? extends AllocationPolicy.InstancePolicyOrTemplateOrBuilder> getInstancesOrBuilderList()Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;- Specified by:
getInstancesOrBuilderListin interfaceAllocationPolicyOrBuilder
-
getInstancesCount
public int getInstancesCount()Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;- Specified by:
getInstancesCountin interfaceAllocationPolicyOrBuilder
-
getInstances
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;- Specified by:
getInstancesin interfaceAllocationPolicyOrBuilder
-
getInstancesOrBuilder
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;- Specified by:
getInstancesOrBuilderin interfaceAllocationPolicyOrBuilder
-
getInstanceTemplatesList
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Specified by:
getInstanceTemplatesListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the instanceTemplates.
-
getInstanceTemplatesCount
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Specified by:
getInstanceTemplatesCountin interfaceAllocationPolicyOrBuilder- Returns:
- The count of instanceTemplates.
-
getInstanceTemplates
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Specified by:
getInstanceTemplatesin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The instanceTemplates at the given index.
-
getInstanceTemplatesBytes
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Specified by:
getInstanceTemplatesBytesin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instanceTemplates at the given index.
-
getProvisioningModelsList
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the provisioningModels.
-
getProvisioningModelsCount
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsCountin interfaceAllocationPolicyOrBuilder- Returns:
- The count of provisioningModels.
-
getProvisioningModels
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The provisioningModels at the given index.
-
getProvisioningModelsValueList
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsValueListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the enum numeric values on the wire for provisioningModels.
-
getProvisioningModelsValue
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsValuein interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of provisioningModels at the given index.
-
getServiceAccountEmail
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];- Specified by:
getServiceAccountEmailin interfaceAllocationPolicyOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];- Specified by:
getServiceAccountEmailBytesin interfaceAllocationPolicyOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
hasServiceAccount
public boolean hasServiceAccount()Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
hasServiceAccountin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
getServiceAccountin interfaceAllocationPolicyOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountOrBuilder
Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
getServiceAccountOrBuilderin interfaceAllocationPolicyOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:AllocationPolicyOrBuilderCustom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
getLabelsCountin interfaceAllocationPolicyOrBuilder
-
containsLabels
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
containsLabelsin interfaceAllocationPolicyOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAllocationPolicyOrBuilder
-
getLabelsMap
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
getLabelsMapin interfaceAllocationPolicyOrBuilder
-
getLabelsOrDefault
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
getLabelsOrDefaultin interfaceAllocationPolicyOrBuilder
-
getLabelsOrThrow
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
getLabelsOrThrowin interfaceAllocationPolicyOrBuilder
-
hasNetwork
public boolean hasNetwork()The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
hasNetworkin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the network field is set.
-
getNetwork
The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
getNetworkin interfaceAllocationPolicyOrBuilder- Returns:
- The network.
-
getNetworkOrBuilder
The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
getNetworkOrBuilderin interfaceAllocationPolicyOrBuilder
-
hasPlacement
public boolean hasPlacement()The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
hasPlacementin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the placement field is set.
-
getPlacement
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
getPlacementin interfaceAllocationPolicyOrBuilder- Returns:
- The placement.
-
getPlacementOrBuilder
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
getPlacementOrBuilderin interfaceAllocationPolicyOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsCountin interfaceAllocationPolicyOrBuilder- Returns:
- The count of tags.
-
getTags
Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsBytesin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy 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 parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AllocationPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AllocationPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AllocationPolicy 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
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AllocationPolicy.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
-