<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto

namespace Google\Ads\MarketingPlatform\Admin\V1alpha;

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

/**
 * Request message for FindSalesPartnerManagedClients RPC.
 *
 * Generated from protobuf message <code>google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest</code>
 */
class FindSalesPartnerManagedClientsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the sales partner organization.
     * Format: organizations/{org_id}
     *
     * Generated from protobuf field <code>string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $organization = '';
    /**
     * Optional. If set, only active and just ended clients will be returned.
     *
     * Generated from protobuf field <code>bool is_active = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $is_active = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $organization
     *           Required. The name of the sales partner organization.
     *           Format: organizations/{org_id}
     *     @type bool $is_active
     *           Optional. If set, only active and just ended clients will be returned.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the sales partner organization.
     * Format: organizations/{org_id}
     *
     * Generated from protobuf field <code>string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getOrganization()
    {
        return $this->organization;
    }

    /**
     * Required. The name of the sales partner organization.
     * Format: organizations/{org_id}
     *
     * Generated from protobuf field <code>string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setOrganization($var)
    {
        GPBUtil::checkString($var, True);
        $this->organization = $var;

        return $this;
    }

    /**
     * Optional. If set, only active and just ended clients will be returned.
     *
     * Generated from protobuf field <code>bool is_active = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getIsActive()
    {
        return $this->is_active;
    }

    /**
     * Optional. If set, only active and just ended clients will be returned.
     *
     * Generated from protobuf field <code>bool is_active = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setIsActive($var)
    {
        GPBUtil::checkBool($var);
        $this->is_active = $var;

        return $this;
    }

}

