Debian Codegraph @

examples/php/Helloworld/HelloRequest.php

raw
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: helloworld.proto
4
5 namespace Helloworld;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * The request message containing the user's name.
13 *
14 * Generated from protobuf message <code>helloworld.HelloRequest</code>
15 */
16 class HelloRequest extends \Google\Protobuf\Internal\Message
17 {
18 /**
19 * Generated from protobuf field <code>string name = 1;</code>
20 */
21 protected $name = '';
22
23 /**
24 * Constructor.
25 *
26 * @param array $data {
27 * Optional. Data for populating the Message object.
28 *
29 * @type string $name
30 * }
31 */
32 public function __construct($data = NULL) {
33 \GPBMetadata\Helloworld::initOnce();
34 parent::__construct($data);
35 }
36
37 /**
38 * Generated from protobuf field <code>string name = 1;</code>
39 * @return string
40 */
41 public function getName()
42 {
43 return $this->name;
44 }
45
46 /**
47 * Generated from protobuf field <code>string name = 1;</code>
48 * @param string $var
49 * @return $this
50 */
51 public function setName($var)
52 {
53 GPBUtil::checkString($var, True);
54 $this->name = $var;
55
56 return $this;
57 }
58
59 }
60