Cloud Firestore V1 Client - Class IndexConfig (1.31.0)

Reference documentation and code samples for the Cloud Firestore V1 Client class IndexConfig.

The index configuration for this field.

Generated from protobuf message google.firestore.admin.v1.Field.IndexConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ indexes array<Google\Cloud\Firestore\Admin\V1\Index>

The indexes supported for this field.

↳ uses_ancestor_config bool

Output only. When true, the Field's index configuration is set from the configuration specified by the ancestor_field. When false, the Field's index configuration is defined explicitly.

↳ ancestor_field string

Output only. Specifies the resource name of the Field from which this field's index configuration is set (when uses_ancestor_config is true), or from which it would be set if this field had no index configuration (when uses_ancestor_config is false).

↳ reverting bool

Output only When true, the Field's index configuration is in the process of being reverted. Once complete, the index config will transition to the same state as the field specified by ancestor_field, at which point uses_ancestor_config will be true and reverting will be false.

getIndexes

The indexes supported for this field.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIndexes

The indexes supported for this field.

Parameter
NameDescription
var array<Google\Cloud\Firestore\Admin\V1\Index>
Returns
TypeDescription
$this

getUsesAncestorConfig

Output only. When true, the Field's index configuration is set from the configuration specified by the ancestor_field.

When false, the Field's index configuration is defined explicitly.

Returns
TypeDescription
bool

setUsesAncestorConfig

Output only. When true, the Field's index configuration is set from the configuration specified by the ancestor_field.

When false, the Field's index configuration is defined explicitly.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAncestorField

Output only. Specifies the resource name of the Field from which this field's index configuration is set (when uses_ancestor_config is true), or from which it would be set if this field had no index configuration (when uses_ancestor_config is false).

Returns
TypeDescription
string

setAncestorField

Output only. Specifies the resource name of the Field from which this field's index configuration is set (when uses_ancestor_config is true), or from which it would be set if this field had no index configuration (when uses_ancestor_config is false).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReverting

Output only When true, the Field's index configuration is in the process of being reverted. Once complete, the index config will transition to the same state as the field specified by ancestor_field, at which point uses_ancestor_config will be true and reverting will be false.

Returns
TypeDescription
bool

setReverting

Output only When true, the Field's index configuration is in the process of being reverted. Once complete, the index config will transition to the same state as the field specified by ancestor_field, at which point uses_ancestor_config will be true and reverting will be false.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this