Google Cloud Retail V2 Client - Class ForceReturnFacetAction (2.0.0)

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

Force returns an attribute/facet in the request around a certain position or above.

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

Namespace

Google \ Cloud \ Retail \ V2 \ Rule

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ facet_position_adjustments array<Google\Cloud\Retail\V2\Rule\ForceReturnFacetAction\FacetPositionAdjustment>

Each instance corresponds to a force return attribute for the given condition. There can't be more 3 instances here.

getFacetPositionAdjustments

Each instance corresponds to a force return attribute for the given condition. There can't be more 3 instances here.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFacetPositionAdjustments

Each instance corresponds to a force return attribute for the given condition. There can't be more 3 instances here.

Parameter
Name Description
var array<Google\Cloud\Retail\V2\Rule\ForceReturnFacetAction\FacetPositionAdjustment>
Returns
Type Description
$this