Google Cloud Retail V2 Client - Class DoNotAssociateAction (1.0.1)

Reference documentation and code samples for the Google Cloud Retail V2 Client class DoNotAssociateAction.

Prevents query_term from being associated with specified terms during search.

Example: Don't associate "gShoe" and "cheap".

Generated from protobuf message google.cloud.retail.v2.Rule.DoNotAssociateAction

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ query_terms array

Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.

↳ do_not_associate_terms array

Cannot contain duplicates or the query term. Can specify up to 100 terms.

↳ terms array

Will be [deprecated = true] post migration;

getQueryTerms

Terms from the search query.

Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.

Generated from protobuf field repeated string query_terms = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setQueryTerms

Terms from the search query.

Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.

Generated from protobuf field repeated string query_terms = 2;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getDoNotAssociateTerms

Cannot contain duplicates or the query term.

Can specify up to 100 terms.

Generated from protobuf field repeated string do_not_associate_terms = 3;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDoNotAssociateTerms

Cannot contain duplicates or the query term.

Can specify up to 100 terms.

Generated from protobuf field repeated string do_not_associate_terms = 3;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getTerms

Will be [deprecated = true] post migration;

Generated from protobuf field repeated string terms = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTerms

Will be [deprecated = true] post migration;

Generated from protobuf field repeated string terms = 1;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this