• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/payloads.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.SimpleProtoParams</code>
13 */
14class SimpleProtoParams extends \Google\Protobuf\Internal\Message
15{
16    /**
17     * Generated from protobuf field <code>int32 req_size = 1;</code>
18     */
19    private $req_size = 0;
20    /**
21     * Generated from protobuf field <code>int32 resp_size = 2;</code>
22     */
23    private $resp_size = 0;
24
25    public function __construct() {
26        \GPBMetadata\Src\Proto\Grpc\Testing\Payloads::initOnce();
27        parent::__construct();
28    }
29
30    /**
31     * Generated from protobuf field <code>int32 req_size = 1;</code>
32     * @return int
33     */
34    public function getReqSize()
35    {
36        return $this->req_size;
37    }
38
39    /**
40     * Generated from protobuf field <code>int32 req_size = 1;</code>
41     * @param int $var
42     * @return $this
43     */
44    public function setReqSize($var)
45    {
46        GPBUtil::checkInt32($var);
47        $this->req_size = $var;
48
49        return $this;
50    }
51
52    /**
53     * Generated from protobuf field <code>int32 resp_size = 2;</code>
54     * @return int
55     */
56    public function getRespSize()
57    {
58        return $this->resp_size;
59    }
60
61    /**
62     * Generated from protobuf field <code>int32 resp_size = 2;</code>
63     * @param int $var
64     * @return $this
65     */
66    public function setRespSize($var)
67    {
68        GPBUtil::checkInt32($var);
69        $this->resp_size = $var;
70
71        return $this;
72    }
73
74}
75
76