opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern
*/
class Pattern extends \Google\Protobuf\Internal\Message
{
protected $match;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $equals
* matches the metric name exactly
* @type string $starts_with
* prefix-matches the metric name
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Opentelemetry\Proto\Metrics\Experimental\MetricsConfigService::initOnce();
parent::__construct($data);
}
/**
* matches the metric name exactly
*
* Generated from protobuf field string equals = 1;
* @return string
*/
public function getEquals()
{
return $this->readOneof(1);
}
public function hasEquals()
{
return $this->hasOneof(1);
}
/**
* matches the metric name exactly
*
* Generated from protobuf field string equals = 1;
* @param string $var
* @return $this
*/
public function setEquals($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(1, $var);
return $this;
}
/**
* prefix-matches the metric name
*
* Generated from protobuf field string starts_with = 2;
* @return string
*/
public function getStartsWith()
{
return $this->readOneof(2);
}
public function hasStartsWith()
{
return $this->hasOneof(2);
}
/**
* prefix-matches the metric name
*
* Generated from protobuf field string starts_with = 2;
* @param string $var
* @return $this
*/
public function setStartsWith($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(2, $var);
return $this;
}
/**
* @return string
*/
public function getMatch()
{
return $this->whichOneof("match");
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Pattern::class, \Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse_Schedule_Pattern::class);