• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.MetadataByPeer</code>
13 */
14class MetadataByPeer extends \Google\Protobuf\Internal\Message
15{
16    /**
17     * List of RpcMetadata in for each RPC with a given peer
18     *
19     * Generated from protobuf field <code>repeated .grpc.testing.LoadBalancerStatsResponse.RpcMetadata rpc_metadata = 1;</code>
20     */
21    private $rpc_metadata;
22
23    /**
24     * Constructor.
25     *
26     * @param array $data {
27     *     Optional. Data for populating the Message object.
28     *
29     *     @type array<\Grpc\Testing\LoadBalancerStatsResponse\RpcMetadata>|\Google\Protobuf\Internal\RepeatedField $rpc_metadata
30     *           List of RpcMetadata in for each RPC with a given 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     * List of RpcMetadata in for each RPC with a given peer
40     *
41     * Generated from protobuf field <code>repeated .grpc.testing.LoadBalancerStatsResponse.RpcMetadata rpc_metadata = 1;</code>
42     * @return \Google\Protobuf\Internal\RepeatedField
43     */
44    public function getRpcMetadata()
45    {
46        return $this->rpc_metadata;
47    }
48
49    /**
50     * List of RpcMetadata in for each RPC with a given peer
51     *
52     * Generated from protobuf field <code>repeated .grpc.testing.LoadBalancerStatsResponse.RpcMetadata rpc_metadata = 1;</code>
53     * @param array<\Grpc\Testing\LoadBalancerStatsResponse\RpcMetadata>|\Google\Protobuf\Internal\RepeatedField $var
54     * @return $this
55     */
56    public function setRpcMetadata($var)
57    {
58        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\LoadBalancerStatsResponse\RpcMetadata::class);
59        $this->rpc_metadata = $arr;
60
61        return $this;
62    }
63
64}
65
66// Adding a class alias for backwards compatibility with the previous class name.
67class_alias(MetadataByPeer::class, \Grpc\Testing\LoadBalancerStatsResponse_MetadataByPeer::class);
68
69