<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v21/resources/per_store_view.proto

namespace Google\Ads\GoogleAds\V21\Resources;

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

/**
 * A per store view.
 * This view provides per store impression reach and local action conversion
 * stats for advertisers.
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.resources.PerStoreView</code>
 */
class PerStoreView extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The resource name of the per store view.
     * Per Store view resource names have the form:
     * `customers/{customer_id}/perStoreViews/{place_id}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $resource_name = '';
    /**
     * Output only. The place ID of the per store view.
     *
     * Generated from protobuf field <code>string place_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $place_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_name
     *           Output only. The resource name of the per store view.
     *           Per Store view resource names have the form:
     *           `customers/{customer_id}/perStoreViews/{place_id}`
     *     @type string $place_id
     *           Output only. The place ID of the per store view.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V21\Resources\PerStoreView::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The resource name of the per store view.
     * Per Store view resource names have the form:
     * `customers/{customer_id}/perStoreViews/{place_id}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getResourceName()
    {
        return $this->resource_name;
    }

    /**
     * Output only. The resource name of the per store view.
     * Per Store view resource names have the form:
     * `customers/{customer_id}/perStoreViews/{place_id}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setResourceName($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_name = $var;

        return $this;
    }

    /**
     * Output only. The place ID of the per store view.
     *
     * Generated from protobuf field <code>string place_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPlaceId()
    {
        return $this->place_id;
    }

    /**
     * Output only. The place ID of the per store view.
     *
     * Generated from protobuf field <code>string place_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPlaceId($var)
    {
        GPBUtil::checkString($var, True);
        $this->place_id = $var;

        return $this;
    }

}

