propresenter-php/php/generated/Registration/Core/Log.php
2026-03-01 16:12:17 +01:00

87 lines
1.9 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: registration.proto
namespace Registration\Core;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>registration.core.Log</code>
*/
class Log extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.registration.core.Log.Level level = 1;</code>
*/
protected $level = 0;
/**
* Generated from protobuf field <code>string message = 2;</code>
*/
protected $message = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $level
* @type string $message
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Registration::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.registration.core.Log.Level level = 1;</code>
* @return int
*/
public function getLevel()
{
return $this->level;
}
/**
* Generated from protobuf field <code>.registration.core.Log.Level level = 1;</code>
* @param int $var
* @return $this
*/
public function setLevel($var)
{
GPBUtil::checkEnum($var, \Registration\Core\Log\Level::class);
$this->level = $var;
return $this;
}
/**
* Generated from protobuf field <code>string message = 2;</code>
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Generated from protobuf field <code>string message = 2;</code>
* @param string $var
* @return $this
*/
public function setMessage($var)
{
GPBUtil::checkString($var, True);
$this->message = $var;
return $this;
}
}