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.Builder
addAllInstances(Iterable<? extends AllocationPolicy.InstancePolicyOrTemplate> values)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.Builder
addInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.Builder
addInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.Builder
addInstances(AllocationPolicy.InstancePolicyOrTemplate value)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.Builder
addInstances(AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.InstancePolicyOrTemplate.Builder
addInstancesBuilder()
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.InstancePolicyOrTemplate.Builder
addInstancesBuilder(int index)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationPolicy
build()
AllocationPolicy
buildPartial()
AllocationPolicy.Builder
clear()
AllocationPolicy.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AllocationPolicy.Builder
clearInstances()
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.Builder
clearLabels()
AllocationPolicy.Builder
clearLocation()
Location where compute resources should be allocated for the Job.AllocationPolicy.Builder
clearNetwork()
The network policy.AllocationPolicy.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AllocationPolicy.Builder
clearPlacement()
The placement policy.AllocationPolicy.Builder
clearServiceAccount()
Service account that VMs will run as.AllocationPolicy.Builder
clone()
boolean
containsLabels(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
AllocationPolicy.InstancePolicyOrTemplate
getInstances(int index)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.InstancePolicyOrTemplate.Builder
getInstancesBuilder(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.int
getInstancesCount()
Describe instances that can be created by this AllocationPolicy.List<AllocationPolicy.InstancePolicyOrTemplate>
getInstancesList()
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.InstancePolicyOrTemplateOrBuilder
getInstancesOrBuilder(int index)
Describe instances that can be created by this AllocationPolicy.List<? extends AllocationPolicy.InstancePolicyOrTemplateOrBuilder>
getInstancesOrBuilderList()
Describe instances that can be created by this AllocationPolicy.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels applied to all VM instances and other resources created by AllocationPolicy.Map<String,String>
getLabelsMap()
Labels applied to all VM instances and other resources created by AllocationPolicy.String
getLabelsOrDefault(String key, String defaultValue)
Labels applied to all VM instances and other resources created by AllocationPolicy.String
getLabelsOrThrow(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy.LocationPolicy
getLocation()
Location where compute resources should be allocated for the Job.AllocationPolicy.LocationPolicy.Builder
getLocationBuilder()
Location where compute resources should be allocated for the Job.AllocationPolicy.LocationPolicyOrBuilder
getLocationOrBuilder()
Location where compute resources should be allocated for the Job.Map<String,String>
getMutableLabels()
Deprecated.AllocationPolicy.NetworkPolicy
getNetwork()
The network policy.AllocationPolicy.NetworkPolicy.Builder
getNetworkBuilder()
The network policy.AllocationPolicy.NetworkPolicyOrBuilder
getNetworkOrBuilder()
The network policy.AllocationPolicy.PlacementPolicy
getPlacement()
The placement policy.AllocationPolicy.PlacementPolicy.Builder
getPlacementBuilder()
The placement policy.AllocationPolicy.PlacementPolicyOrBuilder
getPlacementOrBuilder()
The placement policy.ServiceAccount
getServiceAccount()
Service account that VMs will run as.ServiceAccount.Builder
getServiceAccountBuilder()
Service account that VMs will run as.ServiceAccountOrBuilder
getServiceAccountOrBuilder()
Service account that VMs will run as.boolean
hasLocation()
Location where compute resources should be allocated for the Job.boolean
hasNetwork()
The network policy.boolean
hasPlacement()
The placement policy.boolean
hasServiceAccount()
Service account that VMs will run as.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
AllocationPolicy.Builder
mergeFrom(AllocationPolicy other)
AllocationPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AllocationPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
AllocationPolicy.Builder
mergeLocation(AllocationPolicy.LocationPolicy value)
Location where compute resources should be allocated for the Job.AllocationPolicy.Builder
mergeNetwork(AllocationPolicy.NetworkPolicy value)
The network policy.AllocationPolicy.Builder
mergePlacement(AllocationPolicy.PlacementPolicy value)
The placement policy.AllocationPolicy.Builder
mergeServiceAccount(ServiceAccount value)
Service account that VMs will run as.AllocationPolicy.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AllocationPolicy.Builder
putAllLabels(Map<String,String> values)
Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy.Builder
putLabels(String key, String value)
Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy.Builder
removeInstances(int index)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.Builder
removeLabels(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationPolicy.Builder
setInstances(int index, AllocationPolicy.InstancePolicyOrTemplate value)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.Builder
setInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
Describe instances that can be created by this AllocationPolicy.AllocationPolicy.Builder
setLocation(AllocationPolicy.LocationPolicy value)
Location where compute resources should be allocated for the Job.AllocationPolicy.Builder
setLocation(AllocationPolicy.LocationPolicy.Builder builderForValue)
Location where compute resources should be allocated for the Job.AllocationPolicy.Builder
setNetwork(AllocationPolicy.NetworkPolicy value)
The network policy.AllocationPolicy.Builder
setNetwork(AllocationPolicy.NetworkPolicy.Builder builderForValue)
The network policy.AllocationPolicy.Builder
setPlacement(AllocationPolicy.PlacementPolicy value)
The placement policy.AllocationPolicy.Builder
setPlacement(AllocationPolicy.PlacementPolicy.Builder builderForValue)
The placement policy.AllocationPolicy.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AllocationPolicy.Builder
setServiceAccount(ServiceAccount value)
Service account that VMs will run as.AllocationPolicy.Builder
setServiceAccount(ServiceAccount.Builder builderForValue)
Service account that VMs will run as.AllocationPolicy.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
clear
public AllocationPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
getDefaultInstanceForType
public AllocationPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
setField
public AllocationPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
clearField
public AllocationPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
clearOneof
public AllocationPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
setRepeatedField
public AllocationPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
addRepeatedField
public AllocationPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
mergeFrom
public AllocationPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Builder>
-
mergeFrom
public AllocationPolicy.Builder mergeFrom(AllocationPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasLocation
in 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:
getLocation
in 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:
getLocationOrBuilder
in 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:
getInstancesList
in 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:
getInstancesCount
in 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:
getInstances
in 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:
getInstancesOrBuilder
in 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:
getInstancesOrBuilderList
in 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:
hasServiceAccount
in 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:
getServiceAccount
in 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:
getServiceAccountOrBuilder
in interfaceAllocationPolicyOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:AllocationPolicyOrBuilder
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:
getLabelsCount
in 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:
containsLabels
in interfaceAllocationPolicyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
hasNetwork
in 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:
getNetwork
in 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:
getNetworkOrBuilder
in interfaceAllocationPolicyOrBuilder
-
hasPlacement
public boolean hasPlacement()
The placement policy.
.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10;
- Specified by:
hasPlacement
in 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:
getPlacement
in 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:
getPlacementOrBuilder
in interfaceAllocationPolicyOrBuilder
-
setUnknownFields
public final AllocationPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
mergeUnknownFields
public final AllocationPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Builder>
-
-