A document that was requested.

Generated from protobuf field <code>.google.firestore.v1.Document found = 1;</code>
@param \Google\Cloud\Firestore\V1\Document $var
@return $this
965416
public function setFound($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Document::class);
        $this->writeOneof(1, $var);

        return $this;
    }
416654
public function setSessions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Spanner\V1\Session::class);
        $this->sessions = $arr;

        return $this;
    }
837003
public function setStructuredQuery($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\StructuredQuery::class);
        $this->writeOneof(2, $var);

        return $this;
    }
518659
public function setOrder($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Index_IndexField_Order::class);
        $this->writeOneof(2, $var);

        return $this;
    }
292608
public function setReadOnly($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\TransactionOptions_ReadOnly::class);
        $this->writeOneof(2, $var);

        return $this;
    }
31194
public function setInstance($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Redis\V1\Instance::class);
        $this->instance = $var;

        return $this;
    }
149945
public function setDocumentChange($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentChange::class);
        $this->writeOneof(3, $var);

        return $this;
    }
1314354
public function setFields($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class);
        $this->fields = $arr;

        return $this;
    }
626165
public function setWebDetection($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\WebDetection::class);
        $this->web_detection = $var;

        return $this;
    }
1212579
public function setAssets($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\TemporalAsset::class);
        $this->assets = $arr;

        return $this;
    }
715380
public function setEvent($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ReportedErrorEvent::class);
        $this->event = $var;

        return $this;
    }
902137
public function setMethod($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\MethodDescriptorProto::class);
        $this->method = $arr;
        $this->has_method = true;

        return $this;
    }
898850
public function setText($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Language\V1\TextSpan::class);
        $this->text = $var;

        return $this;
    }
787092
public function setGerrit($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\GerritSourceContext::class);
        $this->writeOneof(3, $var);

        return $this;
    }
1084984
public function setMoreResults($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\QueryResultBatch_MoreResultsType::class);
        $this->more_results = $var;

        return $this;
    }
16279
public function setProperty($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\TextAnnotation_TextProperty::class);
        $this->property = $var;

        return $this;
    }
948364
public function setOptions($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\TransactionOptions::class);
        $this->options = $var;

        return $this;
    }