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 messagegoogle.cloud.retail.v2.Condition.QueryTerm
Namespace
Google \ Cloud \ Retail \ V2 \ Condition
Methods
__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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Retail V2 Client - Class QueryTerm (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-retail/latest/V2.Condition.QueryTerm)\n- [2.3.0](/php/docs/reference/cloud-retail/2.3.0/V2.Condition.QueryTerm)\n- [2.2.1](/php/docs/reference/cloud-retail/2.2.1/V2.Condition.QueryTerm)\n- [2.1.3](/php/docs/reference/cloud-retail/2.1.3/V2.Condition.QueryTerm)\n- [2.0.0](/php/docs/reference/cloud-retail/2.0.0/V2.Condition.QueryTerm)\n- [1.7.0](/php/docs/reference/cloud-retail/1.7.0/V2.Condition.QueryTerm)\n- [1.6.4](/php/docs/reference/cloud-retail/1.6.4/V2.Condition.QueryTerm)\n- [1.5.0](/php/docs/reference/cloud-retail/1.5.0/V2.Condition.QueryTerm)\n- [1.4.2](/php/docs/reference/cloud-retail/1.4.2/V2.Condition.QueryTerm)\n- [1.3.1](/php/docs/reference/cloud-retail/1.3.1/V2.Condition.QueryTerm)\n- [1.2.1](/php/docs/reference/cloud-retail/1.2.1/V2.Condition.QueryTerm)\n- [1.1.1](/php/docs/reference/cloud-retail/1.1.1/V2.Condition.QueryTerm)\n- [1.0.1](/php/docs/reference/cloud-retail/1.0.1/V2.Condition.QueryTerm) \nReference documentation and code samples for the Google Cloud Retail V2 Client class QueryTerm.\n\nQuery terms that we want to match on.\n\nGenerated from protobuf message `google.cloud.retail.v2.Condition.QueryTerm`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Retail \\\\ V2 \\\\ Condition\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getValue\n\nThe value of the term to match on.\n\nValue cannot be empty.\nValue can have at most 3 terms if specified as a partial match. Each\nspace separated string is considered as one term.\nFor example, \"a b c\" is 3 terms and allowed, but \" a b c d\" is 4 terms\nand not allowed for a partial match.\n\n### setValue\n\nThe value of the term to match on.\n\nValue cannot be empty.\nValue can have at most 3 terms if specified as a partial match. Each\nspace separated string is considered as one term.\nFor example, \"a b c\" is 3 terms and allowed, but \" a b c d\" is 4 terms\nand not allowed for a partial match.\n\n### getFullMatch\n\nWhether this is supposed to be a full or partial match.\n\n### setFullMatch\n\nWhether this is supposed to be a full or partial match."]]