<?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;

/**
 **
 * FIXME: label flows/dangers as stealer, backdoor and sabotage behaviors.
 * stealer can be: read from sensitive locations and send to internet
 * backdoor can be: read information from file or internet and evaluate/execute
 * sabotage can be: remove/encrypt files outside own folder
 *
 * Generated from protobuf message <code>proto.ModuleFlow</code>
 */
class ModuleFlow extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.proto.AstNode source = 1;</code>
     */
    private $source = null;
    /**
     * Generated from protobuf field <code>repeated .proto.AstNode hops = 2;</code>
     */
    private $hops;
    /**
     * Generated from protobuf field <code>.proto.AstNode sink = 3;</code>
     */
    private $sink = null;
    /**
     * Generated from protobuf field <code>.proto.ModuleFlow.FlowInfo info = 4;</code>
     */
    private $info = null;

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

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.ModuleFlow.FlowInfo info = 4;</code>
     * @return \Proto\ModuleFlow\FlowInfo
     */
    public function getInfo()
    {
        return $this->info;
    }

    /**
     * Generated from protobuf field <code>.proto.ModuleFlow.FlowInfo info = 4;</code>
     * @param \Proto\ModuleFlow\FlowInfo $var
     * @return $this
     */
    public function setInfo($var)
    {
        GPBUtil::checkMessage($var, \Proto\ModuleFlow_FlowInfo::class);
        $this->info = $var;

        return $this;
    }

}

