<?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 DocmentRef.Delete
 * </pre>
 *
 * Protobuf type <code>tests.DeleteTest</code>
 */
class DeleteTest extends \Google\Protobuf\Internal\Message
{
    /**
     * <pre>
     * path of doc
     * </pre>
     *
     * <code>string doc_ref_path = 1;</code>
     */
    private $doc_ref_path = '';
    /**
     * <code>.google.firestore.v1beta1.Precondition precondition = 2;</code>
     */
    private $precondition = null;
    /**
     * <pre>
     * expected rquest
     * </pre>
     *
     * <code>.google.firestore.v1beta1.CommitRequest request = 3;</code>
     */
    private $request = null;
    /**
     * <pre>
     * call signals an error
     * </pre>
     *
     * <code>bool is_error = 4;</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;
    }

    /**
     * <code>.google.firestore.v1beta1.Precondition precondition = 2;</code>
     */
    public function getPrecondition()
    {
        return $this->precondition;
    }

    /**
     * <code>.google.firestore.v1beta1.Precondition precondition = 2;</code>
     */
    public function setPrecondition(&$var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\Precondition::class);
        $this->precondition = $var;
    }

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

    /**
     * <pre>
     * expected rquest
     * </pre>
     *
     * <code>.google.firestore.v1beta1.CommitRequest request = 3;</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 = 4;</code>
     */
    public function getIsError()
    {
        return $this->is_error;
    }

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

}

