<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/api/apikeys/v2/apikeys.proto

namespace Google\Cloud\ApiKeys\V2;

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

/**
 * Request message for `LookupKey` method.
 *
 * Generated from protobuf message <code>google.api.apikeys.v2.LookupKeyRequest</code>
 */
class LookupKeyRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Finds the project that owns the key string value.
     *
     * Generated from protobuf field <code>string key_string = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $key_string = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $key_string
     *           Required. Finds the project that owns the key string value.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Finds the project that owns the key string value.
     *
     * Generated from protobuf field <code>string key_string = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getKeyString()
    {
        return $this->key_string;
    }

    /**
     * Required. Finds the project that owns the key string value.
     *
     * Generated from protobuf field <code>string key_string = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setKeyString($var)
    {
        GPBUtil::checkString($var, True);
        $this->key_string = $var;

        return $this;
    }

}

