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

namespace Protocol;

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

/**
 * Generated from protobuf message <code>protocol.ProposalApproveContract</code>
 */
class ProposalApproveContract extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bytes owner_address = 1;</code>
     */
    protected $owner_address = '';
    /**
     * Generated from protobuf field <code>int64 proposal_id = 2;</code>
     */
    protected $proposal_id = 0;
    /**
     * add or remove approval
     *
     * Generated from protobuf field <code>bool is_add_approval = 3;</code>
     */
    protected $is_add_approval = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $owner_address
     *     @type int|string $proposal_id
     *     @type bool $is_add_approval
     *           add or remove approval
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Core\Contract\ProposalContract::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * add or remove approval
     *
     * Generated from protobuf field <code>bool is_add_approval = 3;</code>
     * @return bool
     */
    public function getIsAddApproval()
    {
        return $this->is_add_approval;
    }

    /**
     * add or remove approval
     *
     * Generated from protobuf field <code>bool is_add_approval = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsAddApproval($var)
    {
        GPBUtil::checkBool($var);
        $this->is_add_approval = $var;

        return $this;
    }

}

