micro_service/php/Proto/Code.php

59 行
1.2 KiB
PHP

2024-09-24 16:56:54 +08:00
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: demo1/proto/user.proto
namespace Proto;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>proto.Code</code>
*/
class Code extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>string code = 1;</code>
*/
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 <code>string code = 1;</code>
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Generated from protobuf field <code>string code = 1;</code>
* @param string $var
* @return $this
*/
public function setCode($var)
{
GPBUtil::checkString($var, True);
$this->code = $var;
return $this;
}
}