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

namespace Google\Analytics\Admin\V1alpha;

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

/**
 * Request message for CreateConnectedSiteTag RPC.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest</code>
 */
class CreateConnectedSiteTagRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The Universal Analytics property to create connected site tags for.
     * This API does not support GA4 properties.
     * Format: properties/{universalAnalyticsPropertyId}
     * Example: properties/1234
     *
     * Generated from protobuf field <code>string property = 1;</code>
     */
    protected $property = '';
    /**
     * Required. The tag to add to the Universal Analytics property
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $connected_site_tag = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $property
     *           The Universal Analytics property to create connected site tags for.
     *           This API does not support GA4 properties.
     *           Format: properties/{universalAnalyticsPropertyId}
     *           Example: properties/1234
     *     @type \Google\Analytics\Admin\V1alpha\ConnectedSiteTag $connected_site_tag
     *           Required. The tag to add to the Universal Analytics property
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
        parent::__construct($data);
    }

    /**
     * The Universal Analytics property to create connected site tags for.
     * This API does not support GA4 properties.
     * Format: properties/{universalAnalyticsPropertyId}
     * Example: properties/1234
     *
     * Generated from protobuf field <code>string property = 1;</code>
     * @return string
     */
    public function getProperty()
    {
        return $this->property;
    }

    /**
     * The Universal Analytics property to create connected site tags for.
     * This API does not support GA4 properties.
     * Format: properties/{universalAnalyticsPropertyId}
     * Example: properties/1234
     *
     * Generated from protobuf field <code>string property = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setProperty($var)
    {
        GPBUtil::checkString($var, True);
        $this->property = $var;

        return $this;
    }

    /**
     * Required. The tag to add to the Universal Analytics property
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Analytics\Admin\V1alpha\ConnectedSiteTag|null
     */
    public function getConnectedSiteTag()
    {
        return $this->connected_site_tag;
    }

    public function hasConnectedSiteTag()
    {
        return isset($this->connected_site_tag);
    }

    public function clearConnectedSiteTag()
    {
        unset($this->connected_site_tag);
    }

    /**
     * Required. The tag to add to the Universal Analytics property
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Analytics\Admin\V1alpha\ConnectedSiteTag $var
     * @return $this
     */
    public function setConnectedSiteTag($var)
    {
        GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConnectedSiteTag::class);
        $this->connected_site_tag = $var;

        return $this;
    }

}

