Package com.google.cloud.batch.v1alpha
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.InstancePolicy
getInstance()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.AllocationPolicy.InstancePolicyOrBuilder
getInstanceOrBuilder()
Deprecated.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.String
getInstanceTemplates(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ByteString
getInstanceTemplatesBytes(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.int
getInstanceTemplatesCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.List<String>
getInstanceTemplatesList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.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.AllocationPolicy.ProvisioningModel
getProvisioningModels(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.int
getProvisioningModelsCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.List<AllocationPolicy.ProvisioningModel>
getProvisioningModelsList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.int
getProvisioningModelsValue(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.List<Integer>
getProvisioningModelsValueList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.ServiceAccount
getServiceAccount()
Service account that VMs will run as.String
getServiceAccountEmail()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.com.google.protobuf.ByteString
getServiceAccountEmailBytes()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.ServiceAccountOrBuilder
getServiceAccountOrBuilder()
Service account that VMs will run as.boolean
hasInstance()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.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.v1alpha.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.v1alpha.AllocationPolicy.LocationPolicy location = 1;
- Returns:
- The location.
-
getLocationOrBuilder
AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
-
hasInstance
@Deprecated boolean hasInstance()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=557Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
- Returns:
- Whether the instance field is set.
-
getInstance
@Deprecated AllocationPolicy.InstancePolicy getInstance()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=557Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
- Returns:
- The instance.
-
getInstanceOrBuilder
@Deprecated AllocationPolicy.InstancePolicyOrBuilder getInstanceOrBuilder()
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
-
getInstancesList
List<AllocationPolicy.InstancePolicyOrTemplate> 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;
-
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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
-
getInstanceTemplatesList
@Deprecated List<String> getInstanceTemplatesList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
- Returns:
- A list containing the instanceTemplates.
-
getInstanceTemplatesCount
@Deprecated int getInstanceTemplatesCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
- Returns:
- The count of instanceTemplates.
-
getInstanceTemplates
@Deprecated String getInstanceTemplates(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
- Parameters:
index
- The index of the element to return.- Returns:
- The instanceTemplates at the given index.
-
getInstanceTemplatesBytes
@Deprecated com.google.protobuf.ByteString getInstanceTemplatesBytes(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instanceTemplates at the given index.
-
getProvisioningModelsList
@Deprecated List<AllocationPolicy.ProvisioningModel> getProvisioningModelsList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
- Returns:
- A list containing the provisioningModels.
-
getProvisioningModelsCount
@Deprecated int getProvisioningModelsCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
- Returns:
- The count of provisioningModels.
-
getProvisioningModels
@Deprecated AllocationPolicy.ProvisioningModel getProvisioningModels(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
- Parameters:
index
- The index of the element to return.- Returns:
- The provisioningModels at the given index.
-
getProvisioningModelsValueList
@Deprecated List<Integer> getProvisioningModelsValueList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
- Returns:
- A list containing the enum numeric values on the wire for provisioningModels.
-
getProvisioningModelsValue
@Deprecated int getProvisioningModelsValue(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
- 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 String getServiceAccountEmail()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=570Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];
- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
@Deprecated com.google.protobuf.ByteString getServiceAccountEmailBytes()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=570Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];
- Returns:
- The bytes for serviceAccountEmail.
-
hasServiceAccount
boolean hasServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
ServiceAccount getServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
- Returns:
- The serviceAccount.
-
getServiceAccountOrBuilder
ServiceAccountOrBuilder getServiceAccountOrBuilder()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.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.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
- Returns:
- Whether the network field is set.
-
getNetwork
AllocationPolicy.NetworkPolicy getNetwork()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
- Returns:
- The network.
-
getNetworkOrBuilder
AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
-
hasPlacement
boolean hasPlacement()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
- Returns:
- Whether the placement field is set.
-
getPlacement
AllocationPolicy.PlacementPolicy getPlacement()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
- Returns:
- The placement.
-
getPlacementOrBuilder
AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
-
-