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 * For reconnect interop test only.
13 * Server tells client whether its reconnects are following the spec and the
14 * reconnect backoffs it saw.
15 *
16 * Generated from protobuf message <code>grpc.testing.ReconnectInfo</code>
17 */
18class ReconnectInfo extends \Google\Protobuf\Internal\Message
19{
20    /**
21     * Generated from protobuf field <code>bool passed = 1;</code>
22     */
23    private $passed = false;
24    /**
25     * Generated from protobuf field <code>repeated int32 backoff_ms = 2;</code>
26     */
27    private $backoff_ms;
28
29    public function __construct() {
30        \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
31        parent::__construct();
32    }
33
34    /**
35     * Generated from protobuf field <code>bool passed = 1;</code>
36     * @return bool
37     */
38    public function getPassed()
39    {
40        return $this->passed;
41    }
42
43    /**
44     * Generated from protobuf field <code>bool passed = 1;</code>
45     * @param bool $var
46     * @return $this
47     */
48    public function setPassed($var)
49    {
50        GPBUtil::checkBool($var);
51        $this->passed = $var;
52
53        return $this;
54    }
55
56    /**
57     * Generated from protobuf field <code>repeated int32 backoff_ms = 2;</code>
58     * @return \Google\Protobuf\Internal\RepeatedField
59     */
60    public function getBackoffMs()
61    {
62        return $this->backoff_ms;
63    }
64
65    /**
66     * Generated from protobuf field <code>repeated int32 backoff_ms = 2;</code>
67     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
68     * @return $this
69     */
70    public function setBackoffMs($var)
71    {
72        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
73        $this->backoff_ms = $arr;
74
75        return $this;
76    }
77
78}
79
80