ref: 7c6f17336616581db4f16514e16c16276c21ba94
yats-connector-php/Yats/Metric.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: yats-grpc.proto namespace Yats; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Generated from protobuf message <code>yats.Metric</code> */ class Metric extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field <code>string id_client = 1;</code> */ protected $id_client = ''; /** * Generated from protobuf field <code>int64 mtime = 2;</code> */ protected $mtime = 0; /** * Generated from protobuf field <code>string name = 3;</code> */ protected $name = ''; /** * Generated from protobuf field <code>string value = 4;</code> */ protected $value = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id_client * @type int|string $mtime * @type string $name * @type string $value * } */ public function __construct($data = NULL) { \GPBMetadata\YatsGrpc::initOnce(); parent::__construct($data); } /** * Generated from protobuf field <code>string id_client = 1;</code> * @return string */ public function getIdClient() { return $this->id_client; } /** * Generated from protobuf field <code>string id_client = 1;</code> * @param string $var * @return $this */ public function setIdClient($var) { GPBUtil::checkString($var, True); $this->id_client = $var; return $this; } /** * Generated from protobuf field <code>int64 mtime = 2;</code> * @return int|string */ public function getMtime() { return $this->mtime; } /** * Generated from protobuf field <code>int64 mtime = 2;</code> * @param int|string $var * @return $this */ public function setMtime($var) { GPBUtil::checkInt64($var); $this->mtime = $var; return $this; } /** * Generated from protobuf field <code>string name = 3;</code> * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field <code>string name = 3;</code> * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field <code>string value = 4;</code> * @return string */ public function getValue() { return $this->value; } /** * Generated from protobuf field <code>string value = 4;</code> * @param string $var * @return $this */ public function setValue($var) { GPBUtil::checkString($var, True); $this->value = $var; return $this; } } |