<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\SyncActionValue;

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

/**
 * Generated from protobuf message <code>proto.SyncActionValue.PaymentTosAction</code>
 */
class PaymentTosAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.PaymentTosAction.PaymentNotice paymentNotice = 1;</code>
     */
    protected $paymentNotice = null;
    /**
     * Generated from protobuf field <code>optional bool accepted = 2;</code>
     */
    protected $accepted = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $paymentNotice
     *     @type bool $accepted
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.PaymentTosAction.PaymentNotice paymentNotice = 1;</code>
     * @return int
     */
    public function getPaymentNotice()
    {
        return isset($this->paymentNotice) ? $this->paymentNotice : 0;
    }

    public function hasPaymentNotice()
    {
        return isset($this->paymentNotice);
    }

    public function clearPaymentNotice()
    {
        unset($this->paymentNotice);
    }

    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.PaymentTosAction.PaymentNotice paymentNotice = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPaymentNotice($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\SyncActionValue\PaymentTosAction\PaymentNotice::class);
        $this->paymentNotice = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool accepted = 2;</code>
     * @return bool
     */
    public function getAccepted()
    {
        return isset($this->accepted) ? $this->accepted : false;
    }

    public function hasAccepted()
    {
        return isset($this->accepted);
    }

    public function clearAccepted()
    {
        unset($this->accepted);
    }

    /**
     * Generated from protobuf field <code>optional bool accepted = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setAccepted($var)
    {
        GPBUtil::checkBool($var);
        $this->accepted = $var;

        return $this;
    }

}

