Package com.google.cloud.batch.v1
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.v1.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.v1.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.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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicybuild()AllocationPolicybuildPartial()AllocationPolicy.Builderclear()AllocationPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AllocationPolicy.BuilderclearInstances()Describe instances that can be created by this AllocationPolicy.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.BuilderclearServiceAccount()Service account that VMs will run as.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.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.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.ServiceAccountgetServiceAccount()Service account that VMs will run as.ServiceAccount.BuildergetServiceAccountBuilder()Service account that VMs will run as.ServiceAccountOrBuildergetServiceAccountOrBuilder()Service account that VMs will run as.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.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.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.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.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.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.v1.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.v1.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.v1.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.v1.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.v1.AllocationPolicy.LocationPolicy location = 1;
-
clearLocation
public AllocationPolicy.Builder clearLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;
-
getLocationBuilder
public AllocationPolicy.LocationPolicy.Builder getLocationBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;
-
getLocationOrBuilder
public AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1;- Specified by:
getLocationOrBuilderin 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
-
hasServiceAccount
public boolean hasServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1.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.v1.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.v1.ServiceAccount service_account = 9;
-
setServiceAccount
public AllocationPolicy.Builder setServiceAccount(ServiceAccount.Builder builderForValue)
Service account that VMs will run as.
.google.cloud.batch.v1.ServiceAccount service_account = 9;
-
mergeServiceAccount
public AllocationPolicy.Builder mergeServiceAccount(ServiceAccount value)
Service account that VMs will run as.
.google.cloud.batch.v1.ServiceAccount service_account = 9;
-
clearServiceAccount
public AllocationPolicy.Builder clearServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1.ServiceAccount service_account = 9;
-
getServiceAccountBuilder
public ServiceAccount.Builder getServiceAccountBuilder()
Service account that VMs will run as.
.google.cloud.batch.v1.ServiceAccount service_account = 9;
-
getServiceAccountOrBuilder
public ServiceAccountOrBuilder getServiceAccountOrBuilder()
Service account that VMs will run as.
.google.cloud.batch.v1.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.v1.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.v1.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.v1.AllocationPolicy.NetworkPolicy network = 7;
-
setNetwork
public AllocationPolicy.Builder setNetwork(AllocationPolicy.NetworkPolicy.Builder builderForValue)
The network policy.
.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;
-
mergeNetwork
public AllocationPolicy.Builder mergeNetwork(AllocationPolicy.NetworkPolicy value)
The network policy.
.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;
-
clearNetwork
public AllocationPolicy.Builder clearNetwork()
The network policy.
.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;
-
getNetworkBuilder
public AllocationPolicy.NetworkPolicy.Builder getNetworkBuilder()
The network policy.
.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;
-
getNetworkOrBuilder
public AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder()
The network policy.
.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
getNetworkOrBuilderin interfaceAllocationPolicyOrBuilder
-
hasPlacement
public boolean hasPlacement()
The placement policy.
.google.cloud.batch.v1.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.v1.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.v1.AllocationPolicy.PlacementPolicy placement = 10;
-
setPlacement
public AllocationPolicy.Builder setPlacement(AllocationPolicy.PlacementPolicy.Builder builderForValue)
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;
-
mergePlacement
public AllocationPolicy.Builder mergePlacement(AllocationPolicy.PlacementPolicy value)
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;
-
clearPlacement
public AllocationPolicy.Builder clearPlacement()
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;
-
getPlacementBuilder
public AllocationPolicy.PlacementPolicy.Builder getPlacementBuilder()
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;
-
getPlacementOrBuilder
public AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder()
The placement policy.
.google.cloud.batch.v1.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>
-
-