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.GeneratedMessage.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.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllInstances(Iterable<? extends AllocationPolicy.InstancePolicyOrTemplate> values) Describe instances that can be created by this AllocationPolicy.addAllInstanceTemplates(Iterable<String> values) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.addAllProvisioningModels(Iterable<? extends AllocationPolicy.ProvisioningModel> values) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.addAllProvisioningModelsValue(Iterable<Integer> values) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.addAllTags(Iterable<String> values) Optional.addInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value) Describe instances that can be created by this AllocationPolicy.addInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue) Describe instances that can be created by this AllocationPolicy.Describe instances that can be created by this AllocationPolicy.addInstances(AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue) Describe instances that can be created by this AllocationPolicy.Describe instances that can be created by this AllocationPolicy.addInstancesBuilder(int index) Describe instances that can be created by this AllocationPolicy.addInstanceTemplates(String value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.addInstanceTemplatesBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.addProvisioningModelsValue(int value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.Optional.addTagsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Deprecated.Describe instances that can be created by this AllocationPolicy.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.Location where compute resources should be allocated for the Job.The network policy.The placement policy.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.Defines the service account for Batch-created VMs.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.Optional.booleancontainsLabels(String key) Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.Deprecated.Deprecated.getInstances(int index) Describe instances that can be created by this AllocationPolicy.getInstancesBuilder(int index) Describe instances that can be created by this AllocationPolicy.Describe instances that can be created by this AllocationPolicy.intDescribe instances that can be created by this AllocationPolicy.Describe instances that can be created by this AllocationPolicy.getInstancesOrBuilder(int index) Describe instances that can be created by this AllocationPolicy.Describe instances that can be created by this AllocationPolicy.getInstanceTemplates(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.intDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ProtocolStringListDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.Deprecated.intCustom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.getLabelsOrDefault(String key, String defaultValue) Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.getLabelsOrThrow(String key) Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.Location where compute resources should be allocated for the Job.Location where compute resources should be allocated for the Job.Location where compute resources should be allocated for the Job.Deprecated.The network policy.The network policy.The network policy.The placement policy.The placement policy.The placement policy.getProvisioningModels(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intgetProvisioningModelsValue(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.Defines the service account for Batch-created VMs.Defines the service account for Batch-created VMs.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.Defines the service account for Batch-created VMs.getTags(int index) Optional.com.google.protobuf.ByteStringgetTagsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.booleanLocation where compute resources should be allocated for the Job.booleanThe network policy.booleanThe placement policy.booleanDefines the service account for Batch-created VMs.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(AllocationPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Deprecated.Location where compute resources should be allocated for the Job.The network policy.The placement policy.Defines the service account for Batch-created VMs.putAllLabels(Map<String, String> values) Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.removeInstances(int index) Describe instances that can be created by this AllocationPolicy.removeLabels(String key) Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels.Deprecated.setInstance(AllocationPolicy.InstancePolicy.Builder builderForValue) Deprecated.setInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value) Describe instances that can be created by this AllocationPolicy.setInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue) Describe instances that can be created by this AllocationPolicy.setInstanceTemplates(int index, String value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.Location where compute resources should be allocated for the Job.setLocation(AllocationPolicy.LocationPolicy.Builder builderForValue) Location where compute resources should be allocated for the Job.The network policy.setNetwork(AllocationPolicy.NetworkPolicy.Builder builderForValue) The network policy.The placement policy.setPlacement(AllocationPolicy.PlacementPolicy.Builder builderForValue) The placement policy.setProvisioningModels(int index, AllocationPolicy.ProvisioningModel value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.setProvisioningModelsValue(int index, int value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.setServiceAccount(ServiceAccount value) Defines the service account for Batch-created VMs.setServiceAccount(ServiceAccount.Builder builderForValue) Defines the service account for Batch-created VMs.setServiceAccountEmail(String value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.setServiceAccountEmailBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<AllocationPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1; -
clearLocation
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1; -
getLocationBuilder
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1; -
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.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=642Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=642Deprecated: 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.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.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true]; -
clearInstance
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true]; -
getInstanceBuilder
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true]; -
getInstanceOrBuilder
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];- Specified by:
getInstanceOrBuilderin interfaceAllocationPolicyOrBuilder
-
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
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
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
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
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
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
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
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
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
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.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Specified by:
getInstanceTemplatesCountin interfaceAllocationPolicyOrBuilder- Returns:
- The count of instanceTemplates.
-
getInstanceTemplates
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649Deprecated: 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=649Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: 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=652Deprecated: 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=652Deprecated: 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=652Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];- Specified by:
getServiceAccountEmailin interfaceAllocationPolicyOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];- Specified by:
getServiceAccountEmailBytesin interfaceAllocationPolicyOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
setServiceAccountEmail
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655Deprecated: 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.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655Deprecated: 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=655Deprecated: 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()Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
hasServiceAccountin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
getServiceAccountin interfaceAllocationPolicyOrBuilder- Returns:
- The serviceAccount.
-
setServiceAccount
Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9; -
setServiceAccount
Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9; -
mergeServiceAccount
Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9; -
clearServiceAccount
Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9; -
getServiceAccountBuilder
Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9; -
getServiceAccountOrBuilder
Defines the service account for Batch-created VMs. If omitted, the [default Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. Must match the service account specified in any used instance template configured in the Batch job. Includes the following fields: * email: The service account's email address. If not set, the default Compute Engine service account is used. * scopes: Additional OAuth scopes to grant the service account, beyond the default cloud-platform scope. (list of strings)
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
getServiceAccountOrBuilderin interfaceAllocationPolicyOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:AllocationPolicyOrBuilderCustom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
getLabelsCountin interfaceAllocationPolicyOrBuilder
-
containsLabels
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
containsLabelsin interfaceAllocationPolicyOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAllocationPolicyOrBuilder
-
getLabelsMap
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
getLabelsMapin interfaceAllocationPolicyOrBuilder
-
getLabelsOrDefault
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
getLabelsOrDefaultin interfaceAllocationPolicyOrBuilder
-
getLabelsOrThrow
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6;- Specified by:
getLabelsOrThrowin interfaceAllocationPolicyOrBuilder
-
clearLabels
-
removeLabels
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6; -
putAllLabels
Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 6; -
hasNetwork
public boolean hasNetwork()The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
hasNetworkin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the network field is set.
-
getNetwork
The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
getNetworkin interfaceAllocationPolicyOrBuilder- Returns:
- The network.
-
setNetwork
The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7; -
setNetwork
The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7; -
mergeNetwork
The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7; -
clearNetwork
The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7; -
getNetworkBuilder
The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7; -
getNetworkOrBuilder
The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field.
.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
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
getPlacementin interfaceAllocationPolicyOrBuilder- Returns:
- The placement.
-
setPlacement
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
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10; -
clearPlacement
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10; -
getPlacementBuilder
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10; -
getPlacementOrBuilder
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
getPlacementOrBuilderin interfaceAllocationPolicyOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsCountin interfaceAllocationPolicyOrBuilder- Returns:
- The count of tags.
-
getTags
Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsBytesin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addTagsBytes
Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-