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 /** 19 * Constructor. 20 * 21 * @param array $data { 22 * Optional. Data for populating the Message object. 23 * 24 * @type \Grpc\Testing\ClosedLoopParams $closed_loop 25 * @type \Grpc\Testing\PoissonParams $poisson 26 * } 27 */ 28 public function __construct($data = NULL) { 29 \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce(); 30 parent::__construct($data); 31 } 32 33 /** 34 * Generated from protobuf field <code>.grpc.testing.ClosedLoopParams closed_loop = 1;</code> 35 * @return \Grpc\Testing\ClosedLoopParams 36 */ 37 public function getClosedLoop() 38 { 39 return $this->readOneof(1); 40 } 41 42 /** 43 * Generated from protobuf field <code>.grpc.testing.ClosedLoopParams closed_loop = 1;</code> 44 * @param \Grpc\Testing\ClosedLoopParams $var 45 * @return $this 46 */ 47 public function setClosedLoop($var) 48 { 49 GPBUtil::checkMessage($var, \Grpc\Testing\ClosedLoopParams::class); 50 $this->writeOneof(1, $var); 51 52 return $this; 53 } 54 55 /** 56 * Generated from protobuf field <code>.grpc.testing.PoissonParams poisson = 2;</code> 57 * @return \Grpc\Testing\PoissonParams 58 */ 59 public function getPoisson() 60 { 61 return $this->readOneof(2); 62 } 63 64 /** 65 * Generated from protobuf field <code>.grpc.testing.PoissonParams poisson = 2;</code> 66 * @param \Grpc\Testing\PoissonParams $var 67 * @return $this 68 */ 69 public function setPoisson($var) 70 { 71 GPBUtil::checkMessage($var, \Grpc\Testing\PoissonParams::class); 72 $this->writeOneof(2, $var); 73 74 return $this; 75 } 76 77 /** 78 * @return string 79 */ 80 public function getLoad() 81 { 82 return $this->whichOneof("load"); 83 } 84 85} 86 87