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

namespace Protocol\Transaction;

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

/**
 * Generated from protobuf message <code>protocol.Transaction.Result</code>
 */
class Result extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 fee = 1;</code>
     */
    protected $fee = 0;
    /**
     * Generated from protobuf field <code>.protocol.Transaction.Result.code ret = 2;</code>
     */
    protected $ret = 0;
    /**
     * Generated from protobuf field <code>.protocol.Transaction.Result.contractResult contractRet = 3;</code>
     */
    protected $contractRet = 0;
    /**
     * Generated from protobuf field <code>string assetIssueID = 14;</code>
     */
    protected $assetIssueID = '';
    /**
     * Generated from protobuf field <code>int64 withdraw_amount = 15;</code>
     */
    protected $withdraw_amount = 0;
    /**
     * Generated from protobuf field <code>int64 unfreeze_amount = 16;</code>
     */
    protected $unfreeze_amount = 0;
    /**
     * Generated from protobuf field <code>int64 exchange_received_amount = 18;</code>
     */
    protected $exchange_received_amount = 0;
    /**
     * Generated from protobuf field <code>int64 exchange_inject_another_amount = 19;</code>
     */
    protected $exchange_inject_another_amount = 0;
    /**
     * Generated from protobuf field <code>int64 exchange_withdraw_another_amount = 20;</code>
     */
    protected $exchange_withdraw_another_amount = 0;
    /**
     * Generated from protobuf field <code>int64 exchange_id = 21;</code>
     */
    protected $exchange_id = 0;
    /**
     * Generated from protobuf field <code>int64 shielded_transaction_fee = 22;</code>
     */
    protected $shielded_transaction_fee = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $fee
     *     @type int $ret
     *     @type int $contractRet
     *     @type string $assetIssueID
     *     @type int|string $withdraw_amount
     *     @type int|string $unfreeze_amount
     *     @type int|string $exchange_received_amount
     *     @type int|string $exchange_inject_another_amount
     *     @type int|string $exchange_withdraw_another_amount
     *     @type int|string $exchange_id
     *     @type int|string $shielded_transaction_fee
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Core\Tron::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int64 fee = 1;</code>
     * @return int|string
     */
    public function getFee()
    {
        return $this->fee;
    }

    /**
     * Generated from protobuf field <code>int64 fee = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFee($var)
    {
        GPBUtil::checkInt64($var);
        $this->fee = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.protocol.Transaction.Result.code ret = 2;</code>
     * @return int
     */
    public function getRet()
    {
        return $this->ret;
    }

    /**
     * Generated from protobuf field <code>.protocol.Transaction.Result.code ret = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setRet($var)
    {
        GPBUtil::checkEnum($var, \Protocol\Transaction\Result\code::class);
        $this->ret = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.protocol.Transaction.Result.contractResult contractRet = 3;</code>
     * @return int
     */
    public function getContractRet()
    {
        return $this->contractRet;
    }

    /**
     * Generated from protobuf field <code>.protocol.Transaction.Result.contractResult contractRet = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setContractRet($var)
    {
        GPBUtil::checkEnum($var, \Protocol\Transaction\Result\contractResult::class);
        $this->contractRet = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string assetIssueID = 14;</code>
     * @return string
     */
    public function getAssetIssueID()
    {
        return $this->assetIssueID;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 withdraw_amount = 15;</code>
     * @return int|string
     */
    public function getWithdrawAmount()
    {
        return $this->withdraw_amount;
    }

    /**
     * Generated from protobuf field <code>int64 withdraw_amount = 15;</code>
     * @param int|string $var
     * @return $this
     */
    public function setWithdrawAmount($var)
    {
        GPBUtil::checkInt64($var);
        $this->withdraw_amount = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 unfreeze_amount = 16;</code>
     * @return int|string
     */
    public function getUnfreezeAmount()
    {
        return $this->unfreeze_amount;
    }

    /**
     * Generated from protobuf field <code>int64 unfreeze_amount = 16;</code>
     * @param int|string $var
     * @return $this
     */
    public function setUnfreezeAmount($var)
    {
        GPBUtil::checkInt64($var);
        $this->unfreeze_amount = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 exchange_received_amount = 18;</code>
     * @return int|string
     */
    public function getExchangeReceivedAmount()
    {
        return $this->exchange_received_amount;
    }

    /**
     * Generated from protobuf field <code>int64 exchange_received_amount = 18;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExchangeReceivedAmount($var)
    {
        GPBUtil::checkInt64($var);
        $this->exchange_received_amount = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 exchange_inject_another_amount = 19;</code>
     * @return int|string
     */
    public function getExchangeInjectAnotherAmount()
    {
        return $this->exchange_inject_another_amount;
    }

    /**
     * Generated from protobuf field <code>int64 exchange_inject_another_amount = 19;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExchangeInjectAnotherAmount($var)
    {
        GPBUtil::checkInt64($var);
        $this->exchange_inject_another_amount = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 exchange_withdraw_another_amount = 20;</code>
     * @return int|string
     */
    public function getExchangeWithdrawAnotherAmount()
    {
        return $this->exchange_withdraw_another_amount;
    }

    /**
     * Generated from protobuf field <code>int64 exchange_withdraw_another_amount = 20;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExchangeWithdrawAnotherAmount($var)
    {
        GPBUtil::checkInt64($var);
        $this->exchange_withdraw_another_amount = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 exchange_id = 21;</code>
     * @return int|string
     */
    public function getExchangeId()
    {
        return $this->exchange_id;
    }

    /**
     * Generated from protobuf field <code>int64 exchange_id = 21;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExchangeId($var)
    {
        GPBUtil::checkInt64($var);
        $this->exchange_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 shielded_transaction_fee = 22;</code>
     * @return int|string
     */
    public function getShieldedTransactionFee()
    {
        return $this->shielded_transaction_fee;
    }

    /**
     * Generated from protobuf field <code>int64 shielded_transaction_fee = 22;</code>
     * @param int|string $var
     * @return $this
     */
    public function setShieldedTransactionFee($var)
    {
        GPBUtil::checkInt64($var);
        $this->shielded_transaction_fee = $var;

        return $this;
    }

}

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

