<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: core/contract/smart_contract.proto

namespace Protocol\SmartContract\ABI\Entry;

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

/**
 * Generated from protobuf message <code>protocol.SmartContract.ABI.Entry.Param</code>
 */
class Param extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool indexed = 1;</code>
     */
    protected $indexed = false;
    /**
     * Generated from protobuf field <code>string name = 2;</code>
     */
    protected $name = '';
    /**
     * SolidityType type = 3;
     *
     * Generated from protobuf field <code>string type = 3;</code>
     */
    protected $type = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $indexed
     *     @type string $name
     *     @type string $type
     *           SolidityType type = 3;
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Core\Contract\SmartContract::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bool indexed = 1;</code>
     * @return bool
     */
    public function getIndexed()
    {
        return $this->indexed;
    }

    /**
     * Generated from protobuf field <code>bool indexed = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setIndexed($var)
    {
        GPBUtil::checkBool($var);
        $this->indexed = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string name = 2;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

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

        return $this;
    }

    /**
     * SolidityType type = 3;
     *
     * Generated from protobuf field <code>string type = 3;</code>
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }

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

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Param::class, \Protocol\SmartContract_ABI_Entry_Param::class);

