| 1 |
<?php |
| 2 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 |
# source: src/proto/grpc/core/stats.proto |
| 4 |
|
| 5 |
namespace Grpc\Core; |
| 6 |
|
| 7 |
use Google\Protobuf\Internal\GPBType; |
| 8 |
use Google\Protobuf\Internal\RepeatedField; |
| 9 |
use Google\Protobuf\Internal\GPBUtil; |
| 10 |
|
| 11 |
/** |
| 12 |
* Generated from protobuf message <code>grpc.core.Stats</code> |
| 13 |
*/ |
| 14 |
class Stats extends \Google\Protobuf\Internal\Message |
| 15 |
{ |
| 16 |
/** |
| 17 |
* Generated from protobuf field <code>repeated .grpc.core.Metric metrics = 1;</code> |
| 18 |
*/ |
| 19 |
private $metrics; |
| 20 |
|
| 21 |
/** |
| 22 |
* Constructor. |
| 23 |
* |
| 24 |
* @param array $data { |
| 25 |
* Optional. Data for populating the Message object. |
| 26 |
* |
| 27 |
* @type \Grpc\Core\Metric[]|\Google\Protobuf\Internal\RepeatedField $metrics |
| 28 |
* } |
| 29 |
*/ |
| 30 |
public function __construct($data = NULL) { |
| 31 |
\GPBMetadata\Src\Proto\Grpc\Core\Stats::initOnce(); |
| 32 |
parent::__construct($data); |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* Generated from protobuf field <code>repeated .grpc.core.Metric metrics = 1;</code> |
| 37 |
* @return \Google\Protobuf\Internal\RepeatedField |
| 38 |
*/ |
| 39 |
public function getMetrics() |
| 40 |
{ |
| 41 |
return $this->metrics; |
| 42 |
} |
| 43 |
|
| 44 |
/** |
| 45 |
* Generated from protobuf field <code>repeated .grpc.core.Metric metrics = 1;</code> |
| 46 |
* @param \Grpc\Core\Metric[]|\Google\Protobuf\Internal\RepeatedField $var |
| 47 |
* @return $this |
| 48 |
*/ |
| 49 |
public function setMetrics($var) |
| 50 |
{ |
| 51 |
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Core\Metric::class); |
| 52 |
$this->metrics = $arr; |
| 53 |
|
| 54 |
return $this; |
| 55 |
} |
| 56 |
|
| 57 |
} |
| 58 |
|