StringValue.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/protobuf/wrappers.proto
  4. namespace Google\Protobuf;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Wrapper message for `string`.
  10. * The JSON representation for `StringValue` is JSON string.
  11. *
  12. * Generated from protobuf message <code>google.protobuf.StringValue</code>
  13. */
  14. class StringValue extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * The string value.
  18. *
  19. * Generated from protobuf field <code>string value = 1;</code>
  20. */
  21. private $value = '';
  22. public function __construct() {
  23. \GPBMetadata\Google\Protobuf\Wrappers::initOnce();
  24. parent::__construct();
  25. }
  26. /**
  27. * The string value.
  28. *
  29. * Generated from protobuf field <code>string value = 1;</code>
  30. * @return string
  31. */
  32. public function getValue()
  33. {
  34. return $this->value;
  35. }
  36. /**
  37. * The string value.
  38. *
  39. * Generated from protobuf field <code>string value = 1;</code>
  40. * @param string $var
  41. * @return $this
  42. */
  43. public function setValue($var)
  44. {
  45. GPBUtil::checkString($var, True);
  46. $this->value = $var;
  47. return $this;
  48. }
  49. }