Google Cloud Retail V2 Client - Class ForceReturnFacetAction (2.1.2)

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<ForceReturnFacetAction\FacetPositionAdjustment>

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

getFacetPositionAdjustments

Each instance corresponds to a force return attribute for the given condition. There can't be more 15 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 15 instances here.

Parameter
Name Description
var array<ForceReturnFacetAction\FacetPositionAdjustment>
Returns
Type Description
$this