Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class Expression.
The expression denoting the filter that was extracted from the input query.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchResponse \ NaturalLanguageQueryUnderstandingInfo \ StructuredExtractedFilterMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ string_constraint |
StringConstraint
String constraint expression. |
↳ number_constraint |
NumberConstraint
Numerical constraint expression. |
↳ geolocation_constraint |
GeolocationConstraint
Geolocation constraint expression. |
↳ and_expr |
AndExpression
Logical "And" compound operator connecting multiple expressions. |
↳ or_expr |
OrExpression
Logical "Or" compound operator connecting multiple expressions. |
getStringConstraint
String constraint expression.
| Returns | |
|---|---|
| Type | Description |
StringConstraint|null |
|
hasStringConstraint
setStringConstraint
String constraint expression.
| Parameter | |
|---|---|
| Name | Description |
var |
StringConstraint
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNumberConstraint
Numerical constraint expression.
| Returns | |
|---|---|
| Type | Description |
NumberConstraint|null |
|
hasNumberConstraint
setNumberConstraint
Numerical constraint expression.
| Parameter | |
|---|---|
| Name | Description |
var |
NumberConstraint
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGeolocationConstraint
Geolocation constraint expression.
| Returns | |
|---|---|
| Type | Description |
GeolocationConstraint|null |
|
hasGeolocationConstraint
setGeolocationConstraint
Geolocation constraint expression.
| Parameter | |
|---|---|
| Name | Description |
var |
GeolocationConstraint
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAndExpr
Logical "And" compound operator connecting multiple expressions.
| Returns | |
|---|---|
| Type | Description |
AndExpression|null |
|
hasAndExpr
setAndExpr
Logical "And" compound operator connecting multiple expressions.
| Parameter | |
|---|---|
| Name | Description |
var |
AndExpression
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOrExpr
Logical "Or" compound operator connecting multiple expressions.
| Returns | |
|---|---|
| Type | Description |
OrExpression|null |
|
hasOrExpr
setOrExpr
Logical "Or" compound operator connecting multiple expressions.
| Parameter | |
|---|---|
| Name | Description |
var |
OrExpression
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getExpr
| Returns | |
|---|---|
| Type | Description |
string |
|