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

namespace Google\Cloud\Compute\V1;

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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InstanceGroupManagerResourcePolicies</code>
 */
class InstanceGroupManagerResourcePolicies extends \Google\Protobuf\Internal\Message
{
    /**
     * The URL of the workload policy that is specified for this managed instance group. It can be a full or partial URL. For example, the following are all valid URLs to a workload policy: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy 
     *
     * Generated from protobuf field <code>optional string workload_policy = 114721530;</code>
     */
    private $workload_policy = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $workload_policy
     *           The URL of the workload policy that is specified for this managed instance group. It can be a full or partial URL. For example, the following are all valid URLs to a workload policy: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy 
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The URL of the workload policy that is specified for this managed instance group. It can be a full or partial URL. For example, the following are all valid URLs to a workload policy: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy 
     *
     * Generated from protobuf field <code>optional string workload_policy = 114721530;</code>
     * @return string
     */
    public function getWorkloadPolicy()
    {
        return isset($this->workload_policy) ? $this->workload_policy : '';
    }

    public function hasWorkloadPolicy()
    {
        return isset($this->workload_policy);
    }

    public function clearWorkloadPolicy()
    {
        unset($this->workload_policy);
    }

    /**
     * The URL of the workload policy that is specified for this managed instance group. It can be a full or partial URL. For example, the following are all valid URLs to a workload policy: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy 
     *
     * Generated from protobuf field <code>optional string workload_policy = 114721530;</code>
     * @param string $var
     * @return $this
     */
    public function setWorkloadPolicy($var)
    {
        GPBUtil::checkString($var, True);
        $this->workload_policy = $var;

        return $this;
    }

}

