<?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;

/**
 * A request message for OrganizationSecurityPolicies.ListAssociations. See the method description for details.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.ListAssociationsOrganizationSecurityPolicyRequest</code>
 */
class ListAssociationsOrganizationSecurityPolicyRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The target resource to list associations. It is an organization, or a
     * folder.
     *
     * Generated from protobuf field <code>optional string target_resource = 467318524;</code>
     */
    protected $target_resource = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $target_resource
     *           The target resource to list associations. It is an organization, or a
     *           folder.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The target resource to list associations. It is an organization, or a
     * folder.
     *
     * Generated from protobuf field <code>optional string target_resource = 467318524;</code>
     * @return string
     */
    public function getTargetResource()
    {
        return isset($this->target_resource) ? $this->target_resource : '';
    }

    public function hasTargetResource()
    {
        return isset($this->target_resource);
    }

    public function clearTargetResource()
    {
        unset($this->target_resource);
    }

    /**
     * The target resource to list associations. It is an organization, or a
     * folder.
     *
     * Generated from protobuf field <code>optional string target_resource = 467318524;</code>
     * @param string $var
     * @return $this
     */
    public function setTargetResource($var)
    {
        GPBUtil::checkString($var, True);
        $this->target_resource = $var;

        return $this;
    }

}

