<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/analytics_admin.proto
namespace Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\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;
/**
 * Request message for CreateRollupProperty RPC.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.CreateRollupPropertyRequest</code>
 */
class CreateRollupPropertyRequest extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * Required. The roll-up property to create.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $rollup_property = null;
    /**
     * Optional. The resource names of properties that will be sources to the
     * created roll-up property.
     *
     * Generated from protobuf field <code>repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $source_properties;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Analytics\Admin\V1alpha\Property $rollup_property
     *           Required. The roll-up property to create.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $source_properties
     *           Optional. The resource names of properties that will be sources to the
     *           created roll-up property.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
        parent::__construct($data);
    }
    /**
     * Required. The roll-up property to create.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Analytics\Admin\V1alpha\Property|null
     */
    public function getRollupProperty()
    {
        return $this->rollup_property;
    }
    public function hasRollupProperty()
    {
        return isset($this->rollup_property);
    }
    public function clearRollupProperty()
    {
        unset($this->rollup_property);
    }
    /**
     * Required. The roll-up property to create.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Analytics\Admin\V1alpha\Property $var
     * @return $this
     */
    public function setRollupProperty($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\Property::class);
        $this->rollup_property = $var;
        return $this;
    }
    /**
     * Optional. The resource names of properties that will be sources to the
     * created roll-up property.
     *
     * Generated from protobuf field <code>repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSourceProperties()
    {
        return $this->source_properties;
    }
    /**
     * Optional. The resource names of properties that will be sources to the
     * created roll-up property.
     *
     * Generated from protobuf field <code>repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSourceProperties($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\GPBType::STRING);
        $this->source_properties = $arr;
        return $this;
    }
}
