Package com.google.cloud.batch.v1
Interface AllocationPolicyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AllocationPolicy
,AllocationPolicy.Builder
public interface AllocationPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy.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()
Labels applied to all VM instances and other resources created by AllocationPolicy.Map<String,String>
getLabelsMap()
Labels applied to all VM instances and other resources created by AllocationPolicy.String
getLabelsOrDefault(String key, String defaultValue)
Labels applied to all VM instances and other resources created by AllocationPolicy.String
getLabelsOrThrow(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy.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()
Service account that VMs will run as.ServiceAccountOrBuilder
getServiceAccountOrBuilder()
Service account that VMs will run as.boolean
hasLocation()
Location where compute resources should be allocated for the Job.boolean
hasNetwork()
The network policy.boolean
hasPlacement()
The placement policy.boolean
hasServiceAccount()
Service account that VMs will run as.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasLocation
boolean hasLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;
- Returns:
- Whether the location field is set.
-
getLocation
AllocationPolicy.LocationPolicy getLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;
- Returns:
- The location.
-
getLocationOrBuilder
AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;
-
getInstancesList
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;
-
getInstances
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;
-
getInstancesCount
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;
-
getInstancesOrBuilderList
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;
-
getInstancesOrBuilder
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;
-
hasServiceAccount
boolean hasServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1.ServiceAccount service_account = 9;
- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
ServiceAccount getServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1.ServiceAccount service_account = 9;
- Returns:
- The serviceAccount.
-
getServiceAccountOrBuilder
ServiceAccountOrBuilder getServiceAccountOrBuilder()
Service account that VMs will run as.
.google.cloud.batch.v1.ServiceAccount service_account = 9;
-
getLabelsCount
int getLabelsCount()
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;
-
containsLabels
boolean containsLabels(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;
-
hasNetwork
boolean hasNetwork()
The network policy.
.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;
- Returns:
- Whether the network field is set.
-
getNetwork
AllocationPolicy.NetworkPolicy getNetwork()
The network policy.
.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;
- Returns:
- The network.
-
getNetworkOrBuilder
AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder()
The network policy.
.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;
-
hasPlacement
boolean hasPlacement()
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;
- Returns:
- Whether the placement field is set.
-
getPlacement
AllocationPolicy.PlacementPolicy getPlacement()
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;
- Returns:
- The placement.
-
getPlacementOrBuilder
AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder()
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;
-
-