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

namespace Keyapis\IdentityB2b\V1;

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

/**
 * Капча
 *
 * Generated from protobuf message <code>keyapis.identity_b2b.v1.Captcha</code>
 */
class Captcha extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор капчи
     *
     * Generated from protobuf field <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $id = '';
    /**
     * Ссылка на капчу
     *
     * Generated from protobuf field <code>string url = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *           Идентификатор капчи
     *     @type string $url
     *           Ссылка на капчу
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\IdentityB2B\V1\KeyapisIdentityB2BAuthorizationV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор капчи
     *
     * Generated from protobuf field <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

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

        return $this;
    }

    /**
     * Ссылка на капчу
     *
     * Generated from protobuf field <code>string url = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * Ссылка на капчу
     *
     * Generated from protobuf field <code>string url = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->url = $var;

        return $this;
    }

}

