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

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

        return $this;
    }
public function setState ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Firestore \ Admin \ V1 \ Index_State :: class ) ; $ this -> state = $ var ; return $ this ; }
Output only.
The serving state of the index.

Generated from protobuf field <code>.google.firestore.admin.v1.Index.State state = 4;</code>
@param int $var
@return $this
Output only . The serving state of the index .