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/echo_messages.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  * Generated from protobuf message <code>grpc.testing.EchoRequest</code>
     13  */
     14 class EchoRequest extends \Google\Protobuf\Internal\Message
     15 {
     16     /**
     17      * Generated from protobuf field <code>string message = 1;</code>
     18      */
     19     private $message = '';
     20     /**
     21      * Generated from protobuf field <code>.grpc.testing.RequestParams param = 2;</code>
     22      */
     23     private $param = null;
     24 
     25     public function __construct() {
     26         \GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
     27         parent::__construct();
     28     }
     29 
     30     /**
     31      * Generated from protobuf field <code>string message = 1;</code>
     32      * @return string
     33      */
     34     public function getMessage()
     35     {
     36         return $this->message;
     37     }
     38 
     39     /**
     40      * Generated from protobuf field <code>string message = 1;</code>
     41      * @param string $var
     42      * @return $this
     43      */
     44     public function setMessage($var)
     45     {
     46         GPBUtil::checkString($var, True);
     47         $this->message = $var;
     48 
     49         return $this;
     50     }
     51 
     52     /**
     53      * Generated from protobuf field <code>.grpc.testing.RequestParams param = 2;</code>
     54      * @return \Grpc\Testing\RequestParams
     55      */
     56     public function getParam()
     57     {
     58         return $this->param;
     59     }
     60 
     61     /**
     62      * Generated from protobuf field <code>.grpc.testing.RequestParams param = 2;</code>
     63      * @param \Grpc\Testing\RequestParams $var
     64      * @return $this
     65      */
     66     public function setParam($var)
     67     {
     68         GPBUtil::checkMessage($var, \Grpc\Testing\RequestParams::class);
     69         $this->param = $var;
     70 
     71         return $this;
     72     }
     73 
     74 }
     75 
     76