OLD | NEW |
(Empty) | |
| 1 <?php |
| 2 # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 # source: google/protobuf/descriptor.proto |
| 4 |
| 5 namespace Google\Protobuf\Internal; |
| 6 |
| 7 use Google\Protobuf\Internal\GPBType; |
| 8 use Google\Protobuf\Internal\GPBWire; |
| 9 use Google\Protobuf\Internal\RepeatedField; |
| 10 use Google\Protobuf\Internal\InputStream; |
| 11 |
| 12 use Google\Protobuf\Internal\GPBUtil; |
| 13 |
| 14 /** |
| 15 * <pre> |
| 16 * The protocol compiler can output a FileDescriptorSet containing the .proto |
| 17 * files it parses. |
| 18 * </pre> |
| 19 * |
| 20 * Protobuf type <code>google.protobuf.FileDescriptorSet</code> |
| 21 */ |
| 22 class FileDescriptorSet extends \Google\Protobuf\Internal\Message |
| 23 { |
| 24 /** |
| 25 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> |
| 26 */ |
| 27 private $file; |
| 28 private $has_file = false; |
| 29 |
| 30 public function __construct() { |
| 31 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 32 parent::__construct(); |
| 33 } |
| 34 |
| 35 /** |
| 36 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> |
| 37 */ |
| 38 public function getFile() |
| 39 { |
| 40 return $this->file; |
| 41 } |
| 42 |
| 43 /** |
| 44 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> |
| 45 */ |
| 46 public function setFile(&$var) |
| 47 { |
| 48 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\FileDescriptorProto::class); |
| 49 $this->file = $var; |
| 50 $this->has_file = true; |
| 51 } |
| 52 |
| 53 public function hasFile() |
| 54 { |
| 55 return $this->has_file; |
| 56 } |
| 57 |
| 58 } |
| 59 |
OLD | NEW |