<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: module.proto

namespace Proto;

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

/**
 * Generated from protobuf message <code>proto.ModuleDanger</code>
 */
class ModuleDanger extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.proto.AstNode danger = 1;</code>
     */
    private $danger = null;
    /**
     * Generated from protobuf field <code>repeated .proto.AstNode slices = 2;</code>
     */
    private $slices;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Proto\AstNode $danger
     *     @type \Proto\AstNode[]|\Google\Protobuf\Internal\RepeatedField $slices
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Module::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.proto.AstNode danger = 1;</code>
     * @return \Proto\AstNode
     */
    public function getDanger()
    {
        return $this->danger;
    }

    /**
     * Generated from protobuf field <code>.proto.AstNode danger = 1;</code>
     * @param \Proto\AstNode $var
     * @return $this
     */
    public function setDanger($var)
    {
        GPBUtil::checkMessage($var, \Proto\AstNode::class);
        $this->danger = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.AstNode slices = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSlices()
    {
        return $this->slices;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.AstNode slices = 2;</code>
     * @param \Proto\AstNode[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSlices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\AstNode::class);
        $this->slices = $arr;

        return $this;
    }

}

