blob: 9907b17d73c59fa0de466d1494e493ad82d5006a [file] [log] [blame]
avm9996399bb77c2020-01-27 03:15:08 +01001<?php
2# Generated by the protocol buffer compiler. DO NOT EDIT!
3# source: google/protobuf/descriptor.proto
4
5namespace Google\Protobuf\Internal;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\GPBWire;
9use Google\Protobuf\Internal\RepeatedField;
10use Google\Protobuf\Internal\InputStream;
11use 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 */
19class 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 private $has_file = false;
26
27 /**
28 * Constructor.
29 *
30 * @param array $data {
31 * Optional. Data for populating the Message object.
32 *
33 * @type \Google\Protobuf\Internal\FileDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $file
34 * }
35 */
36 public function __construct($data = NULL) {
37 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
38 parent::__construct($data);
39 }
40
41 /**
42 * Generated from protobuf field <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
43 * @return \Google\Protobuf\Internal\RepeatedField
44 */
45 public function getFile()
46 {
47 return $this->file;
48 }
49
50 /**
51 * Generated from protobuf field <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
52 * @param \Google\Protobuf\Internal\FileDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var
53 * @return $this
54 */
55 public function setFile($var)
56 {
57 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FileDescriptorProto::class);
58 $this->file = $arr;
59 $this->has_file = true;
60
61 return $this;
62 }
63
64 public function hasFile()
65 {
66 return $this->has_file;
67 }
68
69}
70