GeneratedCodeInfo.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/protobuf/descriptor.proto
  4. namespace Google\Protobuf\Internal;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\GPBWire;
  7. use Google\Protobuf\Internal\RepeatedField;
  8. use Google\Protobuf\Internal\InputStream;
  9. use Google\Protobuf\Internal\GPBUtil;
  10. /**
  11. * Describes the relationship between generated code and its original source
  12. * file. A GeneratedCodeInfo message is associated with only one generated
  13. * source file, but may contain references to different source .proto files.
  14. *
  15. * Generated from protobuf message <code>google.protobuf.GeneratedCodeInfo</code>
  16. */
  17. class GeneratedCodeInfo extends \Google\Protobuf\Internal\Message
  18. {
  19. /**
  20. * An Annotation connects some span of text in generated code to an element
  21. * of its generating .proto file.
  22. *
  23. * Generated from protobuf field <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code>
  24. */
  25. private $annotation;
  26. /**
  27. * Constructor.
  28. *
  29. * @param array $data {
  30. * Optional. Data for populating the Message object.
  31. *
  32. * @type \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation[]|\Google\Protobuf\Internal\RepeatedField $annotation
  33. * An Annotation connects some span of text in generated code to an element
  34. * of its generating .proto file.
  35. * }
  36. */
  37. public function __construct($data = NULL) {
  38. \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
  39. parent::__construct($data);
  40. }
  41. /**
  42. * An Annotation connects some span of text in generated code to an element
  43. * of its generating .proto file.
  44. *
  45. * Generated from protobuf field <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code>
  46. * @return \Google\Protobuf\Internal\RepeatedField
  47. */
  48. public function getAnnotation()
  49. {
  50. return $this->annotation;
  51. }
  52. /**
  53. * An Annotation connects some span of text in generated code to an element
  54. * of its generating .proto file.
  55. *
  56. * Generated from protobuf field <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code>
  57. * @param \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation[]|\Google\Protobuf\Internal\RepeatedField $var
  58. * @return $this
  59. */
  60. public function setAnnotation($var)
  61. {
  62. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation::class);
  63. $this->annotation = $arr;
  64. return $this;
  65. }
  66. }