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
496437
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Index_State::class);
        $this->state = $var;

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

        return $this;
    }
872859
public function setIndexes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\Index::class);
        $this->indexes = $arr;

        return $this;
    }
138132
public function setField($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Field::class);
        $this->field = $var;

        return $this;
    }
1250268
public function setGqlQuery($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\GqlQuery::class);
        $this->writeOneof(7, $var);

        return $this;
    }
557936
public function setSubscription($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\PubSub\V1\Subscription::class);
        $this->subscription = $var;

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

        return $this;
    }
1181168
public function setWindow($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenanceWindow::class);
        $this->window = $var;

        return $this;
    }
518831
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJob_JobState::class);
        $this->state = $var;

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

        return $this;
    }
197512
public function setReason($var)
    {
        GPBUtil::checkEnum($var, \Rxnet\EventStore\Data\NotHandled_NotHandledReason::class);
        $this->reason = $var;

        return $this;
    }
692666
public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool_Status::class);
        $this->status = $var;

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

        return $this;
    }
398255
public function setResource($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1beta1\Resource::class);
        $this->resource = $var;

        return $this;
    }
515200
public function setBatch($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\QueryResultBatch::class);
        $this->batch = $var;

        return $this;
    }
360516
public function setPubsubTarget($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Scheduler\V1beta1\PubsubTarget::class);
        $this->writeOneof(4, $var);

        return $this;
    }
52237
public function setSetToServerValue($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1beta1\DocumentTransform_FieldTransform_ServerValue::class);
        $this->writeOneof(2, $var);

        return $this;
    }