<?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.Auth</code>
 */
class Auth extends \Google\Protobuf\Internal\Message
{
    /**
     * Закодированные клиентские данные
     *
     * Generated from protobuf field <code>string struct = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $struct = '';
    /**
     * Сгенерированный hash
     *
     * Generated from protobuf field <code>string hash = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $hash = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $struct
     *           Закодированные клиентские данные
     *     @type string $hash
     *           Сгенерированный hash
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Omnichat\V1\KeyapisOmnichatV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Закодированные клиентские данные
     *
     * Generated from protobuf field <code>string struct = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getStruct()
    {
        return $this->struct;
    }

    /**
     * Закодированные клиентские данные
     *
     * Generated from protobuf field <code>string struct = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setStruct($var)
    {
        GPBUtil::checkString($var, True);
        $this->struct = $var;

        return $this;
    }

    /**
     * Сгенерированный hash
     *
     * Generated from protobuf field <code>string hash = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getHash()
    {
        return $this->hash;
    }

    /**
     * Сгенерированный hash
     *
     * Generated from protobuf field <code>string hash = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setHash($var)
    {
        GPBUtil::checkString($var, True);
        $this->hash = $var;

        return $this;
    }

}

