Debian Codegraph @

php/src/Google/Protobuf/Internal/FileDescriptorSet.php

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