• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/messages.proto
4
5namespace Grpc\Testing;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * A protobuf representation for grpc status. This is used by test
13 * clients to specify a status that the server should attempt to return.
14 *
15 * Generated from protobuf message <code>grpc.testing.EchoStatus</code>
16 */
17class EchoStatus extends \Google\Protobuf\Internal\Message
18{
19    /**
20     * Generated from protobuf field <code>int32 code = 1;</code>
21     */
22    private $code = 0;
23    /**
24     * Generated from protobuf field <code>string message = 2;</code>
25     */
26    private $message = '';
27
28    public function __construct() {
29        \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
30        parent::__construct();
31    }
32
33    /**
34     * Generated from protobuf field <code>int32 code = 1;</code>
35     * @return int
36     */
37    public function getCode()
38    {
39        return $this->code;
40    }
41
42    /**
43     * Generated from protobuf field <code>int32 code = 1;</code>
44     * @param int $var
45     * @return $this
46     */
47    public function setCode($var)
48    {
49        GPBUtil::checkInt32($var);
50        $this->code = $var;
51
52        return $this;
53    }
54
55    /**
56     * Generated from protobuf field <code>string message = 2;</code>
57     * @return string
58     */
59    public function getMessage()
60    {
61        return $this->message;
62    }
63
64    /**
65     * Generated from protobuf field <code>string message = 2;</code>
66     * @param string $var
67     * @return $this
68     */
69    public function setMessage($var)
70    {
71        GPBUtil::checkString($var, True);
72        $this->message = $var;
73
74        return $this;
75    }
76
77}
78
79