<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/data/v1alpha/analytics_data_api.proto

namespace Google\Analytics\Data\V1alpha;

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

/**
 * Current state of all Property Quotas organized by quota category.
 *
 * Generated from protobuf message <code>google.analytics.data.v1alpha.PropertyQuotasSnapshot</code>
 */
class PropertyQuotasSnapshot extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The property quota snapshot resource name.
     *
     * Generated from protobuf field <code>string name = 4 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    private $name = '';
    /**
     * Property Quota for core property tokens
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;</code>
     */
    private $core_property_quota = null;
    /**
     * Property Quota for realtime property tokens
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;</code>
     */
    private $realtime_property_quota = null;
    /**
     * Property Quota for funnel property tokens
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;</code>
     */
    private $funnel_property_quota = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The property quota snapshot resource name.
     *     @type \Google\Analytics\Data\V1alpha\PropertyQuota $core_property_quota
     *           Property Quota for core property tokens
     *     @type \Google\Analytics\Data\V1alpha\PropertyQuota $realtime_property_quota
     *           Property Quota for realtime property tokens
     *     @type \Google\Analytics\Data\V1alpha\PropertyQuota $funnel_property_quota
     *           Property Quota for funnel property tokens
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The property quota snapshot resource name.
     *
     * Generated from protobuf field <code>string name = 4 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The property quota snapshot resource name.
     *
     * Generated from protobuf field <code>string name = 4 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Property Quota for core property tokens
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;</code>
     * @return \Google\Analytics\Data\V1alpha\PropertyQuota|null
     */
    public function getCorePropertyQuota()
    {
        return $this->core_property_quota;
    }

    public function hasCorePropertyQuota()
    {
        return isset($this->core_property_quota);
    }

    public function clearCorePropertyQuota()
    {
        unset($this->core_property_quota);
    }

    /**
     * Property Quota for core property tokens
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1;</code>
     * @param \Google\Analytics\Data\V1alpha\PropertyQuota $var
     * @return $this
     */
    public function setCorePropertyQuota($var)
    {
        GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\PropertyQuota::class);
        $this->core_property_quota = $var;

        return $this;
    }

    /**
     * Property Quota for realtime property tokens
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;</code>
     * @return \Google\Analytics\Data\V1alpha\PropertyQuota|null
     */
    public function getRealtimePropertyQuota()
    {
        return $this->realtime_property_quota;
    }

    public function hasRealtimePropertyQuota()
    {
        return isset($this->realtime_property_quota);
    }

    public function clearRealtimePropertyQuota()
    {
        unset($this->realtime_property_quota);
    }

    /**
     * Property Quota for realtime property tokens
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2;</code>
     * @param \Google\Analytics\Data\V1alpha\PropertyQuota $var
     * @return $this
     */
    public function setRealtimePropertyQuota($var)
    {
        GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\PropertyQuota::class);
        $this->realtime_property_quota = $var;

        return $this;
    }

    /**
     * Property Quota for funnel property tokens
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;</code>
     * @return \Google\Analytics\Data\V1alpha\PropertyQuota|null
     */
    public function getFunnelPropertyQuota()
    {
        return $this->funnel_property_quota;
    }

    public function hasFunnelPropertyQuota()
    {
        return isset($this->funnel_property_quota);
    }

    public function clearFunnelPropertyQuota()
    {
        unset($this->funnel_property_quota);
    }

    /**
     * Property Quota for funnel property tokens
     *
     * Generated from protobuf field <code>.google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3;</code>
     * @param \Google\Analytics\Data\V1alpha\PropertyQuota $var
     * @return $this
     */
    public function setFunnelPropertyQuota($var)
    {
        GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\PropertyQuota::class);
        $this->funnel_property_quota = $var;

        return $this;
    }

}

