Cloud Firestore V1 Client - Class IndexField (1.38.0)

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

A field in an index.

The field_path describes which field is indexed, the value_mode describes how the field value is indexed.

Generated from protobuf message google.firestore.admin.v1.Index.IndexField

Namespace

Google \ Cloud \ Firestore \ Admin \ V1 \ Index

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ field_path string

Can be name. For single field indexes, this must match the name of the field or may be omitted.

↳ order int

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

↳ array_config int

Indicates that this field supports operations on array_values.

getFieldPath

Can be name.

For single field indexes, this must match the name of the field or may be omitted.

Returns
TypeDescription
string

setFieldPath

Can be name.

For single field indexes, this must match the name of the field or may be omitted.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOrder

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

Returns
TypeDescription
int

hasOrder

setOrder

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getArrayConfig

Indicates that this field supports operations on array_values.

Returns
TypeDescription
int

hasArrayConfig

setArrayConfig

Indicates that this field supports operations on array_values.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getValueMode

Returns
TypeDescription
string