Reference documentation and code samples for the Google Cloud Retail V2 Client class QueryTerm.
Query terms that we want to match on.
Generated from protobuf message google.cloud.retail.v2.Condition.QueryTerm
Namespace
Google \ Cloud \ Retail \ V2 \ ConditionMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ value |
string
The value of the term to match on. Value cannot be empty. Value can have at most 3 terms if specified as a partial match. Each space separated string is considered as one term. For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms and not allowed for a partial match. |
↳ full_match |
bool
Whether this is supposed to be a full or partial match. |
getValue
The value of the term to match on.
Value cannot be empty. Value can have at most 3 terms if specified as a partial match. Each space separated string is considered as one term. For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms and not allowed for a partial match.
| Returns | |
|---|---|
| Type | Description |
string |
|
setValue
The value of the term to match on.
Value cannot be empty. Value can have at most 3 terms if specified as a partial match. Each space separated string is considered as one term. For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms and not allowed for a partial match.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFullMatch
Whether this is supposed to be a full or partial match.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setFullMatch
Whether this is supposed to be a full or partial match.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|