Firestore/src/Admin/V1/Index.php
public function setQueryScope($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Index_QueryScope::class);
        $this->query_scope = $var;

        return $this;
    }
public function setQueryScope($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Index_QueryScope::class);
        $this->query_scope = $var;

        return $this;
    }
public function setQueryScope ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Firestore \ Admin \ V1 \ Index_QueryScope :: class ) ; $ this -> query_scope = $ var ; return $ this ; }
Indexes with a collection query scope specified allow queries
against a collection that is the child of a specific document, specified at
query time, and that has the same collection id.
Indexes with a collection group query scope specified allow queries against
all collections descended from a specific document, specified at query
time, and that have the same collection id as this index.

Generated from protobuf field <code>.google.firestore.admin.v1.Index.QueryScope query_scope = 2;</code>
@param int $var
@return $this
Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document specified at query time and that has the same collection id . Indexes with a collection group query scope specified allow queries against all collections descended from a specific document specified at query time and that have the same collection id as this index .