1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: src/proto/grpc/testing/messages.proto 4 5namespace Grpc\Testing\LoadBalancerStatsResponse; 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.LoadBalancerStatsResponse.RpcsByPeer</code> 13 */ 14class RpcsByPeer extends \Google\Protobuf\Internal\Message 15{ 16 /** 17 * The number of completed RPCs for each peer. 18 * 19 * Generated from protobuf field <code>map<string, int32> rpcs_by_peer = 1;</code> 20 */ 21 private $rpcs_by_peer; 22 23 /** 24 * Constructor. 25 * 26 * @param array $data { 27 * Optional. Data for populating the Message object. 28 * 29 * @type array|\Google\Protobuf\Internal\MapField $rpcs_by_peer 30 * The number of completed RPCs for each peer. 31 * } 32 */ 33 public function __construct($data = NULL) { 34 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); 35 parent::__construct($data); 36 } 37 38 /** 39 * The number of completed RPCs for each peer. 40 * 41 * Generated from protobuf field <code>map<string, int32> rpcs_by_peer = 1;</code> 42 * @return \Google\Protobuf\Internal\MapField 43 */ 44 public function getRpcsByPeer() 45 { 46 return $this->rpcs_by_peer; 47 } 48 49 /** 50 * The number of completed RPCs for each peer. 51 * 52 * Generated from protobuf field <code>map<string, int32> rpcs_by_peer = 1;</code> 53 * @param array|\Google\Protobuf\Internal\MapField $var 54 * @return $this 55 */ 56 public function setRpcsByPeer($var) 57 { 58 $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); 59 $this->rpcs_by_peer = $arr; 60 61 return $this; 62 } 63 64} 65 66// Adding a class alias for backwards compatibility with the previous class name. 67class_alias(RpcsByPeer::class, \Grpc\Testing\LoadBalancerStatsResponse_RpcsByPeer::class); 68 69