Debian Codegraph @

src/php/tests/qps/generated_code/Grpc/Testing/DebugInfo.php

raw
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 protected $detail = '';
26
27 /**
28 * Constructor.
29 *
30 * @param array $data {
31 * Optional. Data for populating the Message object.
32 *
33 * @type string[]|\Google\Protobuf\Internal\RepeatedField $stack_entries
34 * @type string $detail
35 * }
36 */
37 public function __construct($data = NULL) {
38 \GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
39 parent::__construct($data);
40 }
41
42 /**
43 * Generated from protobuf field <code>repeated string stack_entries = 1;</code>
44 * @return \Google\Protobuf\Internal\RepeatedField
45 */
46 public function getStackEntries()
47 {
48 return $this->stack_entries;
49 }
50
51 /**
52 * Generated from protobuf field <code>repeated string stack_entries = 1;</code>
53 * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
54 * @return $this
55 */
56 public function setStackEntries($var)
57 {
58 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
59 $this->stack_entries = $arr;
60
61 return $this;
62 }
63
64 /**
65 * Generated from protobuf field <code>string detail = 2;</code>
66 * @return string
67 */
68 public function getDetail()
69 {
70 return $this->detail;
71 }
72
73 /**
74 * Generated from protobuf field <code>string detail = 2;</code>
75 * @param string $var
76 * @return $this
77 */
78 public function setDetail($var)
79 {
80 GPBUtil::checkString($var, True);
81 $this->detail = $var;
82
83 return $this;
84 }
85
86 }
87