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

namespace Keyapis\Omnichat\V1;

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

/**
 * Ответ на запрос получения хешированной информации о пользователе
 *
 * Generated from protobuf message <code>keyapis.omnichat.v1.GetAuthResponse</code>
 */
class GetAuthResponse extends \Google\Protobuf\Internal\Message
{
    protected $type;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\Omnichat\V1\Auth $data
     *           Омничат
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Omnichat\V1\KeyapisOmnichatV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Омничат
     *
     * Generated from protobuf field <code>.keyapis.omnichat.v1.Auth data = 1;</code>
     * @return \Keyapis\Omnichat\V1\Auth|null
     */
    public function getData()
    {
        return $this->readOneof(1);
    }

    public function hasData()
    {
        return $this->hasOneof(1);
    }

    /**
     * Омничат
     *
     * Generated from protobuf field <code>.keyapis.omnichat.v1.Auth data = 1;</code>
     * @param \Keyapis\Omnichat\V1\Auth $var
     * @return $this
     */
    public function setData($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Omnichat\V1\Auth::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getType()
    {
        return $this->whichOneof("type");
    }

}

