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 class
AllocationPolicy.Accelerator
Accelerator describes Compute Engine accelerators to be attached to the VM.static interface
AllocationPolicy.AcceleratorOrBuilder
static class
AllocationPolicy.AttachedDisk
A new or an existing persistent disk (PD) or a local ssd attached to a VM instance.static interface
AllocationPolicy.AttachedDiskOrBuilder
static class
AllocationPolicy.Builder
A Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.static class
AllocationPolicy.Disk
A new persistent disk or a local ssd.static interface
AllocationPolicy.DiskOrBuilder
static class
AllocationPolicy.InstancePolicy
InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.static interface
AllocationPolicy.InstancePolicyOrBuilder
static class
AllocationPolicy.InstancePolicyOrTemplate
InstancePolicyOrTemplate lets you define the type of resources to use for this job either with an InstancePolicy or an instance template.static interface
AllocationPolicy.InstancePolicyOrTemplateOrBuilder
static class
AllocationPolicy.LocationPolicy
Protobuf typegoogle.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy
static interface
AllocationPolicy.LocationPolicyOrBuilder
static class
AllocationPolicy.NetworkInterface
A network interface.static interface
AllocationPolicy.NetworkInterfaceOrBuilder
static class
AllocationPolicy.NetworkPolicy
NetworkPolicy describes VM instance network configurations.static interface
AllocationPolicy.NetworkPolicyOrBuilder
static class
AllocationPolicy.PlacementPolicy
PlacementPolicy describes a group placement policy for the VMs controlled by this AllocationPolicy.static interface
AllocationPolicy.PlacementPolicyOrBuilder
static class
AllocationPolicy.ProvisioningModel
Compute 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 int
INSTANCE_FIELD_NUMBER
static int
INSTANCE_TEMPLATES_FIELD_NUMBER
static int
INSTANCES_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
LOCATION_FIELD_NUMBER
static int
NETWORK_FIELD_NUMBER
static int
PLACEMENT_FIELD_NUMBER
static int
PROVISIONING_MODELS_FIELD_NUMBER
static int
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
static int
SERVICE_ACCOUNT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels applied to all VM instances and other resources created by AllocationPolicy.boolean
equals(Object obj)
static AllocationPolicy
getDefaultInstance()
AllocationPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
AllocationPolicy.InstancePolicy
getInstance()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.AllocationPolicy.InstancePolicyOrBuilder
getInstanceOrBuilder()
Deprecated.AllocationPolicy.InstancePolicyOrTemplate
getInstances(int index)
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.String
getInstanceTemplates(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ByteString
getInstanceTemplatesBytes(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.int
getInstanceTemplatesCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.com.google.protobuf.ProtocolStringList
getInstanceTemplatesList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated.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.LocationPolicyOrBuilder
getLocationOrBuilder()
Location where compute resources should be allocated for the Job.AllocationPolicy.NetworkPolicy
getNetwork()
The network policy.AllocationPolicy.NetworkPolicyOrBuilder
getNetworkOrBuilder()
The network policy.com.google.protobuf.Parser<AllocationPolicy>
getParserForType()
AllocationPolicy.PlacementPolicy
getPlacement()
The placement policy.AllocationPolicy.PlacementPolicyOrBuilder
getPlacementOrBuilder()
The placement policy.AllocationPolicy.ProvisioningModel
getProvisioningModels(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.int
getProvisioningModelsCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.List<AllocationPolicy.ProvisioningModel>
getProvisioningModelsList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.int
getProvisioningModelsValue(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.int
getSerializedSize()
ServiceAccount
getServiceAccount()
Service account that VMs will run as.String
getServiceAccountEmail()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.com.google.protobuf.ByteString
getServiceAccountEmailBytes()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.ServiceAccountOrBuilder
getServiceAccountOrBuilder()
Service account that VMs will run as.int
hashCode()
boolean
hasInstance()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated.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)
boolean
isInitialized()
static AllocationPolicy.Builder
newBuilder()
static AllocationPolicy.Builder
newBuilder(AllocationPolicy prototype)
AllocationPolicy.Builder
newBuilderForType()
protected AllocationPolicy.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AllocationPolicy
parseDelimitedFrom(InputStream input)
static AllocationPolicy
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AllocationPolicy
parseFrom(byte[] data)
static AllocationPolicy
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AllocationPolicy
parseFrom(com.google.protobuf.ByteString data)
static AllocationPolicy
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AllocationPolicy
parseFrom(com.google.protobuf.CodedInputStream input)
static AllocationPolicy
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AllocationPolicy
parseFrom(InputStream input)
static AllocationPolicy
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AllocationPolicy
parseFrom(ByteBuffer data)
static AllocationPolicy
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AllocationPolicy>
parser()
AllocationPolicy.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
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.v1alpha.AllocationPolicy.LocationPolicy location = 1;
- Specified by:
getLocation
in 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:
getLocationOrBuilder
in 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:
hasInstance
in 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:
getInstance
in 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:
getInstanceOrBuilder
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.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
- Specified by:
getInstancesList
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.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
- Specified by:
getInstancesOrBuilderList
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.v1alpha.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.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
- Specified by:
getInstances
in 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:
getInstancesOrBuilder
in 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:
getInstanceTemplatesList
in 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:
getInstanceTemplatesCount
in 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:
getInstanceTemplates
in 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:
getInstanceTemplatesBytes
in 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:
getProvisioningModelsList
in 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:
getProvisioningModelsCount
in 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:
getProvisioningModels
in 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:
getProvisioningModelsValueList
in 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:
getProvisioningModelsValue
in 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:
getServiceAccountEmail
in 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:
getServiceAccountEmailBytes
in 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:
hasServiceAccount
in 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:
getServiceAccount
in 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:
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
-
hasNetwork
public boolean hasNetwork()
The network policy.
.google.cloud.batch.v1alpha.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.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
- Specified by:
getNetwork
in interfaceAllocationPolicyOrBuilder
- Returns:
- The network.
-
getNetworkOrBuilder
public AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder()
The network policy.
.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
- Specified by:
getNetworkOrBuilder
in interfaceAllocationPolicyOrBuilder
-
hasPlacement
public boolean hasPlacement()
The placement policy.
.google.cloud.batch.v1alpha.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.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
- Specified by:
getPlacement
in interfaceAllocationPolicyOrBuilder
- Returns:
- The placement.
-
getPlacementOrBuilder
public AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder()
The placement policy.
.google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
- Specified by:
getPlacementOrBuilder
in interfaceAllocationPolicyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AllocationPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AllocationPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-