Package com.google.cloud.batch.v1alpha
Class AllocationPolicy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.batch.v1alpha.AllocationPolicy
-
- All Implemented Interfaces:
AllocationPolicyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class AllocationPolicy extends com.google.protobuf.GeneratedMessageV3 implements AllocationPolicyOrBuilder
A Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.
Protobuf typegoogle.cloud.batch.v1alpha.AllocationPolicy- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAllocationPolicy.AcceleratorAccelerator describes Compute Engine accelerators to be attached to the VM.static interfaceAllocationPolicy.AcceleratorOrBuilderstatic classAllocationPolicy.AttachedDiskA new or an existing persistent disk (PD) or a local ssd attached to a VM instance.static interfaceAllocationPolicy.AttachedDiskOrBuilderstatic classAllocationPolicy.BuilderA Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.static classAllocationPolicy.DiskA new persistent disk or a local ssd.static interfaceAllocationPolicy.DiskOrBuilderstatic classAllocationPolicy.InstancePolicyInstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.static interfaceAllocationPolicy.InstancePolicyOrBuilderstatic classAllocationPolicy.InstancePolicyOrTemplateInstancePolicyOrTemplate lets you define the type of resources to use for this job either with an InstancePolicy or an instance template.static interfaceAllocationPolicy.InstancePolicyOrTemplateOrBuilderstatic classAllocationPolicy.LocationPolicyProtobuf typegoogle.cloud.batch.v1alpha.AllocationPolicy.LocationPolicystatic interfaceAllocationPolicy.LocationPolicyOrBuilderstatic classAllocationPolicy.NetworkInterfaceA network interface.static interfaceAllocationPolicy.NetworkInterfaceOrBuilderstatic classAllocationPolicy.NetworkPolicyNetworkPolicy describes VM instance network configurations.static interfaceAllocationPolicy.NetworkPolicyOrBuilderstatic classAllocationPolicy.PlacementPolicyPlacementPolicy describes a group placement policy for the VMs controlled by this AllocationPolicy.static interfaceAllocationPolicy.PlacementPolicyOrBuilderstatic classAllocationPolicy.ProvisioningModelCompute Engine VM instance provisioning model.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intINSTANCE_FIELD_NUMBERstatic intINSTANCE_TEMPLATES_FIELD_NUMBERstatic intINSTANCES_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intLOCATION_FIELD_NUMBERstatic intNETWORK_FIELD_NUMBERstatic intPLACEMENT_FIELD_NUMBERstatic intPROVISIONING_MODELS_FIELD_NUMBERstatic intSERVICE_ACCOUNT_EMAIL_FIELD_NUMBERstatic intSERVICE_ACCOUNT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Labels applied to all VM instances and other resources created by AllocationPolicy.booleanequals(Object obj)static AllocationPolicygetDefaultInstance()AllocationPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()AllocationPolicy.InstancePolicygetInstance()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.AllocationPolicy.InstancePolicyOrBuildergetInstanceOrBuilder()Deprecated.AllocationPolicy.InstancePolicyOrTemplategetInstances(int index)Describe instances that can be created by this AllocationPolicy.intgetInstancesCount()Describe instances that can be created by this AllocationPolicy.List<AllocationPolicy.InstancePolicyOrTemplate>getInstancesList()Describe instances that can be created by this AllocationPolicy.AllocationPolicy.InstancePolicyOrTemplateOrBuildergetInstancesOrBuilder(int index)Describe instances that can be created by this AllocationPolicy.List<? extends AllocationPolicy.InstancePolicyOrTemplateOrBuilder>getInstancesOrBuilderList()Describe instances that can be created by this AllocationPolicy.StringgetInstanceTemplates(int index)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ByteStringgetInstanceTemplatesBytes(int index)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.intgetInstanceTemplatesCount()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ProtocolStringListgetInstanceTemplatesList()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels applied to all VM instances and other resources created by AllocationPolicy.Map<String,String>getLabelsMap()Labels applied to all VM instances and other resources created by AllocationPolicy.StringgetLabelsOrDefault(String key, String defaultValue)Labels applied to all VM instances and other resources created by AllocationPolicy.StringgetLabelsOrThrow(String key)Labels applied to all VM instances and other resources created by AllocationPolicy.AllocationPolicy.LocationPolicygetLocation()Location where compute resources should be allocated for the Job.AllocationPolicy.LocationPolicyOrBuildergetLocationOrBuilder()Location where compute resources should be allocated for the Job.AllocationPolicy.NetworkPolicygetNetwork()The network policy.AllocationPolicy.NetworkPolicyOrBuildergetNetworkOrBuilder()The network policy.com.google.protobuf.Parser<AllocationPolicy>getParserForType()AllocationPolicy.PlacementPolicygetPlacement()The placement policy.AllocationPolicy.PlacementPolicyOrBuildergetPlacementOrBuilder()The placement policy.AllocationPolicy.ProvisioningModelgetProvisioningModels(int index)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intgetProvisioningModelsCount()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.List<AllocationPolicy.ProvisioningModel>getProvisioningModelsList()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intgetProvisioningModelsValue(int index)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.List<Integer>getProvisioningModelsValueList()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.intgetSerializedSize()ServiceAccountgetServiceAccount()Service account that VMs will run as.StringgetServiceAccountEmail()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.com.google.protobuf.ByteStringgetServiceAccountEmailBytes()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.ServiceAccountOrBuildergetServiceAccountOrBuilder()Service account that VMs will run as.inthashCode()booleanhasInstance()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.booleanhasLocation()Location where compute resources should be allocated for the Job.booleanhasNetwork()The network policy.booleanhasPlacement()The placement policy.booleanhasServiceAccount()Service account that VMs will run as.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static AllocationPolicy.BuildernewBuilder()static AllocationPolicy.BuildernewBuilder(AllocationPolicy prototype)AllocationPolicy.BuildernewBuilderForType()protected AllocationPolicy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AllocationPolicyparseDelimitedFrom(InputStream input)static AllocationPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicyparseFrom(byte[] data)static AllocationPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicyparseFrom(com.google.protobuf.ByteString data)static AllocationPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicyparseFrom(com.google.protobuf.CodedInputStream input)static AllocationPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicyparseFrom(InputStream input)static AllocationPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AllocationPolicyparseFrom(ByteBuffer data)static AllocationPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AllocationPolicy>parser()AllocationPolicy.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCE_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCES_FIELD_NUMBER
public static final int INSTANCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCE_TEMPLATES_FIELD_NUMBER
public static final int INSTANCE_TEMPLATES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROVISIONING_MODELS_FIELD_NUMBER
public static final int PROVISIONING_MODELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PLACEMENT_FIELD_NUMBER
public static final int PLACEMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasLocation
public boolean hasLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;- Specified by:
hasLocationin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
public AllocationPolicy.LocationPolicy getLocation()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;- Specified by:
getLocationin interfaceAllocationPolicyOrBuilder- Returns:
- The location.
-
getLocationOrBuilder
public AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder()
Location where compute resources should be allocated for the Job.
.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;- Specified by:
getLocationOrBuilderin interfaceAllocationPolicyOrBuilder
-
hasInstance
@Deprecated public boolean hasInstance()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=557Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];- Specified by:
hasInstancein interfaceAllocationPolicyOrBuilder- Returns:
- Whether the instance field is set.
-
getInstance
@Deprecated public AllocationPolicy.InstancePolicy getInstance()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=557Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];- Specified by:
getInstancein interfaceAllocationPolicyOrBuilder- Returns:
- The instance.
-
getInstanceOrBuilder
@Deprecated public AllocationPolicy.InstancePolicyOrBuilder getInstanceOrBuilder()
Deprecated.Deprecated: please use instances[0].policy instead.
.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];- Specified by:
getInstanceOrBuilderin interfaceAllocationPolicyOrBuilder
-
getInstancesList
public List<AllocationPolicy.InstancePolicyOrTemplate> getInstancesList()
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;- Specified by:
getInstancesListin interfaceAllocationPolicyOrBuilder
-
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
-
getInstancesCount
public int getInstancesCount()
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;- Specified by:
getInstancesCountin interfaceAllocationPolicyOrBuilder
-
getInstances
public AllocationPolicy.InstancePolicyOrTemplate getInstances(int index)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;- Specified by:
getInstancesin interfaceAllocationPolicyOrBuilder
-
getInstancesOrBuilder
public AllocationPolicy.InstancePolicyOrTemplateOrBuilder getInstancesOrBuilder(int index)
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;- Specified by:
getInstancesOrBuilderin interfaceAllocationPolicyOrBuilder
-
getInstanceTemplatesList
@Deprecated public com.google.protobuf.ProtocolStringList getInstanceTemplatesList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Specified by:
getInstanceTemplatesListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the instanceTemplates.
-
getInstanceTemplatesCount
@Deprecated public int getInstanceTemplatesCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Specified by:
getInstanceTemplatesCountin interfaceAllocationPolicyOrBuilder- Returns:
- The count of instanceTemplates.
-
getInstanceTemplates
@Deprecated public String getInstanceTemplates(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Specified by:
getInstanceTemplatesin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The instanceTemplates at the given index.
-
getInstanceTemplatesBytes
@Deprecated public com.google.protobuf.ByteString getInstanceTemplatesBytes(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564Deprecated: please use instances[0].template instead.
repeated string instance_templates = 3 [deprecated = true];- Specified by:
getInstanceTemplatesBytesin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instanceTemplates at the given index.
-
getProvisioningModelsList
@Deprecated public List<AllocationPolicy.ProvisioningModel> getProvisioningModelsList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the provisioningModels.
-
getProvisioningModelsCount
@Deprecated public int getProvisioningModelsCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsCountin interfaceAllocationPolicyOrBuilder- Returns:
- The count of provisioningModels.
-
getProvisioningModels
@Deprecated public AllocationPolicy.ProvisioningModel getProvisioningModels(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsin interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The provisioningModels at the given index.
-
getProvisioningModelsValueList
@Deprecated public List<Integer> getProvisioningModelsValueList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsValueListin interfaceAllocationPolicyOrBuilder- Returns:
- A list containing the enum numeric values on the wire for provisioningModels.
-
getProvisioningModelsValue
@Deprecated public int getProvisioningModelsValue(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567Deprecated: please use instances[0].policy.provisioning_model instead.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];- Specified by:
getProvisioningModelsValuein interfaceAllocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of provisioningModels at the given index.
-
getServiceAccountEmail
@Deprecated public String getServiceAccountEmail()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=570Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];- Specified by:
getServiceAccountEmailin interfaceAllocationPolicyOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
@Deprecated public com.google.protobuf.ByteString getServiceAccountEmailBytes()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=570Deprecated: please use service_account instead.
string service_account_email = 5 [deprecated = true];- Specified by:
getServiceAccountEmailBytesin interfaceAllocationPolicyOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
hasServiceAccount
public boolean hasServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
hasServiceAccountin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
public ServiceAccount getServiceAccount()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
getServiceAccountin interfaceAllocationPolicyOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountOrBuilder
public ServiceAccountOrBuilder getServiceAccountOrBuilder()
Service account that VMs will run as.
.google.cloud.batch.v1alpha.ServiceAccount service_account = 9;- Specified by:
getServiceAccountOrBuilderin interfaceAllocationPolicyOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:AllocationPolicyOrBuilderLabels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;- Specified by:
getLabelsCountin interfaceAllocationPolicyOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;- Specified by:
containsLabelsin interfaceAllocationPolicyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAllocationPolicyOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;- Specified by:
getLabelsMapin interfaceAllocationPolicyOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;- Specified by:
getLabelsOrDefaultin interfaceAllocationPolicyOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 6;- Specified by:
getLabelsOrThrowin interfaceAllocationPolicyOrBuilder
-
hasNetwork
public boolean hasNetwork()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
hasNetworkin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the network field is set.
-
getNetwork
public AllocationPolicy.NetworkPolicy getNetwork()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
getNetworkin interfaceAllocationPolicyOrBuilder- Returns:
- The network.
-
getNetworkOrBuilder
public AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;- Specified by:
getNetworkOrBuilderin interfaceAllocationPolicyOrBuilder
-
hasPlacement
public boolean hasPlacement()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
hasPlacementin interfaceAllocationPolicyOrBuilder- Returns:
- Whether the placement field is set.
-
getPlacement
public AllocationPolicy.PlacementPolicy getPlacement()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
getPlacementin interfaceAllocationPolicyOrBuilder- Returns:
- The placement.
-
getPlacementOrBuilder
public AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;- Specified by:
getPlacementOrBuilderin interfaceAllocationPolicyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AllocationPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AllocationPolicy parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AllocationPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AllocationPolicy parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AllocationPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AllocationPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AllocationPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AllocationPolicy.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AllocationPolicy.Builder newBuilder()
-
newBuilder
public static AllocationPolicy.Builder newBuilder(AllocationPolicy prototype)
-
toBuilder
public AllocationPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AllocationPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AllocationPolicy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AllocationPolicy> parser()
-
getParserForType
public com.google.protobuf.Parser<AllocationPolicy> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AllocationPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-