<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: PubSub/tests/System/testdata/schema.proto

namespace Utilities;

use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>utilities.StateProto</code>
 */
class StateProto extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>string post_abbr = 2;</code>
     */
    protected $post_abbr = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *     @type string $post_abbr
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\PubSub\Tests\System\Testdata\Schema::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }
}
