grpc.testing.LoadBalancerStatsResponse.RpcsByPeer */ class RpcsByPeer extends \Google\Protobuf\Internal\Message { /** * The number of completed RPCs for each peer. * * Generated from protobuf field map rpcs_by_peer = 1; */ private $rpcs_by_peer; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array|\Google\Protobuf\Internal\MapField $rpcs_by_peer * The number of completed RPCs for each peer. * } */ public function __construct($data = NULL) { \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); parent::__construct($data); } /** * The number of completed RPCs for each peer. * * Generated from protobuf field map rpcs_by_peer = 1; * @return \Google\Protobuf\Internal\MapField */ public function getRpcsByPeer() { return $this->rpcs_by_peer; } /** * The number of completed RPCs for each peer. * * Generated from protobuf field map rpcs_by_peer = 1; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setRpcsByPeer($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); $this->rpcs_by_peer = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(RpcsByPeer::class, \Grpc\Testing\LoadBalancerStatsResponse_RpcsByPeer::class);