FileDescriptorSet.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. public function __construct() {
  24. \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
  25. parent::__construct();
  26. }
  27. /**
  28. * Generated from protobuf field <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
  29. * @return \Google\Protobuf\Internal\RepeatedField
  30. */
  31. public function getFile()
  32. {
  33. return $this->file;
  34. }
  35. /**
  36. * Generated from protobuf field <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
  37. * @param \Google\Protobuf\Internal\FileDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var
  38. * @return $this
  39. */
  40. public function setFile(&$var)
  41. {
  42. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FileDescriptorProto::class);
  43. $this->file = $arr;
  44. $this->has_file = true;
  45. return $this;
  46. }
  47. public function hasFile()
  48. {
  49. return $this->has_file;
  50. }
  51. }