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

namespace Google\Analytics\Data\V1alpha;

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

/**
 * The unique identifier of the property whose events are tracked.
 *
 * Generated from protobuf message <code>google.analytics.data.v1alpha.Entity</code>
 */
class Entity extends \Google\Protobuf\Internal\Message
{
    /**
     * A Google Analytics GA4 property id. To learn more, see [where to find your
     * Property
     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
     *
     * Generated from protobuf field <code>string property_id = 1;</code>
     */
    private $property_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $property_id
     *           A Google Analytics GA4 property id. To learn more, see [where to find your
     *           Property
     *           ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * A Google Analytics GA4 property id. To learn more, see [where to find your
     * Property
     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
     *
     * Generated from protobuf field <code>string property_id = 1;</code>
     * @return string
     */
    public function getPropertyId()
    {
        return $this->property_id;
    }

    /**
     * A Google Analytics GA4 property id. To learn more, see [where to find your
     * Property
     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
     *
     * Generated from protobuf field <code>string property_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPropertyId($var)
    {
        GPBUtil::checkString($var, True);
        $this->property_id = $var;

        return $this;
    }

}

