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.RpcMetadata</code> 13 */ 14class RpcMetadata extends \Google\Protobuf\Internal\Message 15{ 16 /** 17 * metadata values for each rpc for the keys specified in 18 * LoadBalancerStatsRequest.metadata_keys. 19 * 20 * Generated from protobuf field <code>repeated .grpc.testing.LoadBalancerStatsResponse.MetadataEntry metadata = 1;</code> 21 */ 22 private $metadata; 23 24 /** 25 * Constructor. 26 * 27 * @param array $data { 28 * Optional. Data for populating the Message object. 29 * 30 * @type array<\Grpc\Testing\LoadBalancerStatsResponse\MetadataEntry>|\Google\Protobuf\Internal\RepeatedField $metadata 31 * metadata values for each rpc for the keys specified in 32 * LoadBalancerStatsRequest.metadata_keys. 33 * } 34 */ 35 public function __construct($data = NULL) { 36 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); 37 parent::__construct($data); 38 } 39 40 /** 41 * metadata values for each rpc for the keys specified in 42 * LoadBalancerStatsRequest.metadata_keys. 43 * 44 * Generated from protobuf field <code>repeated .grpc.testing.LoadBalancerStatsResponse.MetadataEntry metadata = 1;</code> 45 * @return \Google\Protobuf\Internal\RepeatedField 46 */ 47 public function getMetadata() 48 { 49 return $this->metadata; 50 } 51 52 /** 53 * metadata values for each rpc for the keys specified in 54 * LoadBalancerStatsRequest.metadata_keys. 55 * 56 * Generated from protobuf field <code>repeated .grpc.testing.LoadBalancerStatsResponse.MetadataEntry metadata = 1;</code> 57 * @param array<\Grpc\Testing\LoadBalancerStatsResponse\MetadataEntry>|\Google\Protobuf\Internal\RepeatedField $var 58 * @return $this 59 */ 60 public function setMetadata($var) 61 { 62 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\LoadBalancerStatsResponse\MetadataEntry::class); 63 $this->metadata = $arr; 64 65 return $this; 66 } 67 68} 69 70// Adding a class alias for backwards compatibility with the previous class name. 71class_alias(RpcMetadata::class, \Grpc\Testing\LoadBalancerStatsResponse_RpcMetadata::class); 72 73