1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/control.proto
4
5namespace Grpc\Testing;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * Generated from protobuf message <code>grpc.testing.LoadParams</code>
13 */
14class LoadParams extends \Google\Protobuf\Internal\Message
15{
16    protected $load;
17
18    public function __construct() {
19        \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
20        parent::__construct();
21    }
22
23    /**
24     * Generated from protobuf field <code>.grpc.testing.ClosedLoopParams closed_loop = 1;</code>
25     * @return \Grpc\Testing\ClosedLoopParams
26     */
27    public function getClosedLoop()
28    {
29        return $this->readOneof(1);
30    }
31
32    /**
33     * Generated from protobuf field <code>.grpc.testing.ClosedLoopParams closed_loop = 1;</code>
34     * @param \Grpc\Testing\ClosedLoopParams $var
35     * @return $this
36     */
37    public function setClosedLoop($var)
38    {
39        GPBUtil::checkMessage($var, \Grpc\Testing\ClosedLoopParams::class);
40        $this->writeOneof(1, $var);
41
42        return $this;
43    }
44
45    /**
46     * Generated from protobuf field <code>.grpc.testing.PoissonParams poisson = 2;</code>
47     * @return \Grpc\Testing\PoissonParams
48     */
49    public function getPoisson()
50    {
51        return $this->readOneof(2);
52    }
53
54    /**
55     * Generated from protobuf field <code>.grpc.testing.PoissonParams poisson = 2;</code>
56     * @param \Grpc\Testing\PoissonParams $var
57     * @return $this
58     */
59    public function setPoisson($var)
60    {
61        GPBUtil::checkMessage($var, \Grpc\Testing\PoissonParams::class);
62        $this->writeOneof(2, $var);
63
64        return $this;
65    }
66
67    /**
68     * @return string
69     */
70    public function getLoad()
71    {
72        return $this->whichOneof("load");
73    }
74
75}
76
77