FileDescriptorSet.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. * The protocol compiler can output a FileDescriptorSet containing the .proto
  12. * files it parses.
  13. *
  14. * Generated from protobuf message <code>google.protobuf.FileDescriptorSet</code>
  15. */
  16. class FileDescriptorSet extends \Google\Protobuf\Internal\Message
  17. {
  18. /**
  19. * Generated from protobuf field <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
  20. */
  21. private $file;
  22. private $has_file = false;
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type \Google\Protobuf\Internal\FileDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $file
  30. * }
  31. */
  32. public function __construct($data = NULL) {
  33. \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
  34. parent::__construct($data);
  35. }
  36. /**
  37. * Generated from protobuf field <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
  38. * @return \Google\Protobuf\Internal\RepeatedField
  39. */
  40. public function getFile()
  41. {
  42. return $this->file;
  43. }
  44. /**
  45. * Generated from protobuf field <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
  46. * @param \Google\Protobuf\Internal\FileDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var
  47. * @return $this
  48. */
  49. public function setFile($var)
  50. {
  51. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FileDescriptorProto::class);
  52. $this->file = $arr;
  53. $this->has_file = true;
  54. return $this;
  55. }
  56. public function hasFile()
  57. {
  58. return $this->has_file;
  59. }
  60. }