Home | History | Annotate | Download | only in Testing
      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     public function __construct() {
     24         \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
     25         parent::__construct();
     26     }
     27 
     28     /**
     29      * Generated from protobuf field <code>repeated .grpc.testing.Scenario scenarios = 1;</code>
     30      * @return \Google\Protobuf\Internal\RepeatedField
     31      */
     32     public function getScenarios()
     33     {
     34         return $this->scenarios;
     35     }
     36 
     37     /**
     38      * Generated from protobuf field <code>repeated .grpc.testing.Scenario scenarios = 1;</code>
     39      * @param \Grpc\Testing\Scenario[]|\Google\Protobuf\Internal\RepeatedField $var
     40      * @return $this
     41      */
     42     public function setScenarios($var)
     43     {
     44         $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\Scenario::class);
     45         $this->scenarios = $arr;
     46 
     47         return $this;
     48     }
     49 
     50 }
     51 
     52