Class AllocationPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
com.google.cloud.batch.v1alpha.AllocationPolicy.Builder
All Implemented Interfaces:
AllocationPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AllocationPolicy

public static final class AllocationPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder> implements AllocationPolicyOrBuilder
 A Job's resource allocation policy describes when, where, and how compute
 resources should be allocated for the Job.
 
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
    • clear

      public AllocationPolicy.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
    • getDefaultInstanceForType

      public AllocationPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AllocationPolicy build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AllocationPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AllocationPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Builder>
    • mergeFrom

      public AllocationPolicy.Builder mergeFrom(AllocationPolicy other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Builder>
    • mergeFrom

      public AllocationPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Builder>
      Throws:
      IOException
    • hasLocation

      public boolean hasLocation()
       Location where compute resources should be allocated for the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
      Specified by:
      hasLocation in interface AllocationPolicyOrBuilder
      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 interface AllocationPolicyOrBuilder
      Returns:
      The location.
    • setLocation

       Location where compute resources should be allocated for the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
    • setLocation

       Location where compute resources should be allocated for the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
    • mergeLocation

       Location where compute resources should be allocated for the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
    • clearLocation

      public AllocationPolicy.Builder clearLocation()
       Location where compute resources should be allocated for the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
    • getLocationBuilder

      public AllocationPolicy.LocationPolicy.Builder getLocationBuilder()
       Location where compute resources should be allocated for the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
    • 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 interface AllocationPolicyOrBuilder
    • hasInstance

      @Deprecated public boolean hasInstance()
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=642
       Deprecated: please use instances[0].policy instead.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
      Specified by:
      hasInstance in interface AllocationPolicyOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=642
       Deprecated: please use instances[0].policy instead.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
      Specified by:
      getInstance in interface AllocationPolicyOrBuilder
      Returns:
      The instance.
    • setInstance

      Deprecated.
       Deprecated: please use instances[0].policy instead.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
    • setInstance

      Deprecated.
       Deprecated: please use instances[0].policy instead.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
    • mergeInstance

      Deprecated.
       Deprecated: please use instances[0].policy instead.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
    • clearInstance

      @Deprecated public AllocationPolicy.Builder clearInstance()
      Deprecated.
       Deprecated: please use instances[0].policy instead.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
    • getInstanceBuilder

      Deprecated.
       Deprecated: please use instances[0].policy instead.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
    • getInstanceOrBuilder

      Deprecated.
       Deprecated: please use instances[0].policy instead.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
      Specified by:
      getInstanceOrBuilder in interface AllocationPolicyOrBuilder
    • 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 interface AllocationPolicyOrBuilder
    • 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 interface AllocationPolicyOrBuilder
    • 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 interface AllocationPolicyOrBuilder
    • setInstances

       Describe instances that can be created by this AllocationPolicy.
       Only instances[0] is supported now.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • setInstances

      public AllocationPolicy.Builder setInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
       Describe instances that can be created by this AllocationPolicy.
       Only instances[0] is supported now.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • addInstances

       Describe instances that can be created by this AllocationPolicy.
       Only instances[0] is supported now.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • addInstances

       Describe instances that can be created by this AllocationPolicy.
       Only instances[0] is supported now.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • addInstances

       Describe instances that can be created by this AllocationPolicy.
       Only instances[0] is supported now.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • addInstances

      public AllocationPolicy.Builder addInstances(int index, AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue)
       Describe instances that can be created by this AllocationPolicy.
       Only instances[0] is supported now.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • addAllInstances

       Describe instances that can be created by this AllocationPolicy.
       Only instances[0] is supported now.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • clearInstances

      public AllocationPolicy.Builder clearInstances()
       Describe instances that can be created by this AllocationPolicy.
       Only instances[0] is supported now.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • removeInstances

      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.v1alpha.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.v1alpha.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.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
      Specified by:
      getInstancesOrBuilder in interface AllocationPolicyOrBuilder
    • 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 interface AllocationPolicyOrBuilder
    • addInstancesBuilder

       Describe instances that can be created by this AllocationPolicy.
       Only instances[0] is supported now.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • addInstancesBuilder

      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.v1alpha.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.v1alpha.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
    • 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=649
       Deprecated: please use instances[0].template instead.
       
      repeated string instance_templates = 3 [deprecated = true];
      Specified by:
      getInstanceTemplatesList in interface AllocationPolicyOrBuilder
      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=649
       Deprecated: please use instances[0].template instead.
       
      repeated string instance_templates = 3 [deprecated = true];
      Specified by:
      getInstanceTemplatesCount in interface AllocationPolicyOrBuilder
      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=649
       Deprecated: please use instances[0].template instead.
       
      repeated string instance_templates = 3 [deprecated = true];
      Specified by:
      getInstanceTemplates in interface AllocationPolicyOrBuilder
      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=649
       Deprecated: please use instances[0].template instead.
       
      repeated string instance_templates = 3 [deprecated = true];
      Specified by:
      getInstanceTemplatesBytes in interface AllocationPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the instanceTemplates at the given index.
    • setInstanceTemplates

      @Deprecated public AllocationPolicy.Builder setInstanceTemplates(int index, String value)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649
       Deprecated: please use instances[0].template instead.
       
      repeated string instance_templates = 3 [deprecated = true];
      Parameters:
      index - The index to set the value at.
      value - The instanceTemplates to set.
      Returns:
      This builder for chaining.
    • addInstanceTemplates

      @Deprecated public AllocationPolicy.Builder addInstanceTemplates(String value)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649
       Deprecated: please use instances[0].template instead.
       
      repeated string instance_templates = 3 [deprecated = true];
      Parameters:
      value - The instanceTemplates to add.
      Returns:
      This builder for chaining.
    • addAllInstanceTemplates

      @Deprecated public AllocationPolicy.Builder addAllInstanceTemplates(Iterable<String> values)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649
       Deprecated: please use instances[0].template instead.
       
      repeated string instance_templates = 3 [deprecated = true];
      Parameters:
      values - The instanceTemplates to add.
      Returns:
      This builder for chaining.
    • clearInstanceTemplates

      @Deprecated public AllocationPolicy.Builder clearInstanceTemplates()
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649
       Deprecated: please use instances[0].template instead.
       
      repeated string instance_templates = 3 [deprecated = true];
      Returns:
      This builder for chaining.
    • addInstanceTemplatesBytes

      @Deprecated public AllocationPolicy.Builder addInstanceTemplatesBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=649
       Deprecated: please use instances[0].template instead.
       
      repeated string instance_templates = 3 [deprecated = true];
      Parameters:
      value - The bytes of the instanceTemplates to add.
      Returns:
      This builder for chaining.
    • getProvisioningModelsList

      @Deprecated public List<AllocationPolicy.ProvisioningModel> getProvisioningModelsList()
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Specified by:
      getProvisioningModelsList in interface AllocationPolicyOrBuilder
      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=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Specified by:
      getProvisioningModelsCount in interface AllocationPolicyOrBuilder
      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=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Specified by:
      getProvisioningModels in interface AllocationPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The provisioningModels at the given index.
    • setProvisioningModels

      @Deprecated public AllocationPolicy.Builder setProvisioningModels(int index, AllocationPolicy.ProvisioningModel value)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Parameters:
      index - The index to set the value at.
      value - The provisioningModels to set.
      Returns:
      This builder for chaining.
    • addProvisioningModels

      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Parameters:
      value - The provisioningModels to add.
      Returns:
      This builder for chaining.
    • addAllProvisioningModels

      @Deprecated public AllocationPolicy.Builder addAllProvisioningModels(Iterable<? extends AllocationPolicy.ProvisioningModel> values)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Parameters:
      values - The provisioningModels to add.
      Returns:
      This builder for chaining.
    • clearProvisioningModels

      @Deprecated public AllocationPolicy.Builder clearProvisioningModels()
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Returns:
      This builder for chaining.
    • getProvisioningModelsValueList

      @Deprecated public List<Integer> getProvisioningModelsValueList()
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Specified by:
      getProvisioningModelsValueList in interface AllocationPolicyOrBuilder
      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=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Specified by:
      getProvisioningModelsValue in interface AllocationPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of provisioningModels at the given index.
    • setProvisioningModelsValue

      @Deprecated public AllocationPolicy.Builder setProvisioningModelsValue(int index, int value)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for provisioningModels to set.
      Returns:
      This builder for chaining.
    • addProvisioningModelsValue

      @Deprecated public AllocationPolicy.Builder addProvisioningModelsValue(int value)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Parameters:
      value - The enum numeric value on the wire for provisioningModels to add.
      Returns:
      This builder for chaining.
    • addAllProvisioningModelsValue

      @Deprecated public AllocationPolicy.Builder addAllProvisioningModelsValue(Iterable<Integer> values)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=652
       Deprecated: please use instances[0].policy.provisioning_model instead.
       
      repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
      Parameters:
      values - The enum numeric values on the wire for provisioningModels to add.
      Returns:
      This builder for chaining.
    • getServiceAccountEmail

      @Deprecated public String getServiceAccountEmail()
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655
       Deprecated: please use service_account instead.
       
      string service_account_email = 5 [deprecated = true];
      Specified by:
      getServiceAccountEmail in interface AllocationPolicyOrBuilder
      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=655
       Deprecated: please use service_account instead.
       
      string service_account_email = 5 [deprecated = true];
      Specified by:
      getServiceAccountEmailBytes in interface AllocationPolicyOrBuilder
      Returns:
      The bytes for serviceAccountEmail.
    • setServiceAccountEmail

      @Deprecated public AllocationPolicy.Builder setServiceAccountEmail(String value)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655
       Deprecated: please use service_account instead.
       
      string service_account_email = 5 [deprecated = true];
      Parameters:
      value - The serviceAccountEmail to set.
      Returns:
      This builder for chaining.
    • clearServiceAccountEmail

      @Deprecated public AllocationPolicy.Builder clearServiceAccountEmail()
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655
       Deprecated: please use service_account instead.
       
      string service_account_email = 5 [deprecated = true];
      Returns:
      This builder for chaining.
    • setServiceAccountEmailBytes

      @Deprecated public AllocationPolicy.Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=655
       Deprecated: please use service_account instead.
       
      string service_account_email = 5 [deprecated = true];
      Parameters:
      value - The bytes for serviceAccountEmail to set.
      Returns:
      This builder for chaining.
    • hasServiceAccount

      public boolean hasServiceAccount()
       Defines the service account for Batch-created VMs. If omitted, the [default
       Compute Engine service
       account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
       is used. Must match the service account specified in any used instance
       template configured in the Batch job.
      
       Includes the following fields:
       * email: The service account's email address. If not set, the default
       Compute Engine service account is used.
       * scopes: Additional OAuth scopes to grant the service account, beyond the
       default cloud-platform scope. (list of strings)
       
      .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
      Specified by:
      hasServiceAccount in interface AllocationPolicyOrBuilder
      Returns:
      Whether the serviceAccount field is set.
    • getServiceAccount

      public ServiceAccount getServiceAccount()
       Defines the service account for Batch-created VMs. If omitted, the [default
       Compute Engine service
       account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
       is used. Must match the service account specified in any used instance
       template configured in the Batch job.
      
       Includes the following fields:
       * email: The service account's email address. If not set, the default
       Compute Engine service account is used.
       * scopes: Additional OAuth scopes to grant the service account, beyond the
       default cloud-platform scope. (list of strings)
       
      .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
      Specified by:
      getServiceAccount in interface AllocationPolicyOrBuilder
      Returns:
      The serviceAccount.
    • setServiceAccount

      public AllocationPolicy.Builder setServiceAccount(ServiceAccount value)
       Defines the service account for Batch-created VMs. If omitted, the [default
       Compute Engine service
       account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
       is used. Must match the service account specified in any used instance
       template configured in the Batch job.
      
       Includes the following fields:
       * email: The service account's email address. If not set, the default
       Compute Engine service account is used.
       * scopes: Additional OAuth scopes to grant the service account, beyond the
       default cloud-platform scope. (list of strings)
       
      .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
    • setServiceAccount

      public AllocationPolicy.Builder setServiceAccount(ServiceAccount.Builder builderForValue)
       Defines the service account for Batch-created VMs. If omitted, the [default
       Compute Engine service
       account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
       is used. Must match the service account specified in any used instance
       template configured in the Batch job.
      
       Includes the following fields:
       * email: The service account's email address. If not set, the default
       Compute Engine service account is used.
       * scopes: Additional OAuth scopes to grant the service account, beyond the
       default cloud-platform scope. (list of strings)
       
      .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
    • mergeServiceAccount

      public AllocationPolicy.Builder mergeServiceAccount(ServiceAccount value)
       Defines the service account for Batch-created VMs. If omitted, the [default
       Compute Engine service
       account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
       is used. Must match the service account specified in any used instance
       template configured in the Batch job.
      
       Includes the following fields:
       * email: The service account's email address. If not set, the default
       Compute Engine service account is used.
       * scopes: Additional OAuth scopes to grant the service account, beyond the
       default cloud-platform scope. (list of strings)
       
      .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
    • clearServiceAccount

      public AllocationPolicy.Builder clearServiceAccount()
       Defines the service account for Batch-created VMs. If omitted, the [default
       Compute Engine service
       account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
       is used. Must match the service account specified in any used instance
       template configured in the Batch job.
      
       Includes the following fields:
       * email: The service account's email address. If not set, the default
       Compute Engine service account is used.
       * scopes: Additional OAuth scopes to grant the service account, beyond the
       default cloud-platform scope. (list of strings)
       
      .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
    • getServiceAccountBuilder

      public ServiceAccount.Builder getServiceAccountBuilder()
       Defines the service account for Batch-created VMs. If omitted, the [default
       Compute Engine service
       account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
       is used. Must match the service account specified in any used instance
       template configured in the Batch job.
      
       Includes the following fields:
       * email: The service account's email address. If not set, the default
       Compute Engine service account is used.
       * scopes: Additional OAuth scopes to grant the service account, beyond the
       default cloud-platform scope. (list of strings)
       
      .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
    • getServiceAccountOrBuilder

      public ServiceAccountOrBuilder getServiceAccountOrBuilder()
       Defines the service account for Batch-created VMs. If omitted, the [default
       Compute Engine service
       account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
       is used. Must match the service account specified in any used instance
       template configured in the Batch job.
      
       Includes the following fields:
       * email: The service account's email address. If not set, the default
       Compute Engine service account is used.
       * scopes: Additional OAuth scopes to grant the service account, beyond the
       default cloud-platform scope. (list of strings)
       
      .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
      Specified by:
      getServiceAccountOrBuilder in interface AllocationPolicyOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: AllocationPolicyOrBuilder
       Custom labels to apply to the job and all the Compute Engine resources
       that both are created by this allocation policy and support labels.
      
       Use labels to group and describe the resources they are applied to. Batch
       automatically applies predefined labels and supports multiple `labels`
       fields for each job, which each let you apply custom labels to various
       resources. Label names that start with "goog-" or "google-" are
       reserved for predefined labels. For more information about labels with
       Batch, see
       [Organize resources using
       labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
       
      map<string, string> labels = 6;
      Specified by:
      getLabelsCount in interface AllocationPolicyOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Custom labels to apply to the job and all the Compute Engine resources
       that both are created by this allocation policy and support labels.
      
       Use labels to group and describe the resources they are applied to. Batch
       automatically applies predefined labels and supports multiple `labels`
       fields for each job, which each let you apply custom labels to various
       resources. Label names that start with "goog-" or "google-" are
       reserved for predefined labels. For more information about labels with
       Batch, see
       [Organize resources using
       labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
       
      map<string, string> labels = 6;
      Specified by:
      containsLabels in interface AllocationPolicyOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface AllocationPolicyOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Custom labels to apply to the job and all the Compute Engine resources
       that both are created by this allocation policy and support labels.
      
       Use labels to group and describe the resources they are applied to. Batch
       automatically applies predefined labels and supports multiple `labels`
       fields for each job, which each let you apply custom labels to various
       resources. Label names that start with "goog-" or "google-" are
       reserved for predefined labels. For more information about labels with
       Batch, see
       [Organize resources using
       labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
       
      map<string, string> labels = 6;
      Specified by:
      getLabelsMap in interface AllocationPolicyOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Custom labels to apply to the job and all the Compute Engine resources
       that both are created by this allocation policy and support labels.
      
       Use labels to group and describe the resources they are applied to. Batch
       automatically applies predefined labels and supports multiple `labels`
       fields for each job, which each let you apply custom labels to various
       resources. Label names that start with "goog-" or "google-" are
       reserved for predefined labels. For more information about labels with
       Batch, see
       [Organize resources using
       labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
       
      map<string, string> labels = 6;
      Specified by:
      getLabelsOrDefault in interface AllocationPolicyOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Custom labels to apply to the job and all the Compute Engine resources
       that both are created by this allocation policy and support labels.
      
       Use labels to group and describe the resources they are applied to. Batch
       automatically applies predefined labels and supports multiple `labels`
       fields for each job, which each let you apply custom labels to various
       resources. Label names that start with "goog-" or "google-" are
       reserved for predefined labels. For more information about labels with
       Batch, see
       [Organize resources using
       labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
       
      map<string, string> labels = 6;
      Specified by:
      getLabelsOrThrow in interface AllocationPolicyOrBuilder
    • clearLabels

      public AllocationPolicy.Builder clearLabels()
    • removeLabels

      public AllocationPolicy.Builder removeLabels(String key)
       Custom labels to apply to the job and all the Compute Engine resources
       that both are created by this allocation policy and support labels.
      
       Use labels to group and describe the resources they are applied to. Batch
       automatically applies predefined labels and supports multiple `labels`
       fields for each job, which each let you apply custom labels to various
       resources. Label names that start with "goog-" or "google-" are
       reserved for predefined labels. For more information about labels with
       Batch, see
       [Organize resources using
       labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
       
      map<string, string> labels = 6;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public AllocationPolicy.Builder putLabels(String key, String value)
       Custom labels to apply to the job and all the Compute Engine resources
       that both are created by this allocation policy and support labels.
      
       Use labels to group and describe the resources they are applied to. Batch
       automatically applies predefined labels and supports multiple `labels`
       fields for each job, which each let you apply custom labels to various
       resources. Label names that start with "goog-" or "google-" are
       reserved for predefined labels. For more information about labels with
       Batch, see
       [Organize resources using
       labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
       
      map<string, string> labels = 6;
    • putAllLabels

      public AllocationPolicy.Builder putAllLabels(Map<String,String> values)
       Custom labels to apply to the job and all the Compute Engine resources
       that both are created by this allocation policy and support labels.
      
       Use labels to group and describe the resources they are applied to. Batch
       automatically applies predefined labels and supports multiple `labels`
       fields for each job, which each let you apply custom labels to various
       resources. Label names that start with "goog-" or "google-" are
       reserved for predefined labels. For more information about labels with
       Batch, see
       [Organize resources using
       labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
       
      map<string, string> labels = 6;
    • hasNetwork

      public boolean hasNetwork()
       The network policy.
      
       If you define an instance template in the `InstancePolicyOrTemplate` field,
       Batch will use the network settings in the instance template instead of
       this field.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
      Specified by:
      hasNetwork in interface AllocationPolicyOrBuilder
      Returns:
      Whether the network field is set.
    • getNetwork

      public AllocationPolicy.NetworkPolicy getNetwork()
       The network policy.
      
       If you define an instance template in the `InstancePolicyOrTemplate` field,
       Batch will use the network settings in the instance template instead of
       this field.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
      Specified by:
      getNetwork in interface AllocationPolicyOrBuilder
      Returns:
      The network.
    • setNetwork

       The network policy.
      
       If you define an instance template in the `InstancePolicyOrTemplate` field,
       Batch will use the network settings in the instance template instead of
       this field.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
    • setNetwork

       The network policy.
      
       If you define an instance template in the `InstancePolicyOrTemplate` field,
       Batch will use the network settings in the instance template instead of
       this field.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
    • mergeNetwork

       The network policy.
      
       If you define an instance template in the `InstancePolicyOrTemplate` field,
       Batch will use the network settings in the instance template instead of
       this field.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
    • clearNetwork

      public AllocationPolicy.Builder clearNetwork()
       The network policy.
      
       If you define an instance template in the `InstancePolicyOrTemplate` field,
       Batch will use the network settings in the instance template instead of
       this field.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
    • getNetworkBuilder

      public AllocationPolicy.NetworkPolicy.Builder getNetworkBuilder()
       The network policy.
      
       If you define an instance template in the `InstancePolicyOrTemplate` field,
       Batch will use the network settings in the instance template instead of
       this field.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
    • getNetworkOrBuilder

      public AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder()
       The network policy.
      
       If you define an instance template in the `InstancePolicyOrTemplate` field,
       Batch will use the network settings in the instance template instead of
       this field.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
      Specified by:
      getNetworkOrBuilder in interface AllocationPolicyOrBuilder
    • hasPlacement

      public boolean hasPlacement()
       The placement policy.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
      Specified by:
      hasPlacement in interface AllocationPolicyOrBuilder
      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 interface AllocationPolicyOrBuilder
      Returns:
      The placement.
    • setPlacement

       The placement policy.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
    • setPlacement

       The placement policy.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
    • mergePlacement

       The placement policy.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
    • clearPlacement

      public AllocationPolicy.Builder clearPlacement()
       The placement policy.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
    • getPlacementBuilder

      public AllocationPolicy.PlacementPolicy.Builder getPlacementBuilder()
       The placement policy.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
    • getPlacementOrBuilder

      public AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder()
       The placement policy.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
      Specified by:
      getPlacementOrBuilder in interface AllocationPolicyOrBuilder
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       Optional. Tags applied to the VM instances.
      
       The tags identify valid sources or targets for network firewalls.
       Each tag must be 1-63 characters long, and comply with
       [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
       
      repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsList in interface AllocationPolicyOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       Optional. Tags applied to the VM instances.
      
       The tags identify valid sources or targets for network firewalls.
       Each tag must be 1-63 characters long, and comply with
       [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
       
      repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsCount in interface AllocationPolicyOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       Optional. Tags applied to the VM instances.
      
       The tags identify valid sources or targets for network firewalls.
       Each tag must be 1-63 characters long, and comply with
       [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
       
      repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTags in interface AllocationPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
       Optional. Tags applied to the VM instances.
      
       The tags identify valid sources or targets for network firewalls.
       Each tag must be 1-63 characters long, and comply with
       [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
       
      repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsBytes in interface AllocationPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public AllocationPolicy.Builder setTags(int index, String value)
       Optional. Tags applied to the VM instances.
      
       The tags identify valid sources or targets for network firewalls.
       Each tag must be 1-63 characters long, and comply with
       [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
       
      repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public AllocationPolicy.Builder addTags(String value)
       Optional. Tags applied to the VM instances.
      
       The tags identify valid sources or targets for network firewalls.
       Each tag must be 1-63 characters long, and comply with
       [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
       
      repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public AllocationPolicy.Builder addAllTags(Iterable<String> values)
       Optional. Tags applied to the VM instances.
      
       The tags identify valid sources or targets for network firewalls.
       Each tag must be 1-63 characters long, and comply with
       [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
       
      repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public AllocationPolicy.Builder clearTags()
       Optional. Tags applied to the VM instances.
      
       The tags identify valid sources or targets for network firewalls.
       Each tag must be 1-63 characters long, and comply with
       [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
       
      repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addTagsBytes

      public AllocationPolicy.Builder addTagsBytes(com.google.protobuf.ByteString value)
       Optional. Tags applied to the VM instances.
      
       The tags identify valid sources or targets for network firewalls.
       Each tag must be 1-63 characters long, and comply with
       [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
       
      repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.