<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: data/user.proto

namespace Testing\Data\User;

use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>testing.data.User.Address</code>
 */
class Address extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string city = 1;</code>
     */
    protected $city = '';
    /**
     * Generated from protobuf field <code>string state = 2;</code>
     */
    protected $state = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $city
     *     @type string $state
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Data\User::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string city = 1;</code>
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * Generated from protobuf field <code>string city = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCity($var)
    {
        GPBUtil::checkString($var, true);
        $this->city = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string state = 2;</code>
     * @return string
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Generated from protobuf field <code>string state = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkString($var, true);
        $this->state = $var;

        return $this;
    }

}
