public interface AllocationPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(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.
|
AllocationPolicy.InstancePolicyOrTemplate |
getInstances(int index)
Describe instances that can be created by this AllocationPolicy.
|
int |
getInstancesCount()
Describe instances that can be created by this AllocationPolicy.
|
List<AllocationPolicy.InstancePolicyOrTemplate> |
getInstancesList()
Describe instances that can be created by this AllocationPolicy.
|
AllocationPolicy.InstancePolicyOrTemplateOrBuilder |
getInstancesOrBuilder(int index)
Describe instances that can be created by this AllocationPolicy.
|
List<? extends AllocationPolicy.InstancePolicyOrTemplateOrBuilder> |
getInstancesOrBuilderList()
Describe instances that can be created by this AllocationPolicy.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Custom labels to apply to the job and all the Compute Engine resources
that both are created by this allocation policy and support labels.
|
Map<String,String> |
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.
|
String |
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.
|
String |
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.
|
AllocationPolicy.LocationPolicy |
getLocation()
Location where compute resources should be allocated for the Job.
|
AllocationPolicy.LocationPolicyOrBuilder |
getLocationOrBuilder()
Location where compute resources should be allocated for the Job.
|
AllocationPolicy.NetworkPolicy |
getNetwork()
The network policy.
|
AllocationPolicy.NetworkPolicyOrBuilder |
getNetworkOrBuilder()
The network policy.
|
AllocationPolicy.PlacementPolicy |
getPlacement()
The placement policy.
|
AllocationPolicy.PlacementPolicyOrBuilder |
getPlacementOrBuilder()
The placement policy.
|
ServiceAccount |
getServiceAccount()
Defines the service account for Batch-created VMs.
|
ServiceAccountOrBuilder |
getServiceAccountOrBuilder()
Defines the service account for Batch-created VMs.
|
String |
getTags(int index)
Optional.
|
com.google.protobuf.ByteString |
getTagsBytes(int index)
Optional.
|
int |
getTagsCount()
Optional.
|
List<String> |
getTagsList()
Optional.
|
boolean |
hasLocation()
Location where compute resources should be allocated for the Job.
|
boolean |
hasNetwork()
The network policy.
|
boolean |
hasPlacement()
The placement policy.
|
boolean |
hasServiceAccount()
Defines the service account for Batch-created VMs.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;AllocationPolicy.LocationPolicy getLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;List<AllocationPolicy.InstancePolicyOrTemplate> getInstancesList()
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
AllocationPolicy.InstancePolicyOrTemplate getInstances(int index)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
int getInstancesCount()
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
List<? extends AllocationPolicy.InstancePolicyOrTemplateOrBuilder> getInstancesOrBuilderList()
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
AllocationPolicy.InstancePolicyOrTemplateOrBuilder getInstancesOrBuilder(int index)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
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.v1.ServiceAccount service_account = 9;ServiceAccount 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.v1.ServiceAccount service_account = 9;ServiceAccountOrBuilder 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.v1.ServiceAccount service_account = 9;int getLabelsCount()
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;boolean containsLabels(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. 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;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.Map<String,String> 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;String 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. 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;String 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. 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;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.v1.AllocationPolicy.NetworkPolicy network = 7;AllocationPolicy.NetworkPolicy 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.v1.AllocationPolicy.NetworkPolicy network = 7;AllocationPolicy.NetworkPolicyOrBuilder 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.v1.AllocationPolicy.NetworkPolicy network = 7;boolean hasPlacement()
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;AllocationPolicy.PlacementPolicy getPlacement()
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder()
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;List<String> 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];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];String getTags(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];index - The index of the element to return.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];index - The index of the value to return.Copyright © 2025 Google LLC. All rights reserved.