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.v1.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.v1.AllocationPolicy.LocationPolicy location = 1;
        Returns:
        The location.
      • getLocationOrBuilder

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

        List<AllocationPolicy.InstancePolicyOrTemplate> getInstancesList()
         Describe instances that can be created by this AllocationPolicy.
         Only instances[0] is supported now.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
      • 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.v1.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.v1.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.v1.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.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8;
      • hasServiceAccount

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

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

        ServiceAccountOrBuilder getServiceAccountOrBuilder()
         Service account that VMs will run as.
         
        .google.cloud.batch.v1.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.v1.AllocationPolicy.NetworkPolicy network = 7;
        Returns:
        Whether the network field is set.
      • getNetwork

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

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

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