HelloRequest.php 1.3 KB

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