<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/products/v1/products_common.proto

namespace Google\Shopping\Merchant\Products\V1\ProductAttributes;

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

/**
 * The display address of the property.
 *
 * Generated from protobuf message <code>google.shopping.merchant.products.v1.ProductAttributes.DisplayAddress</code>
 */
class DisplayAddress extends \Google\Protobuf\Internal\Message
{
    /**
     * The street number.
     *
     * Generated from protobuf field <code>string street_number = 1;</code>
     */
    protected $street_number = '';
    /**
     * The street name.
     *
     * Generated from protobuf field <code>string street_name = 2;</code>
     */
    protected $street_name = '';
    /**
     * The city such as Seattle, New York, etc.
     *
     * Generated from protobuf field <code>string city = 3;</code>
     */
    protected $city = '';
    /**
     * The region(state), such as WA, OH, etc.
     *
     * Generated from protobuf field <code>string region = 4;</code>
     */
    protected $region = '';
    /**
     * The postal code, such as 94043.
     *
     * Generated from protobuf field <code>string postal_code = 5;</code>
     */
    protected $postal_code = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $street_number
     *           The street number.
     *     @type string $street_name
     *           The street name.
     *     @type string $city
     *           The city such as Seattle, New York, etc.
     *     @type string $region
     *           The region(state), such as WA, OH, etc.
     *     @type string $postal_code
     *           The postal code, such as 94043.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Shopping\Merchant\Products\V1\ProductsCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * The street number.
     *
     * Generated from protobuf field <code>string street_number = 1;</code>
     * @return string
     */
    public function getStreetNumber()
    {
        return $this->street_number;
    }

    /**
     * The street number.
     *
     * Generated from protobuf field <code>string street_number = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setStreetNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->street_number = $var;

        return $this;
    }

    /**
     * The street name.
     *
     * Generated from protobuf field <code>string street_name = 2;</code>
     * @return string
     */
    public function getStreetName()
    {
        return $this->street_name;
    }

    /**
     * The street name.
     *
     * Generated from protobuf field <code>string street_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setStreetName($var)
    {
        GPBUtil::checkString($var, True);
        $this->street_name = $var;

        return $this;
    }

    /**
     * The city such as Seattle, New York, etc.
     *
     * Generated from protobuf field <code>string city = 3;</code>
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * The city such as Seattle, New York, etc.
     *
     * Generated from protobuf field <code>string city = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setCity($var)
    {
        GPBUtil::checkString($var, True);
        $this->city = $var;

        return $this;
    }

    /**
     * The region(state), such as WA, OH, etc.
     *
     * Generated from protobuf field <code>string region = 4;</code>
     * @return string
     */
    public function getRegion()
    {
        return $this->region;
    }

    /**
     * The region(state), such as WA, OH, etc.
     *
     * Generated from protobuf field <code>string region = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setRegion($var)
    {
        GPBUtil::checkString($var, True);
        $this->region = $var;

        return $this;
    }

    /**
     * The postal code, such as 94043.
     *
     * Generated from protobuf field <code>string postal_code = 5;</code>
     * @return string
     */
    public function getPostalCode()
    {
        return $this->postal_code;
    }

    /**
     * The postal code, such as 94043.
     *
     * Generated from protobuf field <code>string postal_code = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setPostalCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->postal_code = $var;

        return $this;
    }

}

