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 * Client tells server what reconnection parameters it used. 14 * 15 * Generated from protobuf message <code>grpc.testing.ReconnectParams</code> 16 */ 17class ReconnectParams extends \Google\Protobuf\Internal\Message 18{ 19 /** 20 * Generated from protobuf field <code>int32 max_reconnect_backoff_ms = 1;</code> 21 */ 22 protected $max_reconnect_backoff_ms = 0; 23 24 /** 25 * Constructor. 26 * 27 * @param array $data { 28 * Optional. Data for populating the Message object. 29 * 30 * @type int $max_reconnect_backoff_ms 31 * } 32 */ 33 public function __construct($data = NULL) { 34 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); 35 parent::__construct($data); 36 } 37 38 /** 39 * Generated from protobuf field <code>int32 max_reconnect_backoff_ms = 1;</code> 40 * @return int 41 */ 42 public function getMaxReconnectBackoffMs() 43 { 44 return $this->max_reconnect_backoff_ms; 45 } 46 47 /** 48 * Generated from protobuf field <code>int32 max_reconnect_backoff_ms = 1;</code> 49 * @param int $var 50 * @return $this 51 */ 52 public function setMaxReconnectBackoffMs($var) 53 { 54 GPBUtil::checkInt32($var); 55 $this->max_reconnect_backoff_ms = $var; 56 57 return $this; 58 } 59 60} 61 62