yats.Metric */ class Metric extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string id_client = 1; */ protected $id_client = ''; /** * Generated from protobuf field int64 mtime = 2; */ protected $mtime = 0; /** * Generated from protobuf field string name = 3; */ protected $name = ''; /** * Generated from protobuf field string value = 4; */ 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 string id_client = 1; * @return string */ public function getIdClient() { return $this->id_client; } /** * Generated from protobuf field string id_client = 1; * @param string $var * @return $this */ public function setIdClient($var) { GPBUtil::checkString($var, True); $this->id_client = $var; return $this; } /** * Generated from protobuf field int64 mtime = 2; * @return int|string */ public function getMtime() { return $this->mtime; } /** * Generated from protobuf field int64 mtime = 2; * @param int|string $var * @return $this */ public function setMtime($var) { GPBUtil::checkInt64($var); $this->mtime = $var; return $this; } /** * Generated from protobuf field string name = 3; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 3; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field string value = 4; * @return string */ public function getValue() { return $this->value; } /** * Generated from protobuf field string value = 4; * @param string $var * @return $this */ public function setValue($var) { GPBUtil::checkString($var, True); $this->value = $var; return $this; } }