<?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;
/**
 * Response message for CreateSubproperty RPC.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.CreateSubpropertyResponse</code>
 */
class CreateSubpropertyResponse extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * The created subproperty.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.Property subproperty = 1;</code>
     */
    private $subproperty = null;
    /**
     * The created subproperty event filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2;</code>
     */
    private $subproperty_event_filter = null;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Analytics\Admin\V1alpha\Property $subproperty
     *           The created subproperty.
     *     @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter
     *           The created subproperty event filter.
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
        parent::__construct($data);
    }
    /**
     * The created subproperty.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.Property subproperty = 1;</code>
     * @return \Google\Analytics\Admin\V1alpha\Property|null
     */
    public function getSubproperty()
    {
        return $this->subproperty;
    }
    public function hasSubproperty()
    {
        return isset($this->subproperty);
    }
    public function clearSubproperty()
    {
        unset($this->subproperty);
    }
    /**
     * The created subproperty.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.Property subproperty = 1;</code>
     * @param \Google\Analytics\Admin\V1alpha\Property $var
     * @return $this
     */
    public function setSubproperty($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\Property::class);
        $this->subproperty = $var;
        return $this;
    }
    /**
     * The created subproperty event filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2;</code>
     * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null
     */
    public function getSubpropertyEventFilter()
    {
        return $this->subproperty_event_filter;
    }
    public function hasSubpropertyEventFilter()
    {
        return isset($this->subproperty_event_filter);
    }
    public function clearSubpropertyEventFilter()
    {
        unset($this->subproperty_event_filter);
    }
    /**
     * The created subproperty event filter.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2;</code>
     * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var
     * @return $this
     */
    public function setSubpropertyEventFilter($var)
    {
        GPBUtil::checkMessage($var, \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class);
        $this->subproperty_event_filter = $var;
        return $this;
    }
}
