Interface AllocationPolicyOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    AllocationPolicy, AllocationPolicy.Builder

    public interface AllocationPolicyOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasLocation

        boolean hasLocation()
         Location where compute resources should be allocated for the Job.
         
        .google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
        Returns:
        Whether the location field is set.
      • getLocation

        AllocationPolicy.LocationPolicy getLocation()
         Location where compute resources should be allocated for the Job.
         
        .google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
        Returns:
        The location.
      • getLocationOrBuilder

        AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder()
         Location where compute resources should be allocated for the Job.
         
        .google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy location = 1;
      • hasInstance

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

        @Deprecated
        AllocationPolicy.InstancePolicy getInstance()
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See google/cloud/batch/v1alpha/job.proto;l=557
         Deprecated: please use instances[0].policy instead.
         
        .google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy instance = 2 [deprecated = true];
        Returns:
        The instance.
      • getInstanceOrBuilder

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

        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;
      • getInstances

        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;
      • getInstancesCount

        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;
      • getInstancesOrBuilderList

        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;
      • getInstancesOrBuilder

        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;
      • getInstanceTemplatesList

        @Deprecated
        List<String> getInstanceTemplatesList()
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564
         Deprecated: please use instances[0].template instead.
         
        repeated string instance_templates = 3 [deprecated = true];
        Returns:
        A list containing the instanceTemplates.
      • getInstanceTemplatesCount

        @Deprecated
        int getInstanceTemplatesCount()
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564
         Deprecated: please use instances[0].template instead.
         
        repeated string instance_templates = 3 [deprecated = true];
        Returns:
        The count of instanceTemplates.
      • getInstanceTemplates

        @Deprecated
        String getInstanceTemplates​(int index)
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See google/cloud/batch/v1alpha/job.proto;l=564
         Deprecated: please use instances[0].template instead.
         
        repeated string instance_templates = 3 [deprecated = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The instanceTemplates at the given index.
      • getInstanceTemplatesBytes

        @Deprecated
        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=564
         Deprecated: please use instances[0].template instead.
         
        repeated string instance_templates = 3 [deprecated = true];
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the instanceTemplates at the given index.
      • getProvisioningModelsList

        @Deprecated
        List<AllocationPolicy.ProvisioningModel> getProvisioningModelsList()
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567
         Deprecated: please use instances[0].policy.provisioning_model instead.
         
        repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
        Returns:
        A list containing the provisioningModels.
      • getProvisioningModelsCount

        @Deprecated
        int getProvisioningModelsCount()
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567
         Deprecated: please use instances[0].policy.provisioning_model instead.
         
        repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
        Returns:
        The count of provisioningModels.
      • getProvisioningModels

        @Deprecated
        AllocationPolicy.ProvisioningModel getProvisioningModels​(int index)
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567
         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 of the element to return.
        Returns:
        The provisioningModels at the given index.
      • getProvisioningModelsValueList

        @Deprecated
        List<Integer> getProvisioningModelsValueList()
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567
         Deprecated: please use instances[0].policy.provisioning_model instead.
         
        repeated .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_models = 4 [deprecated = true];
        Returns:
        A list containing the enum numeric values on the wire for provisioningModels.
      • getProvisioningModelsValue

        @Deprecated
        int getProvisioningModelsValue​(int index)
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See google/cloud/batch/v1alpha/job.proto;l=567
         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 of the value to return.
        Returns:
        The enum numeric value on the wire of provisioningModels at the given index.
      • getServiceAccountEmail

        @Deprecated
        String getServiceAccountEmail()
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=570
         Deprecated: please use service_account instead.
         
        string service_account_email = 5 [deprecated = true];
        Returns:
        The serviceAccountEmail.
      • getServiceAccountEmailBytes

        @Deprecated
        com.google.protobuf.ByteString getServiceAccountEmailBytes()
        Deprecated.
        google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. See google/cloud/batch/v1alpha/job.proto;l=570
         Deprecated: please use service_account instead.
         
        string service_account_email = 5 [deprecated = true];
        Returns:
        The bytes for serviceAccountEmail.
      • hasServiceAccount

        boolean hasServiceAccount()
         Service account that VMs will run as.
         
        .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
        Returns:
        Whether the serviceAccount field is set.
      • getServiceAccount

        ServiceAccount getServiceAccount()
         Service account that VMs will run as.
         
        .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
        Returns:
        The serviceAccount.
      • getServiceAccountOrBuilder

        ServiceAccountOrBuilder getServiceAccountOrBuilder()
         Service account that VMs will run as.
         
        .google.cloud.batch.v1alpha.ServiceAccount service_account = 9;
      • getLabelsCount

        int getLabelsCount()
         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;
      • containsLabels

        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;
      • getLabelsMap

        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;
      • getLabelsOrDefault

        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;
      • getLabelsOrThrow

        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;
      • hasNetwork

        boolean hasNetwork()
         The network policy.
         
        .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
        Returns:
        Whether the network field is set.
      • getNetwork

        AllocationPolicy.NetworkPolicy getNetwork()
         The network policy.
         
        .google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy network = 7;
        Returns:
        The network.
      • hasPlacement

        boolean hasPlacement()
         The placement policy.
         
        .google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
        Returns:
        Whether the placement field is set.
      • getPlacement

        AllocationPolicy.PlacementPolicy getPlacement()
         The placement policy.
         
        .google.cloud.batch.v1alpha.AllocationPolicy.PlacementPolicy placement = 10;
        Returns:
        The placement.