<?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>
 * A call to DocumentRef.Set.
 * </pre>
 *
 * Protobuf type <code>tests.SetTest</code>
 */
class SetTest extends \Google\Protobuf\Internal\Message
{
    /**
     * <pre>
     * path of doc
     * </pre>
     *
     * <code>string doc_ref_path = 1;</code>
     */
    private $doc_ref_path = '';
    /**
     * <pre>
     * option to the Set call, if any
     * </pre>
     *
     * <code>.tests.SetOption option = 2;</code>
     */
    private $option = null;
    /**
     * <pre>
     * data (see CreateTest.json_data)
     * </pre>
     *
     * <code>string json_data = 3;</code>
     */
    private $json_data = '';
    /**
     * <pre>
     * expected request
     * </pre>
     *
     * <code>.google.firestore.v1beta1.CommitRequest request = 4;</code>
     */
    private $request = null;
    /**
     * <pre>
     * call signals an error
     * </pre>
     *
     * <code>bool is_error = 5;</code>
     */
    private $is_error = false;

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

    /**
     * <pre>
     * path of doc
     * </pre>
     *
     * <code>string doc_ref_path = 1;</code>
     */
    public function getDocRefPath()
    {
        return $this->doc_ref_path;
    }

    /**
     * <pre>
     * path of doc
     * </pre>
     *
     * <code>string doc_ref_path = 1;</code>
     */
    public function setDocRefPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->doc_ref_path = $var;
    }

    /**
     * <pre>
     * option to the Set call, if any
     * </pre>
     *
     * <code>.tests.SetOption option = 2;</code>
     */
    public function getOption()
    {
        return $this->option;
    }

    /**
     * <pre>
     * option to the Set call, if any
     * </pre>
     *
     * <code>.tests.SetOption option = 2;</code>
     */
    public function setOption(&$var)
    {
        GPBUtil::checkMessage($var, \Tests\SetOption::class);
        $this->option = $var;
    }

    /**
     * <pre>
     * data (see CreateTest.json_data)
     * </pre>
     *
     * <code>string json_data = 3;</code>
     */
    public function getJsonData()
    {
        return $this->json_data;
    }

    /**
     * <pre>
     * data (see CreateTest.json_data)
     * </pre>
     *
     * <code>string json_data = 3;</code>
     */
    public function setJsonData($var)
    {
        GPBUtil::checkString($var, True);
        $this->json_data = $var;
    }

    /**
     * <pre>
     * expected request
     * </pre>
     *
     * <code>.google.firestore.v1beta1.CommitRequest request = 4;</code>
     */
    public function getRequest()
    {
        return $this->request;
    }

    /**
     * <pre>
     * expected request
     * </pre>
     *
     * <code>.google.firestore.v1beta1.CommitRequest request = 4;</code>
     */
    public function setRequest(&$var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\CommitRequest::class);
        $this->request = $var;
    }

    /**
     * <pre>
     * call signals an error
     * </pre>
     *
     * <code>bool is_error = 5;</code>
     */
    public function getIsError()
    {
        return $this->is_error;
    }

    /**
     * <pre>
     * call signals an error
     * </pre>
     *
     * <code>bool is_error = 5;</code>
     */
    public function setIsError($var)
    {
        GPBUtil::checkBool($var);
        $this->is_error = $var;
    }

}

