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

namespace Keyapis\Multiapp\V1;

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

/**
 * Запрос получения токена
 *
 * Generated from protobuf message <code>keyapis.multiapp.v1.GetPartnerTokenRequest</code>
 */
class GetPartnerTokenRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Код.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $code = '';
    /**
     * Тип ответа.
     * # Допустимые значения: "id_token", "token", "id_token token"
     *
     * Generated from protobuf field <code>string response = 2 [json_name = "response_type", (.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $response = '';
    /**
     * Ваучер
     *
     * Generated from protobuf field <code>string nonce = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $nonce = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $code
     *           Код.
     *           # Тип: Guid
     *     @type string $response
     *           Тип ответа.
     *           # Допустимые значения: "id_token", "token", "id_token token"
     *     @type string $nonce
     *           Ваучер
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Multiapp\V1\KeyapisMultiappPartnerV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Код.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Код.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->code = $var;

        return $this;
    }

    /**
     * Тип ответа.
     * # Допустимые значения: "id_token", "token", "id_token token"
     *
     * Generated from protobuf field <code>string response = 2 [json_name = "response_type", (.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getResponse()
    {
        return $this->response;
    }

    /**
     * Тип ответа.
     * # Допустимые значения: "id_token", "token", "id_token token"
     *
     * Generated from protobuf field <code>string response = 2 [json_name = "response_type", (.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setResponse($var)
    {
        GPBUtil::checkString($var, True);
        $this->response = $var;

        return $this;
    }

    /**
     * Ваучер
     *
     * Generated from protobuf field <code>string nonce = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getNonce()
    {
        return $this->nonce;
    }

    /**
     * Ваучер
     *
     * Generated from protobuf field <code>string nonce = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setNonce($var)
    {
        GPBUtil::checkString($var, True);
        $this->nonce = $var;

        return $this;
    }

}

