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

namespace Google\Ads\GoogleAds\V25\Resources;

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

/**
 * 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.v25.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 = '';
    /**
     * Output only. First line of the store's address.
     *
     * Generated from protobuf field <code>string address1 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $address1 = '';
    /**
     * Output only. Second line of the store's address.
     *
     * Generated from protobuf field <code>string address2 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $address2 = '';
    /**
     * Output only. The name of the business.
     *
     * Generated from protobuf field <code>string business_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $business_name = '';
    /**
     * Output only. The city where the store is located.
     *
     * Generated from protobuf field <code>string city = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $city = '';
    /**
     * Output only. The two-letter country code for the store's location (e.g.,
     * "US").
     *
     * Generated from protobuf field <code>string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $country_code = '';
    /**
     * Output only. The phone number of the store.
     *
     * Generated from protobuf field <code>string phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $phone_number = '';
    /**
     * Output only. The postal code of the store's address.
     *
     * Generated from protobuf field <code>string postal_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $postal_code = '';
    /**
     * Output only. The province or state of the store's address.
     *
     * Generated from protobuf field <code>string province = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $province = '';

    /**
     * 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.
     *     @type string $address1
     *           Output only. First line of the store's address.
     *     @type string $address2
     *           Output only. Second line of the store's address.
     *     @type string $business_name
     *           Output only. The name of the business.
     *     @type string $city
     *           Output only. The city where the store is located.
     *     @type string $country_code
     *           Output only. The two-letter country code for the store's location (e.g.,
     *           "US").
     *     @type string $phone_number
     *           Output only. The phone number of the store.
     *     @type string $postal_code
     *           Output only. The postal code of the store's address.
     *     @type string $province
     *           Output only. The province or state of the store's address.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\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;
    }

    /**
     * Output only. First line of the store's address.
     *
     * Generated from protobuf field <code>string address1 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getAddress1()
    {
        return $this->address1;
    }

    /**
     * Output only. First line of the store's address.
     *
     * Generated from protobuf field <code>string address1 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setAddress1($var)
    {
        GPBUtil::checkString($var, True);
        $this->address1 = $var;

        return $this;
    }

    /**
     * Output only. Second line of the store's address.
     *
     * Generated from protobuf field <code>string address2 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getAddress2()
    {
        return $this->address2;
    }

    /**
     * Output only. Second line of the store's address.
     *
     * Generated from protobuf field <code>string address2 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setAddress2($var)
    {
        GPBUtil::checkString($var, True);
        $this->address2 = $var;

        return $this;
    }

    /**
     * Output only. The name of the business.
     *
     * Generated from protobuf field <code>string business_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getBusinessName()
    {
        return $this->business_name;
    }

    /**
     * Output only. The name of the business.
     *
     * Generated from protobuf field <code>string business_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setBusinessName($var)
    {
        GPBUtil::checkString($var, True);
        $this->business_name = $var;

        return $this;
    }

    /**
     * Output only. The city where the store is located.
     *
     * Generated from protobuf field <code>string city = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * Output only. The city where the store is located.
     *
     * Generated from protobuf field <code>string city = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setCity($var)
    {
        GPBUtil::checkString($var, True);
        $this->city = $var;

        return $this;
    }

    /**
     * Output only. The two-letter country code for the store's location (e.g.,
     * "US").
     *
     * Generated from protobuf field <code>string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getCountryCode()
    {
        return $this->country_code;
    }

    /**
     * Output only. The two-letter country code for the store's location (e.g.,
     * "US").
     *
     * Generated from protobuf field <code>string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setCountryCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->country_code = $var;

        return $this;
    }

    /**
     * Output only. The phone number of the store.
     *
     * Generated from protobuf field <code>string phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPhoneNumber()
    {
        return $this->phone_number;
    }

    /**
     * Output only. The phone number of the store.
     *
     * Generated from protobuf field <code>string phone_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPhoneNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->phone_number = $var;

        return $this;
    }

    /**
     * Output only. The postal code of the store's address.
     *
     * Generated from protobuf field <code>string postal_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPostalCode()
    {
        return $this->postal_code;
    }

    /**
     * Output only. The postal code of the store's address.
     *
     * Generated from protobuf field <code>string postal_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPostalCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->postal_code = $var;

        return $this;
    }

    /**
     * Output only. The province or state of the store's address.
     *
     * Generated from protobuf field <code>string province = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getProvince()
    {
        return $this->province;
    }

    /**
     * Output only. The province or state of the store's address.
     *
     * Generated from protobuf field <code>string province = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setProvince($var)
    {
        GPBUtil::checkString($var, True);
        $this->province = $var;

        return $this;
    }

}

