<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/data/v1alpha/analytics_data_api.proto
namespace Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Data\V1alpha;

use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\RepeatedField;
use Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBUtil;
/**
 * A request to create a new recurring audience list.
 *
 * Generated from protobuf message <code>google.analytics.data.v1alpha.CreateRecurringAudienceListRequest</code>
 */
class CreateRecurringAudienceListRequest extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * Required. The parent resource where this recurring audience list will be
     * created. Format: `properties/{property}`
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $parent = '';
    /**
     * Required. The recurring audience list to create.
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.RecurringAudienceList recurring_audience_list = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $recurring_audience_list = null;
    /**
     * @param string                                               $parent                Required. The parent resource where this recurring audience list will be
     *                                                                                    created. Format: `properties/{property}`
     *                                                                                    Please see {@see AlphaAnalyticsDataClient::propertyName()} for help formatting this field.
     * @param \Google\Analytics\Data\V1alpha\RecurringAudienceList $recurringAudienceList Required. The recurring audience list to create.
     *
     * @return \Google\Analytics\Data\V1alpha\CreateRecurringAudienceListRequest
     *
     * @experimental
     */
    public static function build(string $parent, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Data\V1alpha\RecurringAudienceList $recurringAudienceList) : self
    {
        return (new self())->setParent($parent)->setRecurringAudienceList($recurringAudienceList);
    }
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The parent resource where this recurring audience list will be
     *           created. Format: `properties/{property}`
     *     @type \Google\Analytics\Data\V1alpha\RecurringAudienceList $recurring_audience_list
     *           Required. The recurring audience list to create.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce();
        parent::__construct($data);
    }
    /**
     * Required. The parent resource where this recurring audience list will be
     * created. Format: `properties/{property}`
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }
    /**
     * Required. The parent resource where this recurring audience list will be
     * created. Format: `properties/{property}`
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;
        return $this;
    }
    /**
     * Required. The recurring audience list to create.
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.RecurringAudienceList recurring_audience_list = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Analytics\Data\V1alpha\RecurringAudienceList|null
     */
    public function getRecurringAudienceList()
    {
        return $this->recurring_audience_list;
    }
    public function hasRecurringAudienceList()
    {
        return isset($this->recurring_audience_list);
    }
    public function clearRecurringAudienceList()
    {
        unset($this->recurring_audience_list);
    }
    /**
     * Required. The recurring audience list to create.
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.RecurringAudienceList recurring_audience_list = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Analytics\Data\V1alpha\RecurringAudienceList $var
     * @return $this
     */
    public function setRecurringAudienceList($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Data\V1alpha\RecurringAudienceList::class);
        $this->recurring_audience_list = $var;
        return $this;
    }
}
