<?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.GetInvoiceRequest</code>
 */
class GetInvoiceRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор платежа в Ключе.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string invoice_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $invoice_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $invoice_id
     *           Идентификатор платежа в Ключе.
     *           # Тип: Guid
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Invoice\V1\KeyapisInvoiceInvoiceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор платежа в Ключе.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string invoice_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getInvoiceId()
    {
        return $this->invoice_id;
    }

    /**
     * Идентификатор платежа в Ключе.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string invoice_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setInvoiceId($var)
    {
        GPBUtil::checkString($var, True);
        $this->invoice_id = $var;

        return $this;
    }

}

