<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/resources.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;
/**
 * A link that references a source property under the parent rollup property.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.RollupPropertySourceLink</code>
 */
class RollupPropertySourceLink extends \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Protobuf\Internal\Message
{
    /**
     * Output only. Resource name of this RollupPropertySourceLink.
     * Format:
     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
     * Format: 'properties/123/rollupPropertySourceLinks/456'
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $name = '';
    /**
     * Immutable. Resource name of the source property.
     * Format: properties/{property_id}
     * Example: "properties/789"
     *
     * Generated from protobuf field <code>string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    private $source_property = '';
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Output only. Resource name of this RollupPropertySourceLink.
     *           Format:
     *           'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
     *           Format: 'properties/123/rollupPropertySourceLinks/456'
     *     @type string $source_property
     *           Immutable. Resource name of the source property.
     *           Format: properties/{property_id}
     *           Example: "properties/789"
     * }
     */
    public function __construct($data = NULL)
    {
        \Matomo\Dependencies\GoogleAnalyticsImporter\GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
        parent::__construct($data);
    }
    /**
     * Output only. Resource name of this RollupPropertySourceLink.
     * Format:
     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
     * Format: 'properties/123/rollupPropertySourceLinks/456'
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
    /**
     * Output only. Resource name of this RollupPropertySourceLink.
     * Format:
     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
     * Format: 'properties/123/rollupPropertySourceLinks/456'
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;
        return $this;
    }
    /**
     * Immutable. Resource name of the source property.
     * Format: properties/{property_id}
     * Example: "properties/789"
     *
     * Generated from protobuf field <code>string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getSourceProperty()
    {
        return $this->source_property;
    }
    /**
     * Immutable. Resource name of the source property.
     * Format: properties/{property_id}
     * Example: "properties/789"
     *
     * Generated from protobuf field <code>string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setSourceProperty($var)
    {
        GPBUtil::checkString($var, True);
        $this->source_property = $var;
        return $this;
    }
}
