Package com.google.cloud.batch.v1alpha
Class AllocationPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
- com.google.cloud.batch.v1alpha.AllocationPolicy.Builder
-
- All Implemented Interfaces:
AllocationPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AllocationPolicy
public static final class AllocationPolicy.Builder extends com.google.protobuf.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 typegoogle.cloud.batch.v1alpha.AllocationPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AllocationPolicy.BuilderaddAllInstances(Iterable<? extends AllocationPolicy.InstancePolicyOrTemplate> values)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.BuilderaddAllInstanceTemplates(Iterable<String> values)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.AllocationPolicy.BuilderaddAllProvisioningModels(Iterable<? extends AllocationPolicy.ProvisioningModel> values)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.AllocationPolicy.BuilderaddAllProvisioningModelsValue(Iterable<Integer> values)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.AllocationPolicy.BuilderaddInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.BuilderaddInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.BuilderaddInstances(AllocationPolicy.InstancePolicyOrTemplate value)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.BuilderaddInstances(AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.InstancePolicyOrTemplate.BuilderaddInstancesBuilder()Describe instances that can be created by this AllocationPolicy.AllocationPolicy.InstancePolicyOrTemplate.BuilderaddInstancesBuilder(int index)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.BuilderaddInstanceTemplates(String value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.AllocationPolicy.BuilderaddInstanceTemplatesBytes(com.google.protobuf.ByteString value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.AllocationPolicy.BuilderaddProvisioningModels(AllocationPolicy.ProvisioningModel value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.AllocationPolicy.BuilderaddProvisioningModelsValue(int value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.AllocationPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicybuild()AllocationPolicybuildPartial()AllocationPolicy.Builderclear()AllocationPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AllocationPolicy.BuilderclearInstance()Deprecated.AllocationPolicy.BuilderclearInstances()Describe instances that can be created by this AllocationPolicy.AllocationPolicy.BuilderclearInstanceTemplates()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.AllocationPolicy.BuilderclearLabels()AllocationPolicy.BuilderclearLocation()Location where compute resources should be allocated for the Job.AllocationPolicy.BuilderclearNetwork()The network policy.AllocationPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AllocationPolicy.BuilderclearPlacement()The placement policy.AllocationPolicy.BuilderclearProvisioningModels()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.AllocationPolicy.BuilderclearServiceAccount()Service account that VMs will run as.AllocationPolicy.BuilderclearServiceAccountEmail()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.AllocationPolicy.Builderclone()booleancontainsLabels(String key)Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()AllocationPolicy.InstancePolicygetInstance()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.AllocationPolicy.InstancePolicy.BuildergetInstanceBuilder()Deprecated.AllocationPolicy.InstancePolicyOrBuildergetInstanceOrBuilder()Deprecated.AllocationPolicy.InstancePolicyOrTemplategetInstances(int index)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.InstancePolicyOrTemplate.BuildergetInstancesBuilder(int index)Describe instances that can be created by this AllocationPolicy.List<AllocationPolicy.InstancePolicyOrTemplate.Builder>getInstancesBuilderList()Describe instances that can be created by this AllocationPolicy.intgetInstancesCount()Describe instances that can be created by this AllocationPolicy.List<AllocationPolicy.InstancePolicyOrTemplate>getInstancesList()Describe instances that can be created by this AllocationPolicy.AllocationPolicy.InstancePolicyOrTemplateOrBuildergetInstancesOrBuilder(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.StringgetInstanceTemplates(int index)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ByteStringgetInstanceTemplatesBytes(int index)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.intgetInstanceTemplatesCount()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ProtocolStringListgetInstanceTemplatesList()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.Map<String,String>getLabels()Deprecated.intgetLabelsCount()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.StringgetLabelsOrDefault(String key, String defaultValue)Labels applied to all VM instances and other resources created by AllocationPolicy.StringgetLabelsOrThrow(String key)Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy.LocationPolicygetLocation()Location where compute resources should be allocated for the Job.AllocationPolicy.LocationPolicy.BuildergetLocationBuilder()Location where compute resources should be allocated for the Job.AllocationPolicy.LocationPolicyOrBuildergetLocationOrBuilder()Location where compute resources should be allocated for the Job.Map<String,String>getMutableLabels()Deprecated.AllocationPolicy.NetworkPolicygetNetwork()The network policy.AllocationPolicy.NetworkPolicy.BuildergetNetworkBuilder()The network policy.AllocationPolicy.NetworkPolicyOrBuildergetNetworkOrBuilder()The network policy.AllocationPolicy.PlacementPolicygetPlacement()The placement policy.AllocationPolicy.PlacementPolicy.BuildergetPlacementBuilder()The placement policy.AllocationPolicy.PlacementPolicyOrBuildergetPlacementOrBuilder()The placement policy.AllocationPolicy.ProvisioningModelgetProvisioningModels(int index)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intgetProvisioningModelsCount()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.List<AllocationPolicy.ProvisioningModel>getProvisioningModelsList()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intgetProvisioningModelsValue(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.ServiceAccountgetServiceAccount()Service account that VMs will run as.ServiceAccount.BuildergetServiceAccountBuilder()Service account that VMs will run as.StringgetServiceAccountEmail()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.com.google.protobuf.ByteStringgetServiceAccountEmailBytes()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.ServiceAccountOrBuildergetServiceAccountOrBuilder()Service account that VMs will run as.booleanhasInstance()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.booleanhasLocation()Location where compute resources should be allocated for the Job.booleanhasNetwork()The network policy.booleanhasPlacement()The placement policy.booleanhasServiceAccount()Service account that VMs will run as.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()AllocationPolicy.BuildermergeFrom(AllocationPolicy other)AllocationPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AllocationPolicy.BuildermergeFrom(com.google.protobuf.Message other)AllocationPolicy.BuildermergeInstance(AllocationPolicy.InstancePolicy value)Deprecated.AllocationPolicy.BuildermergeLocation(AllocationPolicy.LocationPolicy value)Location where compute resources should be allocated for the Job.AllocationPolicy.BuildermergeNetwork(AllocationPolicy.NetworkPolicy value)The network policy.AllocationPolicy.BuildermergePlacement(AllocationPolicy.PlacementPolicy value)The placement policy.AllocationPolicy.BuildermergeServiceAccount(ServiceAccount value)Service account that VMs will run as.AllocationPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AllocationPolicy.BuilderputAllLabels(Map<String,String> values)Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy.BuilderputLabels(String key, String value)Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy.BuilderremoveInstances(int index)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.BuilderremoveLabels(String key)Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicy.BuildersetInstance(AllocationPolicy.InstancePolicy value)Deprecated.AllocationPolicy.BuildersetInstance(AllocationPolicy.InstancePolicy.Builder builderForValue)Deprecated.AllocationPolicy.BuildersetInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.BuildersetInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)Describe instances that can be created by this AllocationPolicy.AllocationPolicy.BuildersetInstanceTemplates(int index, String value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.AllocationPolicy.BuildersetLocation(AllocationPolicy.LocationPolicy value)Location where compute resources should be allocated for the Job.AllocationPolicy.BuildersetLocation(AllocationPolicy.LocationPolicy.Builder builderForValue)Location where compute resources should be allocated for the Job.AllocationPolicy.BuildersetNetwork(AllocationPolicy.NetworkPolicy value)The network policy.AllocationPolicy.BuildersetNetwork(AllocationPolicy.NetworkPolicy.Builder builderForValue)The network policy.AllocationPolicy.BuildersetPlacement(AllocationPolicy.PlacementPolicy value)The placement policy.AllocationPolicy.BuildersetPlacement(AllocationPolicy.PlacementPolicy.Builder builderForValue)The placement policy.AllocationPolicy.BuildersetProvisioningModels(int index, AllocationPolicy.ProvisioningModel value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.AllocationPolicy.BuildersetProvisioningModelsValue(int index, int value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.AllocationPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AllocationPolicy.BuildersetServiceAccount(ServiceAccount value)Service account that VMs will run as.AllocationPolicy.BuildersetServiceAccount(ServiceAccount.Builder builderForValue)Service account that VMs will run as.AllocationPolicy.BuildersetServiceAccountEmail(String value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.AllocationPolicy.BuildersetServiceAccountEmailBytes(com.google.protobuf.ByteString value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.AllocationPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
clear
public AllocationPolicy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
getDefaultInstanceForType
public AllocationPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
setField
public AllocationPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
clearField
public AllocationPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
clearOneof
public AllocationPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
setRepeatedField
public AllocationPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
addRepeatedField
public AllocationPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
mergeFrom
public AllocationPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Builder>
-
mergeFrom
public AllocationPolicy.Builder mergeFrom(AllocationPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
mergeFrom
public AllocationPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Builder>- Throws:
IOException
-
hasLocation
public boolean hasLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;- Specified by:
hasLocationin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
public AllocationPolicy.LocationPolicy getLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;- Specified by:
getLocationin interfaceAllocationPolicyOrBuilder- Returns:
- The location.
-
setLocation
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;
-
setLocation
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;
-
mergeLocation
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;
-
clearLocation
public AllocationPolicy.Builder clearLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
-
getLocationBuilder
public AllocationPolicy.LocationPolicy.Builder getLocationBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
-
getLocationOrBuilder
public AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;- Specified by:
getLocationOrBuilderin interfaceAllocationPolicyOrBuilder
-
hasInstance
@Deprecated public 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];- Specified by:
hasInstancein interfaceAllocationPolicyOrBuilder- Returns:
- Whether the instance field is set.
-
getInstance
@Deprecated public 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];- Specified by:
getInstancein interfaceAllocationPolicyOrBuilder- Returns:
- The instance.
-
setInstance
@Deprecated public AllocationPolicy.Builder setInstance(AllocationPolicy.InstancePolicy value)
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
-
setInstance
@Deprecated public AllocationPolicy.Builder setInstance(AllocationPolicy.InstancePolicy.Builder builderForValue)
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
-
mergeInstance
@Deprecated public AllocationPolicy.Builder mergeInstance(AllocationPolicy.InstancePolicy value)
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
-
clearInstance
@Deprecated public AllocationPolicy.Builder clearInstance()
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
-
getInstanceBuilder
@Deprecated public AllocationPolicy.InstancePolicy.Builder getInstanceBuilder()
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
-
getInstanceOrBuilder
@Deprecated public AllocationPolicy.InstancePolicyOrBuilder getInstanceOrBuilder()
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];- Specified by:
getInstanceOrBuilderin interfaceAllocationPolicyOrBuilder
-
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;- Specified by:
getInstancesListin interfaceAllocationPolicyOrBuilder
-
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;- Specified by:
getInstancesCountin interfaceAllocationPolicyOrBuilder
-
getInstances
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;- Specified by:
getInstancesin interfaceAllocationPolicyOrBuilder
-
setInstances
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;
-
setInstances
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;
-
addInstances
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;
-
addInstances
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;
-
addInstances
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;
-
addInstances
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;
-
addAllInstances
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;
-
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;
-
removeInstances
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;
-
getInstancesBuilder
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;
-
getInstancesOrBuilder
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;- Specified by:
getInstancesOrBuilderin interfaceAllocationPolicyOrBuilder
-
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;- Specified by:
getInstancesOrBuilderListin interfaceAllocationPolicyOrBuilder
-
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;
-
addInstancesBuilder
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;
-
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;
-
getInstanceTemplatesList
@Deprecated public com.google.protobuf.ProtocolStringList 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];- Specified by:
getInstanceTemplatesListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the instanceTemplates.
-
getInstanceTemplatesCount
@Deprecated public 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];- Specified by:
getInstanceTemplatesCountin interfaceAllocationPolicyOrBuilder- Returns:
- The count of instanceTemplates.
-
getInstanceTemplates
@Deprecated public 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];- Specified by:
getInstanceTemplatesin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The instanceTemplates at the given index.
-
getInstanceTemplatesBytes
@Deprecated public 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];- Specified by:
getInstanceTemplatesBytesin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instanceTemplates at the given index.
-
setInstanceTemplates
@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=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Parameters:
index- The index to set the value at.value- The instanceTemplates to set.- Returns:
- This builder for chaining.
-
addInstanceTemplates
@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=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Parameters:
value- The instanceTemplates to add.- Returns:
- This builder for chaining.
-
addAllInstanceTemplates
@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=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Parameters:
values- The instanceTemplates to add.- Returns:
- This builder for chaining.
-
clearInstanceTemplates
@Deprecated public AllocationPolicy.Builder clearInstanceTemplates()
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:
- This builder for chaining.
-
addInstanceTemplatesBytes
@Deprecated public AllocationPolicy.Builder addInstanceTemplatesBytes(com.google.protobuf.ByteString value)
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:
value- The bytes of the instanceTemplates to add.- Returns:
- This builder for chaining.
-
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=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the provisioningModels.
-
getProvisioningModelsCount
@Deprecated public 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];- Specified by:
getProvisioningModelsCountin interfaceAllocationPolicyOrBuilder- Returns:
- The count of provisioningModels.
-
getProvisioningModels
@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=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The provisioningModels at the given index.
-
setProvisioningModels
@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=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 to set the value at.value- The provisioningModels to set.- Returns:
- This builder for chaining.
-
addProvisioningModels
@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=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Parameters:
value- The provisioningModels to add.- Returns:
- This builder for chaining.
-
addAllProvisioningModels
@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=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Parameters:
values- The provisioningModels to add.- Returns:
- This builder for chaining.
-
clearProvisioningModels
@Deprecated public AllocationPolicy.Builder clearProvisioningModels()
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:
- This builder for chaining.
-
getProvisioningModelsValueList
@Deprecated public 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];- Specified by:
getProvisioningModelsValueListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the enum numeric values on the wire for provisioningModels.
-
getProvisioningModelsValue
@Deprecated public 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];- Specified by:
getProvisioningModelsValuein interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of provisioningModels at the given index.
-
setProvisioningModelsValue
@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=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 to set the value at.value- The enum numeric value on the wire for provisioningModels to set.- Returns:
- This builder for chaining.
-
addProvisioningModelsValue
@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=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Parameters:
value- The enum numeric value on the wire for provisioningModels to add.- Returns:
- This builder for chaining.
-
addAllProvisioningModelsValue
@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=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Parameters:
values- The enum numeric values on the wire for provisioningModels to add.- Returns:
- This builder for chaining.
-
getServiceAccountEmail
@Deprecated public 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];- Specified by:
getServiceAccountEmailin interfaceAllocationPolicyOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
@Deprecated public 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];- Specified by:
getServiceAccountEmailBytesin interfaceAllocationPolicyOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
setServiceAccountEmail
@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=570Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];- Parameters:
value- The serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
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=570Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];- Returns:
- This builder for chaining.
-
setServiceAccountEmailBytes
@Deprecated public AllocationPolicy.Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
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];- Parameters:
value- The bytes for serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
hasServiceAccount
public boolean hasServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
hasServiceAccountin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
public ServiceAccount getServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
getServiceAccountin interfaceAllocationPolicyOrBuilder- Returns:
- The serviceAccount.
-
setServiceAccount
public AllocationPolicy.Builder setServiceAccount(ServiceAccount value)
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
-
setServiceAccount
public AllocationPolicy.Builder setServiceAccount(ServiceAccount.Builder builderForValue)
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
-
mergeServiceAccount
public AllocationPolicy.Builder mergeServiceAccount(ServiceAccount value)
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
-
clearServiceAccount
public AllocationPolicy.Builder clearServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
-
getServiceAccountBuilder
public ServiceAccount.Builder getServiceAccountBuilder()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
-
getServiceAccountOrBuilder
public ServiceAccountOrBuilder getServiceAccountOrBuilder()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
getServiceAccountOrBuilderin interfaceAllocationPolicyOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:AllocationPolicyOrBuilderLabels 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;- Specified by:
getLabelsCountin interfaceAllocationPolicyOrBuilder
-
containsLabels
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](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;- Specified by:
containsLabelsin interfaceAllocationPolicyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAllocationPolicyOrBuilder
-
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](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;- Specified by:
getLabelsMapin interfaceAllocationPolicyOrBuilder
-
getLabelsOrDefault
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](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;- Specified by:
getLabelsOrDefaultin interfaceAllocationPolicyOrBuilder
-
getLabelsOrThrow
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](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;- Specified by:
getLabelsOrThrowin interfaceAllocationPolicyOrBuilder
-
clearLabels
public AllocationPolicy.Builder clearLabels()
-
removeLabels
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](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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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](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;
-
putAllLabels
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](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
public boolean hasNetwork()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
hasNetworkin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the network field is set.
-
getNetwork
public AllocationPolicy.NetworkPolicy getNetwork()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
getNetworkin interfaceAllocationPolicyOrBuilder- Returns:
- The network.
-
setNetwork
public AllocationPolicy.Builder setNetwork(AllocationPolicy.NetworkPolicy value)
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
-
setNetwork
public AllocationPolicy.Builder setNetwork(AllocationPolicy.NetworkPolicy.Builder builderForValue)
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
-
mergeNetwork
public AllocationPolicy.Builder mergeNetwork(AllocationPolicy.NetworkPolicy value)
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
-
clearNetwork
public AllocationPolicy.Builder clearNetwork()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
-
getNetworkBuilder
public AllocationPolicy.NetworkPolicy.Builder getNetworkBuilder()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
-
getNetworkOrBuilder
public AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
getNetworkOrBuilderin interfaceAllocationPolicyOrBuilder
-
hasPlacement
public boolean hasPlacement()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
hasPlacementin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the placement field is set.
-
getPlacement
public AllocationPolicy.PlacementPolicy getPlacement()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
getPlacementin interfaceAllocationPolicyOrBuilder- Returns:
- The placement.
-
setPlacement
public AllocationPolicy.Builder setPlacement(AllocationPolicy.PlacementPolicy value)
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
-
setPlacement
public AllocationPolicy.Builder setPlacement(AllocationPolicy.PlacementPolicy.Builder builderForValue)
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
-
mergePlacement
public AllocationPolicy.Builder mergePlacement(AllocationPolicy.PlacementPolicy value)
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
-
clearPlacement
public AllocationPolicy.Builder clearPlacement()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
-
getPlacementBuilder
public AllocationPolicy.PlacementPolicy.Builder getPlacementBuilder()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
-
getPlacementOrBuilder
public AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
getPlacementOrBuilderin interfaceAllocationPolicyOrBuilder
-
setUnknownFields
public final AllocationPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
mergeUnknownFields
public final AllocationPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
-