blob: 26ace5f78f0a561f51590ed76d3335e253aa6444 [file] [log] [blame]
avm9996399bb77c2020-01-27 03:15:08 +01001<?php
2# Generated by the protocol buffer compiler. DO NOT EDIT!
3# source: proto/gtfs.proto
4
5namespace Gtfs;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * Generated from protobuf message <code>gtfs.FeedMessage</code>
13 */
14class FeedMessage extends \Google\Protobuf\Internal\Message
15{
16 /**
17 * Metadata about this feed and feed message.
18 *
19 * Generated from protobuf field <code>.gtfs.FeedHeader header = 1;</code>
20 */
21 protected $header = null;
22 /**
23 * Contents of the feed.
24 *
25 * Generated from protobuf field <code>repeated .gtfs.FeedEntity entity = 2;</code>
26 */
27 private $entity;
28
29 /**
30 * Constructor.
31 *
32 * @param array $data {
33 * Optional. Data for populating the Message object.
34 *
35 * @type \Gtfs\FeedHeader $header
36 * Metadata about this feed and feed message.
37 * @type \Gtfs\FeedEntity[]|\Google\Protobuf\Internal\RepeatedField $entity
38 * Contents of the feed.
39 * }
40 */
41 public function __construct($data = NULL) {
42 \GPBMetadata\Proto\Gtfs::initOnce();
43 parent::__construct($data);
44 }
45
46 /**
47 * Metadata about this feed and feed message.
48 *
49 * Generated from protobuf field <code>.gtfs.FeedHeader header = 1;</code>
50 * @return \Gtfs\FeedHeader
51 */
52 public function getHeader()
53 {
54 return $this->header;
55 }
56
57 /**
58 * Metadata about this feed and feed message.
59 *
60 * Generated from protobuf field <code>.gtfs.FeedHeader header = 1;</code>
61 * @param \Gtfs\FeedHeader $var
62 * @return $this
63 */
64 public function setHeader($var)
65 {
66 GPBUtil::checkMessage($var, \Gtfs\FeedHeader::class);
67 $this->header = $var;
68
69 return $this;
70 }
71
72 /**
73 * Contents of the feed.
74 *
75 * Generated from protobuf field <code>repeated .gtfs.FeedEntity entity = 2;</code>
76 * @return \Google\Protobuf\Internal\RepeatedField
77 */
78 public function getEntity()
79 {
80 return $this->entity;
81 }
82
83 /**
84 * Contents of the feed.
85 *
86 * Generated from protobuf field <code>repeated .gtfs.FeedEntity entity = 2;</code>
87 * @param \Gtfs\FeedEntity[]|\Google\Protobuf\Internal\RepeatedField $var
88 * @return $this
89 */
90 public function setEntity($var)
91 {
92 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Gtfs\FeedEntity::class);
93 $this->entity = $arr;
94
95 return $this;
96 }
97
98}
99