yats.CreateMetricRequest
*/
class CreateMetricRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .yats.Metric metric = 1;
*/
protected $metric = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Yats\Metric $metric
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\YatsGrpc::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .yats.Metric metric = 1;
* @return \Yats\Metric|null
*/
public function getMetric()
{
return $this->metric;
}
public function hasMetric()
{
return isset($this->metric);
}
public function clearMetric()
{
unset($this->metric);
}
/**
* Generated from protobuf field .yats.Metric metric = 1;
* @param \Yats\Metric $var
* @return $this
*/
public function setMetric($var)
{
GPBUtil::checkMessage($var, \Yats\Metric::class);
$this->metric = $var;
return $this;
}
}