• 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 * Generated from protobuf message <code>grpc.testing.LoadBalancerStatsRequest</code>
13 */
14class LoadBalancerStatsRequest extends \Google\Protobuf\Internal\Message
15{
16    /**
17     * Request stats for the next num_rpcs sent by client.
18     *
19     * Generated from protobuf field <code>int32 num_rpcs = 1;</code>
20     */
21    protected $num_rpcs = 0;
22    /**
23     * If num_rpcs have not completed within timeout_sec, return partial results.
24     *
25     * Generated from protobuf field <code>int32 timeout_sec = 2;</code>
26     */
27    protected $timeout_sec = 0;
28
29    /**
30     * Constructor.
31     *
32     * @param array $data {
33     *     Optional. Data for populating the Message object.
34     *
35     *     @type int $num_rpcs
36     *           Request stats for the next num_rpcs sent by client.
37     *     @type int $timeout_sec
38     *           If num_rpcs have not completed within timeout_sec, return partial results.
39     * }
40     */
41    public function __construct($data = NULL) {
42        \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
43        parent::__construct($data);
44    }
45
46    /**
47     * Request stats for the next num_rpcs sent by client.
48     *
49     * Generated from protobuf field <code>int32 num_rpcs = 1;</code>
50     * @return int
51     */
52    public function getNumRpcs()
53    {
54        return $this->num_rpcs;
55    }
56
57    /**
58     * Request stats for the next num_rpcs sent by client.
59     *
60     * Generated from protobuf field <code>int32 num_rpcs = 1;</code>
61     * @param int $var
62     * @return $this
63     */
64    public function setNumRpcs($var)
65    {
66        GPBUtil::checkInt32($var);
67        $this->num_rpcs = $var;
68
69        return $this;
70    }
71
72    /**
73     * If num_rpcs have not completed within timeout_sec, return partial results.
74     *
75     * Generated from protobuf field <code>int32 timeout_sec = 2;</code>
76     * @return int
77     */
78    public function getTimeoutSec()
79    {
80        return $this->timeout_sec;
81    }
82
83    /**
84     * If num_rpcs have not completed within timeout_sec, return partial results.
85     *
86     * Generated from protobuf field <code>int32 timeout_sec = 2;</code>
87     * @param int $var
88     * @return $this
89     */
90    public function setTimeoutSec($var)
91    {
92        GPBUtil::checkInt32($var);
93        $this->timeout_sec = $var;
94
95        return $this;
96    }
97
98}
99
100