proto.Code */ class Code extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string code = 1; */ protected $code = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $code * } */ public function __construct($data = NULL) { \GPBMetadata\Demo1\Proto\User::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string code = 1; * @return string */ public function getCode() { return $this->code; } /** * Generated from protobuf field string code = 1; * @param string $var * @return $this */ public function setCode($var) { GPBUtil::checkString($var, True); $this->code = $var; return $this; } }