Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class Criteria.
Filter criteria applied to current search results.
Generated from protobuf message google.cloud.visionai.v1.Criteria
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text_array
↳ int_range_array
↳ float_range_array
↳ date_time_range_array
↳ geo_location_array
↳ bool_value
↳ field
string
The UGA field or ML field to apply filtering criteria.
↳ fetch_matched_annotations
bool
If true, return query matched annotations for this criteria. This option is only applicable for inclusion criteria, i.e., not exclusion criteria, with partition level annotations. It supports the following data types: - INTEGER - FLOAT - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only) - BOOLEAN
getTextArray
The text values associated with the field.
hasTextArray
setTextArray
The text values associated with the field.
$this
getIntRangeArray
The integer ranges associated with the field.
hasIntRangeArray
setIntRangeArray
The integer ranges associated with the field.
$this
getFloatRangeArray
The float ranges associated with the field.
hasFloatRangeArray
setFloatRangeArray
The float ranges associated with the field.
$this
getDateTimeRangeArray
The datetime ranges associated with the field.
hasDateTimeRangeArray
setDateTimeRangeArray
The datetime ranges associated with the field.
$this
getGeoLocationArray
Geo Location array.
hasGeoLocationArray
setGeoLocationArray
Geo Location array.
$this
getBoolValue
A Boolean value.
hasBoolValue
setBoolValue
A Boolean value.
$this
getField
The UGA field or ML field to apply filtering criteria.
string
setField
The UGA field or ML field to apply filtering criteria.
var
string
$this
getFetchMatchedAnnotations
If true, return query matched annotations for this criteria.
This option is only applicable for inclusion criteria, i.e., not exclusion criteria, with partition level annotations. It supports the following data types:
- INTEGER
- FLOAT
- STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
- BOOLEAN
bool
setFetchMatchedAnnotations
If true, return query matched annotations for this criteria.
This option is only applicable for inclusion criteria, i.e., not exclusion criteria, with partition level annotations. It supports the following data types:
- INTEGER
- FLOAT
- STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
- BOOLEAN
var
bool
$this
getValue
string

