<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: test.proto

namespace Tests;

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

/**
 * <pre>
 * Call to the DocumentRef.Get method.
 * </pre>
 *
 * Protobuf type <code>tests.GetTest</code>
 */
class GetTest extends \Google\Protobuf\Internal\Message
{
    /**
     * <pre>
     * The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"
     * </pre>
     *
     * <code>string doc_ref_path = 1;</code>
     */
    private $doc_ref_path = '';
    /**
     * <pre>
     * The request that the call should send to the Firestore service.
     * </pre>
     *
     * <code>.google.firestore.v1beta1.GetDocumentRequest request = 2;</code>
     */
    private $request = null;

    public function __construct() {
        \GPBMetadata\Test::initOnce();
        parent::__construct();
    }

    /**
     * <pre>
     * The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"
     * </pre>
     *
     * <code>string doc_ref_path = 1;</code>
     */
    public function getDocRefPath()
    {
        return $this->doc_ref_path;
    }

    /**
     * <pre>
     * The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"
     * </pre>
     *
     * <code>string doc_ref_path = 1;</code>
     */
    public function setDocRefPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->doc_ref_path = $var;
    }

    /**
     * <pre>
     * The request that the call should send to the Firestore service.
     * </pre>
     *
     * <code>.google.firestore.v1beta1.GetDocumentRequest request = 2;</code>
     */
    public function getRequest()
    {
        return $this->request;
    }

    /**
     * <pre>
     * The request that the call should send to the Firestore service.
     * </pre>
     *
     * <code>.google.firestore.v1beta1.GetDocumentRequest request = 2;</code>
     */
    public function setRequest(&$var)
    {
        GPBUtil::checkMessage($var, \Google\Firestore\V1beta1\GetDocumentRequest::class);
        $this->request = $var;
    }

}

