Interface AutoscalingPolicyOrBuilder

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

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

      • getId

        String getId()
         Required. The policy id.
        
         The id must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). Cannot begin or end with underscore
         or hyphen. Must consist of between 3 and 50 characters.
         
        string id = 1;
        Returns:
        The id.
      • getIdBytes

        com.google.protobuf.ByteString getIdBytes()
         Required. The policy id.
        
         The id must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). Cannot begin or end with underscore
         or hyphen. Must consist of between 3 and 50 characters.
         
        string id = 1;
        Returns:
        The bytes for id.
      • getName

        String getName()
         Output only. The "resource name" of the autoscaling policy, as described
         in https://cloud.google.com/apis/design/resource_names.
        
         * For `projects.regions.autoscalingPolicies`, the resource name of the
           policy has the following format:
           `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
        
         * For `projects.locations.autoscalingPolicies`, the resource name of the
           policy has the following format:
           `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
         
        string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Output only. The "resource name" of the autoscaling policy, as described
         in https://cloud.google.com/apis/design/resource_names.
        
         * For `projects.regions.autoscalingPolicies`, the resource name of the
           policy has the following format:
           `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
        
         * For `projects.locations.autoscalingPolicies`, the resource name of the
           policy has the following format:
           `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
         
        string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        The bytes for name.
      • hasBasicAlgorithm

        boolean hasBasicAlgorithm()
        .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        Whether the basicAlgorithm field is set.
      • getBasicAlgorithm

        BasicAutoscalingAlgorithm getBasicAlgorithm()
        .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The basicAlgorithm.
      • getBasicAlgorithmOrBuilder

        BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder()
        .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
      • hasWorkerConfig

        boolean hasWorkerConfig()
         Required. Describes how the autoscaler will operate for primary workers.
         
        .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        Whether the workerConfig field is set.
      • getWorkerConfig

        InstanceGroupAutoscalingPolicyConfig getWorkerConfig()
         Required. Describes how the autoscaler will operate for primary workers.
         
        .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The workerConfig.
      • getWorkerConfigOrBuilder

        InstanceGroupAutoscalingPolicyConfigOrBuilder getWorkerConfigOrBuilder()
         Required. Describes how the autoscaler will operate for primary workers.
         
        .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED];
      • hasSecondaryWorkerConfig

        boolean hasSecondaryWorkerConfig()
         Optional. Describes how the autoscaler will operate for secondary workers.
         
        .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        Whether the secondaryWorkerConfig field is set.
      • getSecondaryWorkerConfig

        InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig()
         Optional. Describes how the autoscaler will operate for secondary workers.
         
        .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The secondaryWorkerConfig.
      • getSecondaryWorkerConfigOrBuilder

        InstanceGroupAutoscalingPolicyConfigOrBuilder getSecondaryWorkerConfigOrBuilder()
         Optional. Describes how the autoscaler will operate for secondary workers.
         
        .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsCount

        int getLabelsCount()
         Optional. The labels to associate with this autoscaling policy.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with an autoscaling policy.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • containsLabels

        boolean containsLabels​(String key)
         Optional. The labels to associate with this autoscaling policy.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with an autoscaling policy.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsMap

        Map<String,​String> getLabelsMap()
         Optional. The labels to associate with this autoscaling policy.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with an autoscaling policy.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsOrDefault

        String getLabelsOrDefault​(String key,
                                  String defaultValue)
         Optional. The labels to associate with this autoscaling policy.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with an autoscaling policy.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsOrThrow

        String getLabelsOrThrow​(String key)
         Optional. The labels to associate with this autoscaling policy.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with an autoscaling policy.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];