<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1beta/analytics_admin.proto
namespace Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1beta;

use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\RepeatedField;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBUtil;
/**
 * Request message for ProvisionAccountTicket RPC.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1beta.ProvisionAccountTicketRequest</code>
 */
class ProvisionAccountTicketRequest extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * The account to create.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1beta.Account account = 1;</code>
     */
    private $account = null;
    /**
     * Redirect URI where the user will be sent after accepting Terms of Service.
     * Must be configured in Cloud Console as a Redirect URI.
     *
     * Generated from protobuf field <code>string redirect_uri = 2;</code>
     */
    private $redirect_uri = '';
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Analytics\Admin\V1beta\Account $account
     *           The account to create.
     *     @type string $redirect_uri
     *           Redirect URI where the user will be sent after accepting Terms of Service.
     *           Must be configured in Cloud Console as a Redirect URI.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce();
        parent::__construct($data);
    }
    /**
     * The account to create.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1beta.Account account = 1;</code>
     * @return \Google\Analytics\Admin\V1beta\Account|null
     */
    public function getAccount()
    {
        return $this->account;
    }
    public function hasAccount()
    {
        return isset($this->account);
    }
    public function clearAccount()
    {
        unset($this->account);
    }
    /**
     * The account to create.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1beta.Account account = 1;</code>
     * @param \Google\Analytics\Admin\V1beta\Account $var
     * @return $this
     */
    public function setAccount($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1beta\Account::class);
        $this->account = $var;
        return $this;
    }
    /**
     * Redirect URI where the user will be sent after accepting Terms of Service.
     * Must be configured in Cloud Console as a Redirect URI.
     *
     * Generated from protobuf field <code>string redirect_uri = 2;</code>
     * @return string
     */
    public function getRedirectUri()
    {
        return $this->redirect_uri;
    }
    /**
     * Redirect URI where the user will be sent after accepting Terms of Service.
     * Must be configured in Cloud Console as a Redirect URI.
     *
     * Generated from protobuf field <code>string redirect_uri = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setRedirectUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->redirect_uri = $var;
        return $this;
    }
}
