Debian Codegraph @

src/php/tests/qps/generated_code/Grpc/Testing/Scenarios.php

raw
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: src/proto/grpc/testing/control.proto
4
5 namespace Grpc\Testing;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * A set of scenarios to be run with qps_json_driver
13 *
14 * Generated from protobuf message <code>grpc.testing.Scenarios</code>
15 */
16 class Scenarios extends \Google\Protobuf\Internal\Message
17 {
18 /**
19 * Generated from protobuf field <code>repeated .grpc.testing.Scenario scenarios = 1;</code>
20 */
21 private $scenarios;
22
23 /**
24 * Constructor.
25 *
26 * @param array $data {
27 * Optional. Data for populating the Message object.
28 *
29 * @type \Grpc\Testing\Scenario[]|\Google\Protobuf\Internal\RepeatedField $scenarios
30 * }
31 */
32 public function __construct($data = NULL) {
33 \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
34 parent::__construct($data);
35 }
36
37 /**
38 * Generated from protobuf field <code>repeated .grpc.testing.Scenario scenarios = 1;</code>
39 * @return \Google\Protobuf\Internal\RepeatedField
40 */
41 public function getScenarios()
42 {
43 return $this->scenarios;
44 }
45
46 /**
47 * Generated from protobuf field <code>repeated .grpc.testing.Scenario scenarios = 1;</code>
48 * @param \Grpc\Testing\Scenario[]|\Google\Protobuf\Internal\RepeatedField $var
49 * @return $this
50 */
51 public function setScenarios($var)
52 {
53 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\Scenario::class);
54 $this->scenarios = $arr;
55
56 return $this;
57 }
58
59 }
60