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  * Message to be echoed back serialized in trailer.
     13  *
     14  * Generated from protobuf message <code>grpc.testing.DebugInfo</code>
     15  */
     16 class DebugInfo extends \Google\Protobuf\Internal\Message
     17 {
     18     /**
     19      * Generated from protobuf field <code>repeated string stack_entries = 1;</code>
     20      */
     21     private $stack_entries;
     22     /**
     23      * Generated from protobuf field <code>string detail = 2;</code>
     24      */
     25     private $detail = '';
     26 
     27     public function __construct() {
     28         \GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
     29         parent::__construct();
     30     }
     31 
     32     /**
     33      * Generated from protobuf field <code>repeated string stack_entries = 1;</code>
     34      * @return \Google\Protobuf\Internal\RepeatedField
     35      */
     36     public function getStackEntries()
     37     {
     38         return $this->stack_entries;
     39     }
     40 
     41     /**
     42      * Generated from protobuf field <code>repeated string stack_entries = 1;</code>
     43      * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     44      * @return $this
     45      */
     46     public function setStackEntries($var)
     47     {
     48         $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
     49         $this->stack_entries = $arr;
     50 
     51         return $this;
     52     }
     53 
     54     /**
     55      * Generated from protobuf field <code>string detail = 2;</code>
     56      * @return string
     57      */
     58     public function getDetail()
     59     {
     60         return $this->detail;
     61     }
     62 
     63     /**
     64      * Generated from protobuf field <code>string detail = 2;</code>
     65      * @param string $var
     66      * @return $this
     67      */
     68     public function setDetail($var)
     69     {
     70         GPBUtil::checkString($var, True);
     71         $this->detail = $var;
     72 
     73         return $this;
     74     }
     75 
     76 }
     77 
     78