- 0.55.0 (latest)
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.2
- 0.2.2
- 0.1.1
public static final class AllocationPolicy.Builder extends GeneratedMessageV3.Builder<AllocationPolicy.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AllocationPolicy.BuilderImplements
AllocationPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllInstanceTemplates(Iterable<String> values) (deprecated)
public AllocationPolicy.Builder addAllInstanceTemplates(Iterable<String> values)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=489
Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
Name | Description |
values |
Iterable<String> The instanceTemplates to add. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
addAllInstances(Iterable<? extends AllocationPolicy.InstancePolicyOrTemplate> values)
public AllocationPolicy.Builder addAllInstances(Iterable<? extends AllocationPolicy.InstancePolicyOrTemplate> values)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Name | Description |
values |
Iterable<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate> |
Type | Description |
AllocationPolicy.Builder |
addAllProvisioningModels(Iterable<? extends AllocationPolicy.ProvisioningModel> values) (deprecated)
public AllocationPolicy.Builder addAllProvisioningModels(Iterable<? extends AllocationPolicy.ProvisioningModel> values)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Name | Description |
values |
Iterable<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel> The provisioningModels to add. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
addAllProvisioningModelsValue(Iterable<Integer> values) (deprecated)
public AllocationPolicy.Builder addAllProvisioningModelsValue(Iterable<Integer> values)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Name | Description |
values |
Iterable<Integer> The enum numeric values on the wire for provisioningModels to add. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
addInstanceTemplates(String value) (deprecated)
public AllocationPolicy.Builder addInstanceTemplates(String value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=489
Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
Name | Description |
value |
String The instanceTemplates to add. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
addInstanceTemplatesBytes(ByteString value) (deprecated)
public AllocationPolicy.Builder addInstanceTemplatesBytes(ByteString value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=489
Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
Name | Description |
value |
ByteString The bytes of the instanceTemplates to add. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
addInstances(AllocationPolicy.InstancePolicyOrTemplate value)
public AllocationPolicy.Builder addInstances(AllocationPolicy.InstancePolicyOrTemplate value)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Name | Description |
value |
AllocationPolicy.InstancePolicyOrTemplate |
Type | Description |
AllocationPolicy.Builder |
addInstances(AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
public AllocationPolicy.Builder addInstances(AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Name | Description |
builderForValue |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
Type | Description |
AllocationPolicy.Builder |
addInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value)
public AllocationPolicy.Builder addInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Name | Description |
index |
int |
value |
AllocationPolicy.InstancePolicyOrTemplate |
Type | Description |
AllocationPolicy.Builder |
addInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
public AllocationPolicy.Builder addInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Name | Description |
index |
int |
builderForValue |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
Type | Description |
AllocationPolicy.Builder |
addInstancesBuilder()
public AllocationPolicy.InstancePolicyOrTemplate.Builder addInstancesBuilder()
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
addInstancesBuilder(int index)
public AllocationPolicy.InstancePolicyOrTemplate.Builder addInstancesBuilder(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;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
addProvisioningModels(AllocationPolicy.ProvisioningModel value) (deprecated)
public AllocationPolicy.Builder addProvisioningModels(AllocationPolicy.ProvisioningModel value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Name | Description |
value |
AllocationPolicy.ProvisioningModel The provisioningModels to add. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
addProvisioningModelsValue(int value) (deprecated)
public AllocationPolicy.Builder addProvisioningModelsValue(int value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Name | Description |
value |
int The enum numeric value on the wire for provisioningModels to add. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AllocationPolicy.Builder |
build()
public AllocationPolicy build()
Type | Description |
AllocationPolicy |
buildPartial()
public AllocationPolicy buildPartial()
Type | Description |
AllocationPolicy |
clear()
public AllocationPolicy.Builder clear()
Type | Description |
AllocationPolicy.Builder |
clearField(Descriptors.FieldDescriptor field)
public AllocationPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
AllocationPolicy.Builder |
clearInstance()
public AllocationPolicy.Builder clearInstance()
Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
Type | Description |
AllocationPolicy.Builder |
clearInstanceTemplates() (deprecated)
public AllocationPolicy.Builder clearInstanceTemplates()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=489
Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
clearInstances()
public AllocationPolicy.Builder clearInstances()
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Type | Description |
AllocationPolicy.Builder |
clearLabels()
public AllocationPolicy.Builder clearLabels()
Type | Description |
AllocationPolicy.Builder |
clearLocation()
public AllocationPolicy.Builder clearLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
Type | Description |
AllocationPolicy.Builder |
clearNetwork()
public AllocationPolicy.Builder clearNetwork()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
Type | Description |
AllocationPolicy.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
AllocationPolicy.Builder |
clearProvisioningModels() (deprecated)
public AllocationPolicy.Builder clearProvisioningModels()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
clearServiceAccount()
public AllocationPolicy.Builder clearServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
Type | Description |
AllocationPolicy.Builder |
clearServiceAccountEmail() (deprecated)
public AllocationPolicy.Builder clearServiceAccountEmail()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=495
Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
clone()
public AllocationPolicy.Builder clone()
Type | Description |
AllocationPolicy.Builder |
containsLabels(String key)
public 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;
Name | Description |
key |
String |
Type | Description |
boolean |
getDefaultInstanceForType()
public AllocationPolicy getDefaultInstanceForType()
Type | Description |
AllocationPolicy |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getInstance() (deprecated)
public AllocationPolicy.InstancePolicy getInstance()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=482
Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
Type | Description |
AllocationPolicy.InstancePolicy |
The instance. |
getInstanceBuilder()
public AllocationPolicy.InstancePolicy.Builder getInstanceBuilder()
Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
getInstanceOrBuilder()
public AllocationPolicy.InstancePolicyOrBuilder getInstanceOrBuilder()
Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
Type | Description |
AllocationPolicy.InstancePolicyOrBuilder |
getInstanceTemplates(int index) (deprecated)
public String getInstanceTemplates(int index)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=489
Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
Name | Description |
index |
int The index of the element to return. |
Type | Description |
String |
The instanceTemplates at the given index. |
getInstanceTemplatesBytes(int index) (deprecated)
public ByteString getInstanceTemplatesBytes(int index)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=489
Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
Name | Description |
index |
int The index of the value to return. |
Type | Description |
ByteString |
The bytes of the instanceTemplates at the given index. |
getInstanceTemplatesCount() (deprecated)
public int getInstanceTemplatesCount()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=489
Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
Type | Description |
int |
The count of instanceTemplates. |
getInstanceTemplatesList() (deprecated)
public ProtocolStringList getInstanceTemplatesList()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=489
Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
Type | Description |
ProtocolStringList |
A list containing the instanceTemplates. |
getInstances(int index)
public 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;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate |
getInstancesBuilder(int index)
public AllocationPolicy.InstancePolicyOrTemplate.Builder getInstancesBuilder(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;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
getInstancesBuilderList()
public List<AllocationPolicy.InstancePolicyOrTemplate.Builder> getInstancesBuilderList()
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Type | Description |
List<Builder> |
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;
Type | Description |
int |
getInstancesList()
public 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;
Type | Description |
List<InstancePolicyOrTemplate> |
getInstancesOrBuilder(int index)
public 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;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplateOrBuilder |
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;
Type | Description |
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplateOrBuilder> |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public 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;
Type | Description |
int |
getLabelsMap()
public 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;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public 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;
Name | Description |
key |
String |
defaultValue |
String |
Type | Description |
String |
getLabelsOrThrow(String key)
public 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;
Name | Description |
key |
String |
Type | Description |
String |
getLocation()
public AllocationPolicy.LocationPolicy getLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
Type | Description |
AllocationPolicy.LocationPolicy |
The location. |
getLocationBuilder()
public AllocationPolicy.LocationPolicy.Builder getLocationBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
Type | Description |
AllocationPolicy.LocationPolicy.Builder |
getLocationOrBuilder()
public AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
Type | Description |
AllocationPolicy.LocationPolicyOrBuilder |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getNetwork()
public AllocationPolicy.NetworkPolicy getNetwork()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
Type | Description |
AllocationPolicy.NetworkPolicy |
The network. |
getNetworkBuilder()
public AllocationPolicy.NetworkPolicy.Builder getNetworkBuilder()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
Type | Description |
AllocationPolicy.NetworkPolicy.Builder |
getNetworkOrBuilder()
public AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
Type | Description |
AllocationPolicy.NetworkPolicyOrBuilder |
getProvisioningModels(int index) (deprecated)
public AllocationPolicy.ProvisioningModel getProvisioningModels(int index)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Name | Description |
index |
int The index of the element to return. |
Type | Description |
AllocationPolicy.ProvisioningModel |
The provisioningModels at the given index. |
getProvisioningModelsCount() (deprecated)
public int getProvisioningModelsCount()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Type | Description |
int |
The count of provisioningModels. |
getProvisioningModelsList() (deprecated)
public List<AllocationPolicy.ProvisioningModel> getProvisioningModelsList()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Type | Description |
List<ProvisioningModel> |
A list containing the provisioningModels. |
getProvisioningModelsValue(int index) (deprecated)
public int getProvisioningModelsValue(int index)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Name | Description |
index |
int The index of the value to return. |
Type | Description |
int |
The enum numeric value on the wire of provisioningModels at the given index. |
getProvisioningModelsValueList() (deprecated)
public List<Integer> getProvisioningModelsValueList()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for provisioningModels. |
getServiceAccount()
public ServiceAccount getServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
Type | Description |
ServiceAccount |
The serviceAccount. |
getServiceAccountBuilder()
public ServiceAccount.Builder getServiceAccountBuilder()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
Type | Description |
ServiceAccount.Builder |
getServiceAccountEmail() (deprecated)
public String getServiceAccountEmail()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=495
Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];
Type | Description |
String |
The serviceAccountEmail. |
getServiceAccountEmailBytes() (deprecated)
public ByteString getServiceAccountEmailBytes()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=495
Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];
Type | Description |
ByteString |
The bytes for serviceAccountEmail. |
getServiceAccountOrBuilder()
public ServiceAccountOrBuilder getServiceAccountOrBuilder()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
Type | Description |
ServiceAccountOrBuilder |
hasInstance() (deprecated)
public boolean hasInstance()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=482
Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
Type | Description |
boolean |
Whether the instance field is set. |
hasLocation()
public boolean hasLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
Type | Description |
boolean |
Whether the location field is set. |
hasNetwork()
public boolean hasNetwork()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
Type | Description |
boolean |
Whether the network field is set. |
hasServiceAccount()
public boolean hasServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
Type | Description |
boolean |
Whether the serviceAccount field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number |
int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number |
int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(AllocationPolicy other)
public AllocationPolicy.Builder mergeFrom(AllocationPolicy other)
Name | Description |
other |
AllocationPolicy |
Type | Description |
AllocationPolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AllocationPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AllocationPolicy.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AllocationPolicy.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
AllocationPolicy.Builder |
mergeInstance(AllocationPolicy.InstancePolicy value)
public AllocationPolicy.Builder mergeInstance(AllocationPolicy.InstancePolicy value)
Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
Name | Description |
value |
AllocationPolicy.InstancePolicy |
Type | Description |
AllocationPolicy.Builder |
mergeLocation(AllocationPolicy.LocationPolicy value)
public AllocationPolicy.Builder mergeLocation(AllocationPolicy.LocationPolicy value)
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
Name | Description |
value |
AllocationPolicy.LocationPolicy |
Type | Description |
AllocationPolicy.Builder |
mergeNetwork(AllocationPolicy.NetworkPolicy value)
public AllocationPolicy.Builder mergeNetwork(AllocationPolicy.NetworkPolicy value)
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
Name | Description |
value |
AllocationPolicy.NetworkPolicy |
Type | Description |
AllocationPolicy.Builder |
mergeServiceAccount(ServiceAccount value)
public AllocationPolicy.Builder mergeServiceAccount(ServiceAccount value)
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
Name | Description |
value |
ServiceAccount |
Type | Description |
AllocationPolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AllocationPolicy.Builder |
putAllLabels(Map<String,String> values)
public AllocationPolicy.Builder putAllLabels(Map<String,String> values)
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;
Name | Description |
values |
Map<String,String> |
Type | Description |
AllocationPolicy.Builder |
putLabels(String key, String value)
public AllocationPolicy.Builder putLabels(String key, String value)
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;
Name | Description |
key |
String |
value |
String |
Type | Description |
AllocationPolicy.Builder |
removeInstances(int index)
public AllocationPolicy.Builder removeInstances(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;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.Builder |
removeLabels(String key)
public AllocationPolicy.Builder removeLabels(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;
Name | Description |
key |
String |
Type | Description |
AllocationPolicy.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AllocationPolicy.Builder |
setInstance(AllocationPolicy.InstancePolicy value)
public AllocationPolicy.Builder setInstance(AllocationPolicy.InstancePolicy value)
Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
Name | Description |
value |
AllocationPolicy.InstancePolicy |
Type | Description |
AllocationPolicy.Builder |
setInstance(AllocationPolicy.InstancePolicy.Builder builderForValue)
public AllocationPolicy.Builder setInstance(AllocationPolicy.InstancePolicy.Builder builderForValue)
Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
Name | Description |
builderForValue |
AllocationPolicy.InstancePolicy.Builder |
Type | Description |
AllocationPolicy.Builder |
setInstanceTemplates(int index, String value) (deprecated)
public AllocationPolicy.Builder setInstanceTemplates(int index, String value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=489
Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];
Name | Description |
index |
int The index to set the value at. |
value |
String The instanceTemplates to set. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
setInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value)
public AllocationPolicy.Builder setInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Name | Description |
index |
int |
value |
AllocationPolicy.InstancePolicyOrTemplate |
Type | Description |
AllocationPolicy.Builder |
setInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
public AllocationPolicy.Builder setInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
Name | Description |
index |
int |
builderForValue |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
Type | Description |
AllocationPolicy.Builder |
setLocation(AllocationPolicy.LocationPolicy value)
public AllocationPolicy.Builder setLocation(AllocationPolicy.LocationPolicy value)
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
Name | Description |
value |
AllocationPolicy.LocationPolicy |
Type | Description |
AllocationPolicy.Builder |
setLocation(AllocationPolicy.LocationPolicy.Builder builderForValue)
public AllocationPolicy.Builder setLocation(AllocationPolicy.LocationPolicy.Builder builderForValue)
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
Name | Description |
builderForValue |
AllocationPolicy.LocationPolicy.Builder |
Type | Description |
AllocationPolicy.Builder |
setNetwork(AllocationPolicy.NetworkPolicy value)
public AllocationPolicy.Builder setNetwork(AllocationPolicy.NetworkPolicy value)
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
Name | Description |
value |
AllocationPolicy.NetworkPolicy |
Type | Description |
AllocationPolicy.Builder |
setNetwork(AllocationPolicy.NetworkPolicy.Builder builderForValue)
public AllocationPolicy.Builder setNetwork(AllocationPolicy.NetworkPolicy.Builder builderForValue)
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
Name | Description |
builderForValue |
AllocationPolicy.NetworkPolicy.Builder |
Type | Description |
AllocationPolicy.Builder |
setProvisioningModels(int index, AllocationPolicy.ProvisioningModel value) (deprecated)
public AllocationPolicy.Builder setProvisioningModels(int index, AllocationPolicy.ProvisioningModel value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Name | Description |
index |
int The index to set the value at. |
value |
AllocationPolicy.ProvisioningModel The provisioningModels to set. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
setProvisioningModelsValue(int index, int value) (deprecated)
public AllocationPolicy.Builder setProvisioningModelsValue(int index, int value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=492
Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
Name | Description |
index |
int The index to set the value at. |
value |
int The enum numeric value on the wire for provisioningModels to set. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AllocationPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
AllocationPolicy.Builder |
setServiceAccount(ServiceAccount value)
public AllocationPolicy.Builder setServiceAccount(ServiceAccount value)
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
Name | Description |
value |
ServiceAccount |
Type | Description |
AllocationPolicy.Builder |
setServiceAccount(ServiceAccount.Builder builderForValue)
public AllocationPolicy.Builder setServiceAccount(ServiceAccount.Builder builderForValue)
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
Name | Description |
builderForValue |
ServiceAccount.Builder |
Type | Description |
AllocationPolicy.Builder |
setServiceAccountEmail(String value) (deprecated)
public AllocationPolicy.Builder setServiceAccountEmail(String value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=495
Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];
Name | Description |
value |
String The serviceAccountEmail to set. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
setServiceAccountEmailBytes(ByteString value) (deprecated)
public AllocationPolicy.Builder setServiceAccountEmailBytes(ByteString value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=495
Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];
Name | Description |
value |
ByteString The bytes for serviceAccountEmail to set. |
Type | Description |
AllocationPolicy.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AllocationPolicy.Builder |