Google Cloud Discovery Engine V1beta Client - Class SafetySpec (0.11.3)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class SafetySpec.

Safety specification.

Generated from protobuf message google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ AnswerQueryRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enable bool

Enable the safety filtering on the answer response. It is false by default.

getEnable

Enable the safety filtering on the answer response. It is false by default.

Returns
Type Description
bool

setEnable

Enable the safety filtering on the answer response. It is false by default.

Parameter
Name Description
var bool
Returns
Type Description
$this