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.MetadataEntry</code> 13 */ 14class MetadataEntry extends \Google\Protobuf\Internal\Message 15{ 16 /** 17 * Key, exactly as received from the server. Case may be different from what 18 * was requested in the LoadBalancerStatsRequest) 19 * 20 * Generated from protobuf field <code>string key = 1;</code> 21 */ 22 protected $key = ''; 23 /** 24 * Value, exactly as received from the server. 25 * 26 * Generated from protobuf field <code>string value = 2;</code> 27 */ 28 protected $value = ''; 29 /** 30 * Metadata type 31 * 32 * Generated from protobuf field <code>.grpc.testing.LoadBalancerStatsResponse.MetadataType type = 3;</code> 33 */ 34 protected $type = 0; 35 36 /** 37 * Constructor. 38 * 39 * @param array $data { 40 * Optional. Data for populating the Message object. 41 * 42 * @type string $key 43 * Key, exactly as received from the server. Case may be different from what 44 * was requested in the LoadBalancerStatsRequest) 45 * @type string $value 46 * Value, exactly as received from the server. 47 * @type int $type 48 * Metadata type 49 * } 50 */ 51 public function __construct($data = NULL) { 52 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); 53 parent::__construct($data); 54 } 55 56 /** 57 * Key, exactly as received from the server. Case may be different from what 58 * was requested in the LoadBalancerStatsRequest) 59 * 60 * Generated from protobuf field <code>string key = 1;</code> 61 * @return string 62 */ 63 public function getKey() 64 { 65 return $this->key; 66 } 67 68 /** 69 * Key, exactly as received from the server. Case may be different from what 70 * was requested in the LoadBalancerStatsRequest) 71 * 72 * Generated from protobuf field <code>string key = 1;</code> 73 * @param string $var 74 * @return $this 75 */ 76 public function setKey($var) 77 { 78 GPBUtil::checkString($var, True); 79 $this->key = $var; 80 81 return $this; 82 } 83 84 /** 85 * Value, exactly as received from the server. 86 * 87 * Generated from protobuf field <code>string value = 2;</code> 88 * @return string 89 */ 90 public function getValue() 91 { 92 return $this->value; 93 } 94 95 /** 96 * Value, exactly as received from the server. 97 * 98 * Generated from protobuf field <code>string value = 2;</code> 99 * @param string $var 100 * @return $this 101 */ 102 public function setValue($var) 103 { 104 GPBUtil::checkString($var, True); 105 $this->value = $var; 106 107 return $this; 108 } 109 110 /** 111 * Metadata type 112 * 113 * Generated from protobuf field <code>.grpc.testing.LoadBalancerStatsResponse.MetadataType type = 3;</code> 114 * @return int 115 */ 116 public function getType() 117 { 118 return $this->type; 119 } 120 121 /** 122 * Metadata type 123 * 124 * Generated from protobuf field <code>.grpc.testing.LoadBalancerStatsResponse.MetadataType type = 3;</code> 125 * @param int $var 126 * @return $this 127 */ 128 public function setType($var) 129 { 130 GPBUtil::checkEnum($var, \Grpc\Testing\LoadBalancerStatsResponse\MetadataType::class); 131 $this->type = $var; 132 133 return $this; 134 } 135 136} 137 138// Adding a class alias for backwards compatibility with the previous class name. 139class_alias(MetadataEntry::class, \Grpc\Testing\LoadBalancerStatsResponse_MetadataEntry::class); 140 141