aboutsummaryrefslogtreecommitdiff
path: root/src/php/tests/interop/Grpc/Testing/SetReturnStatusRequest.php
blob: 41b28ce7fc4e815c9b9d10a3c7617b9e0cd7b7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto

namespace Grpc\Testing;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Status that will be return to callers of the Hook method
 *
 * Generated from protobuf message <code>grpc.testing.SetReturnStatusRequest</code>
 */
class SetReturnStatusRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 grpc_code_to_return = 1;</code>
     */
    protected $grpc_code_to_return = 0;
    /**
     * Generated from protobuf field <code>string grpc_status_description = 2;</code>
     */
    protected $grpc_status_description = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $grpc_code_to_return
     *     @type string $grpc_status_description
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 grpc_code_to_return = 1;</code>
     * @return int
     */
    public function getGrpcCodeToReturn()
    {
        return $this->grpc_code_to_return;
    }

    /**
     * Generated from protobuf field <code>int32 grpc_code_to_return = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setGrpcCodeToReturn($var)
    {
        GPBUtil::checkInt32($var);
        $this->grpc_code_to_return = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string grpc_status_description = 2;</code>
     * @return string
     */
    public function getGrpcStatusDescription()
    {
        return $this->grpc_status_description;
    }

    /**
     * Generated from protobuf field <code>string grpc_status_description = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setGrpcStatusDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->grpc_status_description = $var;

        return $this;
    }

}