Indicates that this field supports ordering by the specified order or
comparing using =, <, <=, >, >=.

Generated from protobuf field <code>.google.firestore.admin.v1.Index.IndexField.Order order = 2;</code>
@param int $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;
    }
52237
public function setSetToServerValue($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1beta1\DocumentTransform_FieldTransform_ServerValue::class);
        $this->writeOneof(2, $var);

        return $this;
    }
618230
public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1beta2\Document_Type::class);
        $this->type = $var;

        return $this;
    }
100593
public function setDirection($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\PropertyOrder_Direction::class);
        $this->direction = $var;

        return $this;
    }
104490
public function setCompositeFilter($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\StructuredQuery_CompositeFilter::class);
        $this->writeOneof(1, $var);

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

        return $this;
    }
1296279
public function setMapValue($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\MapValue::class);
        $this->writeOneof(6, $var);

        return $this;
    }
988724
public function setReadConsistency($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\ReadOptions_ReadConsistency::class);
        $this->writeOneof(1, $var);

        return $this;
    }
142563
public function setUpdate($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\Document::class);
        $this->writeOneof(1, $var);

        return $this;
    }
8960
public function setOp($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\StructuredQuery_UnaryFilter_Operator::class);
        $this->op = $var;

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

        return $this;
    }
1354124
public function setTables($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Table::class);
        $this->tables = $arr;

        return $this;
    }
905953
public function setReadOptions($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ReadOptions::class);
        $this->read_options = $var;

        return $this;
    }
5998
public function setValue($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\Value::class);
        $this->value = $var;

        return $this;
    }
890261
public function setInstance($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Instance::class);
        $this->instance = $var;

        return $this;
    }
188842
public function setAddTarget($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Target::class);
        $this->writeOneof(2, $var);

        return $this;
    }
1256716
public function setPages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\Page::class);
        $this->pages = $arr;

        return $this;
    }