<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/invoice/v1/keyapis_invoice_invoice_v1.proto

namespace Keyapis\Invoice\V1;

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

/**
 * Фильтр инвойсов
 *
 * Generated from protobuf message <code>keyapis.invoice.v1.InvoiceFilter</code>
 */
class InvoiceFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор пользователя
     *
     * Generated from protobuf field <code>int32 user_id = 1;</code>
     */
    protected $user_id = 0;
    /**
     * Статус платежа
     *
     * Generated from protobuf field <code>.keyapis.invoice.v1.Invoice.InvoiceStatusType invoice_status_type = 2;</code>
     */
    protected $invoice_status_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $user_id
     *           Идентификатор пользователя
     *     @type int $invoice_status_type
     *           Статус платежа
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Invoice\V1\KeyapisInvoiceInvoiceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор пользователя
     *
     * Generated from protobuf field <code>int32 user_id = 1;</code>
     * @return int
     */
    public function getUserId()
    {
        return $this->user_id;
    }

    /**
     * Идентификатор пользователя
     *
     * Generated from protobuf field <code>int32 user_id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setUserId($var)
    {
        GPBUtil::checkInt32($var);
        $this->user_id = $var;

        return $this;
    }

    /**
     * Статус платежа
     *
     * Generated from protobuf field <code>.keyapis.invoice.v1.Invoice.InvoiceStatusType invoice_status_type = 2;</code>
     * @return int
     */
    public function getInvoiceStatusType()
    {
        return $this->invoice_status_type;
    }

    /**
     * Статус платежа
     *
     * Generated from protobuf field <code>.keyapis.invoice.v1.Invoice.InvoiceStatusType invoice_status_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setInvoiceStatusType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\Invoice\V1\Invoice\InvoiceStatusType::class);
        $this->invoice_status_type = $var;

        return $this;
    }

}

