HelloReply.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 response message containing the greetings
  10. *
  11. * Generated from protobuf message <code>helloworld.HelloReply</code>
  12. */
  13. class HelloReply extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>string message = 1;</code>
  17. */
  18. protected $message = '';
  19. /**
  20. * Constructor.
  21. *
  22. * @param array $data {
  23. * Optional. Data for populating the Message object.
  24. *
  25. * @type string $message
  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 message = 1;</code>
  34. * @return string
  35. */
  36. public function getMessage()
  37. {
  38. return $this->message;
  39. }
  40. /**
  41. * Generated from protobuf field <code>string message = 1;</code>
  42. * @param string $var
  43. * @return $this
  44. */
  45. public function setMessage($var)
  46. {
  47. GPBUtil::checkString($var, True);
  48. $this->message = $var;
  49. return $this;
  50. }
  51. }