Interface AllocationPolicyOrBuilder (0.30.0)

public interface AllocationPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract 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 apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getInstances(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.InstancePolicyOrTemplate

getInstancesCount()

public abstract 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;

Returns
TypeDescription
int

getInstancesList()

public abstract 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;

Returns
TypeDescription
List<InstancePolicyOrTemplate>

getInstancesOrBuilder(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.InstancePolicyOrTemplateOrBuilder

getInstancesOrBuilderList()

public abstract 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;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder>

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract 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 apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 6;

Returns
TypeDescription
int

getLabelsMap()

public abstract 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 apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 6;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract 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 apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 6;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract 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 apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLocation()

public abstract AllocationPolicy.LocationPolicy getLocation()

Location where compute resources should be allocated for the Job.

.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;

Returns
TypeDescription
AllocationPolicy.LocationPolicy

The location.

getLocationOrBuilder()

public abstract AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder()

Location where compute resources should be allocated for the Job.

.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;

Returns
TypeDescription
AllocationPolicy.LocationPolicyOrBuilder

getNetwork()

public abstract AllocationPolicy.NetworkPolicy getNetwork()

The network policy.

.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;

Returns
TypeDescription
AllocationPolicy.NetworkPolicy

The network.

getNetworkOrBuilder()

public abstract AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder()

The network policy.

.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;

Returns
TypeDescription
AllocationPolicy.NetworkPolicyOrBuilder

getPlacement()

public abstract AllocationPolicy.PlacementPolicy getPlacement()

The placement policy.

.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;

Returns
TypeDescription
AllocationPolicy.PlacementPolicy

The placement.

getPlacementOrBuilder()

public abstract AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder()

The placement policy.

.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;

Returns
TypeDescription
AllocationPolicy.PlacementPolicyOrBuilder

getServiceAccount()

public abstract ServiceAccount getServiceAccount()

Service account that VMs will run as.

.google.cloud.batch.v1.ServiceAccount service_account = 9;

Returns
TypeDescription
ServiceAccount

The serviceAccount.

getServiceAccountOrBuilder()

public abstract ServiceAccountOrBuilder getServiceAccountOrBuilder()

Service account that VMs will run as.

.google.cloud.batch.v1.ServiceAccount service_account = 9;

Returns
TypeDescription
ServiceAccountOrBuilder

hasLocation()

public abstract boolean hasLocation()

Location where compute resources should be allocated for the Job.

.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;

Returns
TypeDescription
boolean

Whether the location field is set.

hasNetwork()

public abstract boolean hasNetwork()

The network policy.

.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;

Returns
TypeDescription
boolean

Whether the network field is set.

hasPlacement()

public abstract boolean hasPlacement()

The placement policy.

.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;

Returns
TypeDescription
boolean

Whether the placement field is set.

hasServiceAccount()

public abstract boolean hasServiceAccount()

Service account that VMs will run as.

.google.cloud.batch.v1.ServiceAccount service_account = 9;

Returns
TypeDescription
boolean

Whether the serviceAccount field is set.