Reference documentation and code samples for the Cloud Firestore V1 Client class Filter.
A filter.
Generated from protobuf message google.firestore.v1.StructuredQuery.Filter
Namespace
Google \ Cloud \ Firestore \ V1 \ StructuredQueryMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ composite_filter |
CompositeFilter
A composite filter. |
↳ field_filter |
FieldFilter
A filter on a document field. |
↳ unary_filter |
UnaryFilter
A filter that takes exactly one argument. |
getCompositeFilter
A composite filter.
Returns | |
---|---|
Type | Description |
CompositeFilter|null |
hasCompositeFilter
setCompositeFilter
A composite filter.
Parameter | |
---|---|
Name | Description |
var |
CompositeFilter
|
Returns | |
---|---|
Type | Description |
$this |
getFieldFilter
A filter on a document field.
Returns | |
---|---|
Type | Description |
FieldFilter|null |
hasFieldFilter
setFieldFilter
A filter on a document field.
Parameter | |
---|---|
Name | Description |
var |
FieldFilter
|
Returns | |
---|---|
Type | Description |
$this |
getUnaryFilter
A filter that takes exactly one argument.
Returns | |
---|---|
Type | Description |
UnaryFilter|null |
hasUnaryFilter
setUnaryFilter
A filter that takes exactly one argument.
Parameter | |
---|---|
Name | Description |
var |
UnaryFilter
|
Returns | |
---|---|
Type | Description |
$this |
getFilterType
Returns | |
---|---|
Type | Description |
string |