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 protected $passed = false; 24 /** 25 * Generated from protobuf field <code>repeated int32 backoff_ms = 2;</code> 26 */ 27 private $backoff_ms; 28 29 /** 30 * Constructor. 31 * 32 * @param array $data { 33 * Optional. Data for populating the Message object. 34 * 35 * @type bool $passed 36 * @type array<int>|\Google\Protobuf\Internal\RepeatedField $backoff_ms 37 * } 38 */ 39 public function __construct($data = NULL) { 40 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); 41 parent::__construct($data); 42 } 43 44 /** 45 * Generated from protobuf field <code>bool passed = 1;</code> 46 * @return bool 47 */ 48 public function getPassed() 49 { 50 return $this->passed; 51 } 52 53 /** 54 * Generated from protobuf field <code>bool passed = 1;</code> 55 * @param bool $var 56 * @return $this 57 */ 58 public function setPassed($var) 59 { 60 GPBUtil::checkBool($var); 61 $this->passed = $var; 62 63 return $this; 64 } 65 66 /** 67 * Generated from protobuf field <code>repeated int32 backoff_ms = 2;</code> 68 * @return \Google\Protobuf\Internal\RepeatedField 69 */ 70 public function getBackoffMs() 71 { 72 return $this->backoff_ms; 73 } 74 75 /** 76 * Generated from protobuf field <code>repeated int32 backoff_ms = 2;</code> 77 * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var 78 * @return $this 79 */ 80 public function setBackoffMs($var) 81 { 82 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); 83 $this->backoff_ms = $arr; 84 85 return $this; 86 } 87 88} 89 90