1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: src/proto/grpc/testing/messages.proto 4 5namespace Grpc\Testing; 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.LoadBalancerStatsRequest</code> 13 */ 14class LoadBalancerStatsRequest extends \Google\Protobuf\Internal\Message 15{ 16 /** 17 * Request stats for the next num_rpcs sent by client. 18 * 19 * Generated from protobuf field <code>int32 num_rpcs = 1;</code> 20 */ 21 protected $num_rpcs = 0; 22 /** 23 * If num_rpcs have not completed within timeout_sec, return partial results. 24 * 25 * Generated from protobuf field <code>int32 timeout_sec = 2;</code> 26 */ 27 protected $timeout_sec = 0; 28 /** 29 * Response header + trailer metadata entries we want the values of. 30 * Matching of the keys is case-insensitive as per rfc7540#section-8.1.2 31 * * (asterisk) is a special value that will return all metadata entries 32 * 33 * Generated from protobuf field <code>repeated string metadata_keys = 3;</code> 34 */ 35 private $metadata_keys; 36 37 /** 38 * Constructor. 39 * 40 * @param array $data { 41 * Optional. Data for populating the Message object. 42 * 43 * @type int $num_rpcs 44 * Request stats for the next num_rpcs sent by client. 45 * @type int $timeout_sec 46 * If num_rpcs have not completed within timeout_sec, return partial results. 47 * @type array<string>|\Google\Protobuf\Internal\RepeatedField $metadata_keys 48 * Response header + trailer metadata entries we want the values of. 49 * Matching of the keys is case-insensitive as per rfc7540#section-8.1.2 50 * * (asterisk) is a special value that will return all metadata entries 51 * } 52 */ 53 public function __construct($data = NULL) { 54 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); 55 parent::__construct($data); 56 } 57 58 /** 59 * Request stats for the next num_rpcs sent by client. 60 * 61 * Generated from protobuf field <code>int32 num_rpcs = 1;</code> 62 * @return int 63 */ 64 public function getNumRpcs() 65 { 66 return $this->num_rpcs; 67 } 68 69 /** 70 * Request stats for the next num_rpcs sent by client. 71 * 72 * Generated from protobuf field <code>int32 num_rpcs = 1;</code> 73 * @param int $var 74 * @return $this 75 */ 76 public function setNumRpcs($var) 77 { 78 GPBUtil::checkInt32($var); 79 $this->num_rpcs = $var; 80 81 return $this; 82 } 83 84 /** 85 * If num_rpcs have not completed within timeout_sec, return partial results. 86 * 87 * Generated from protobuf field <code>int32 timeout_sec = 2;</code> 88 * @return int 89 */ 90 public function getTimeoutSec() 91 { 92 return $this->timeout_sec; 93 } 94 95 /** 96 * If num_rpcs have not completed within timeout_sec, return partial results. 97 * 98 * Generated from protobuf field <code>int32 timeout_sec = 2;</code> 99 * @param int $var 100 * @return $this 101 */ 102 public function setTimeoutSec($var) 103 { 104 GPBUtil::checkInt32($var); 105 $this->timeout_sec = $var; 106 107 return $this; 108 } 109 110 /** 111 * Response header + trailer metadata entries we want the values of. 112 * Matching of the keys is case-insensitive as per rfc7540#section-8.1.2 113 * * (asterisk) is a special value that will return all metadata entries 114 * 115 * Generated from protobuf field <code>repeated string metadata_keys = 3;</code> 116 * @return \Google\Protobuf\Internal\RepeatedField 117 */ 118 public function getMetadataKeys() 119 { 120 return $this->metadata_keys; 121 } 122 123 /** 124 * Response header + trailer metadata entries we want the values of. 125 * Matching of the keys is case-insensitive as per rfc7540#section-8.1.2 126 * * (asterisk) is a special value that will return all metadata entries 127 * 128 * Generated from protobuf field <code>repeated string metadata_keys = 3;</code> 129 * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var 130 * @return $this 131 */ 132 public function setMetadataKeys($var) 133 { 134 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 135 $this->metadata_keys = $arr; 136 137 return $this; 138 } 139 140} 141 142