<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dataproc/v1beta2/clusters.proto

namespace Google\Cloud\Dataproc\V1beta2;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Autoscaling Policy config associated with the cluster.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1beta2.AutoscalingConfig</code>
 */
class AutoscalingConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The autoscaling policy used by the cluster.
     * Only resource names including projectid and location (region) are valid.
     * Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * Note that the policy must be in the same project and Dataproc region.
     *
     * Generated from protobuf field <code>string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $policy_uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $policy_uri
     *           Optional. The autoscaling policy used by the cluster.
     *           Only resource names including projectid and location (region) are valid.
     *           Examples:
     *           * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     *           * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     *           Note that the policy must be in the same project and Dataproc region.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataproc\V1Beta2\Clusters::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The autoscaling policy used by the cluster.
     * Only resource names including projectid and location (region) are valid.
     * Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * Note that the policy must be in the same project and Dataproc region.
     *
     * Generated from protobuf field <code>string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPolicyUri()
    {
        return $this->policy_uri;
    }

    /**
     * Optional. The autoscaling policy used by the cluster.
     * Only resource names including projectid and location (region) are valid.
     * Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * Note that the policy must be in the same project and Dataproc region.
     *
     * Generated from protobuf field <code>string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPolicyUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->policy_uri = $var;

        return $this;
    }

}

