ListValue.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/protobuf/struct.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. * `ListValue` is a wrapper around a repeated field of values.
  10. * The JSON representation for `ListValue` is JSON array.
  11. *
  12. * Generated from protobuf message <code>google.protobuf.ListValue</code>
  13. */
  14. class ListValue extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Repeated field of dynamically typed values.
  18. *
  19. * Generated from protobuf field <code>repeated .google.protobuf.Value values = 1;</code>
  20. */
  21. private $values;
  22. public function __construct() {
  23. \GPBMetadata\Google\Protobuf\Struct::initOnce();
  24. parent::__construct();
  25. }
  26. /**
  27. * Repeated field of dynamically typed values.
  28. *
  29. * Generated from protobuf field <code>repeated .google.protobuf.Value values = 1;</code>
  30. * @return \Google\Protobuf\Internal\RepeatedField
  31. */
  32. public function getValues()
  33. {
  34. return $this->values;
  35. }
  36. /**
  37. * Repeated field of dynamically typed values.
  38. *
  39. * Generated from protobuf field <code>repeated .google.protobuf.Value values = 1;</code>
  40. * @param \Google\Protobuf\Value[]|\Google\Protobuf\Internal\RepeatedField $var
  41. * @return $this
  42. */
  43. public function setValues($var)
  44. {
  45. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class);
  46. $this->values = $arr;
  47. return $this;
  48. }
  49. }