registration.core.Log */ class Log extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .registration.core.Log.Level level = 1; */ protected $level = 0; /** * Generated from protobuf field string message = 2; */ 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 .registration.core.Log.Level level = 1; * @return int */ public function getLevel() { return $this->level; } /** * Generated from protobuf field .registration.core.Log.Level level = 1; * @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 string message = 2; * @return string */ public function getMessage() { return $this->message; } /** * Generated from protobuf field string message = 2; * @param string $var * @return $this */ public function setMessage($var) { GPBUtil::checkString($var, True); $this->message = $var; return $this; } }