• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/echo_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 * Generated from protobuf message <code>grpc.testing.ResponseParams</code>
13 */
14class ResponseParams extends \Google\Protobuf\Internal\Message
15{
16    /**
17     * Generated from protobuf field <code>int64 request_deadline = 1;</code>
18     */
19    private $request_deadline = 0;
20    /**
21     * Generated from protobuf field <code>string host = 2;</code>
22     */
23    private $host = '';
24    /**
25     * Generated from protobuf field <code>string peer = 3;</code>
26     */
27    private $peer = '';
28
29    public function __construct() {
30        \GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
31        parent::__construct();
32    }
33
34    /**
35     * Generated from protobuf field <code>int64 request_deadline = 1;</code>
36     * @return int|string
37     */
38    public function getRequestDeadline()
39    {
40        return $this->request_deadline;
41    }
42
43    /**
44     * Generated from protobuf field <code>int64 request_deadline = 1;</code>
45     * @param int|string $var
46     * @return $this
47     */
48    public function setRequestDeadline($var)
49    {
50        GPBUtil::checkInt64($var);
51        $this->request_deadline = $var;
52
53        return $this;
54    }
55
56    /**
57     * Generated from protobuf field <code>string host = 2;</code>
58     * @return string
59     */
60    public function getHost()
61    {
62        return $this->host;
63    }
64
65    /**
66     * Generated from protobuf field <code>string host = 2;</code>
67     * @param string $var
68     * @return $this
69     */
70    public function setHost($var)
71    {
72        GPBUtil::checkString($var, True);
73        $this->host = $var;
74
75        return $this;
76    }
77
78    /**
79     * Generated from protobuf field <code>string peer = 3;</code>
80     * @return string
81     */
82    public function getPeer()
83    {
84        return $this->peer;
85    }
86
87    /**
88     * Generated from protobuf field <code>string peer = 3;</code>
89     * @param string $var
90     * @return $this
91     */
92    public function setPeer($var)
93    {
94        GPBUtil::checkString($var, True);
95        $this->peer = $var;
96
97        return $this;
98    }
99
100}
101
102