<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: applogger/v1/applogger.proto

namespace RoadRunner\AppLogger\DTO\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Generated from protobuf message <code>applogger.v1.LogEntry</code>
 */
class LogEntry extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string message = 1;</code>
     */
    protected $message = '';
    /**
     * Generated from protobuf field <code>repeated .applogger.v1.LogAttrs log_attrs = 2;</code>
     */
    private $log_attrs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $message
     *     @type \RoadRunner\AppLogger\DTO\V1\LogAttrs[] $log_attrs
     * }
     */
    public function __construct($data = NULL) {
        \RoadRunner\AppLogger\DTO\V1\GPBMetadata\Applogger::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string message = 1;</code>
     * @return string
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * Generated from protobuf field <code>string message = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->message = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .applogger.v1.LogAttrs log_attrs = 2;</code>
     * @return RepeatedField<\RoadRunner\AppLogger\DTO\V1\LogAttrs>
     */
    public function getLogAttrs()
    {
        return $this->log_attrs;
    }

    /**
     * Generated from protobuf field <code>repeated .applogger.v1.LogAttrs log_attrs = 2;</code>
     * @param \RoadRunner\AppLogger\DTO\V1\LogAttrs[] $var
     * @return $this
     */
    public function setLogAttrs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \RoadRunner\AppLogger\DTO\V1\LogAttrs::class);
        $this->log_attrs = $arr;

        return $this;
    }

}

