mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
60 lines
1.3 KiB
<?php |
|
# Generated by the protocol buffer compiler. DO NOT EDIT! |
|
# source: helloworld.proto |
|
|
|
namespace Helloworld; |
|
|
|
use Google\Protobuf\Internal\GPBType; |
|
use Google\Protobuf\Internal\RepeatedField; |
|
use Google\Protobuf\Internal\GPBUtil; |
|
|
|
/** |
|
* The request message containing the user's name. |
|
* |
|
* Generated from protobuf message <code>helloworld.HelloRequest</code> |
|
*/ |
|
class HelloRequest extends \Google\Protobuf\Internal\Message |
|
{ |
|
/** |
|
* Generated from protobuf field <code>string name = 1;</code> |
|
*/ |
|
protected $name = ''; |
|
|
|
/** |
|
* Constructor. |
|
* |
|
* @param array $data { |
|
* Optional. Data for populating the Message object. |
|
* |
|
* @type string $name |
|
* } |
|
*/ |
|
public function __construct($data = NULL) { |
|
\GPBMetadata\Helloworld::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; |
|
} |
|
|
|
} |
|
|
|
|