Google Cloud Discovery Engine V1 Client - Class SafetySpec (1.0.0)

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

Safety specification.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ 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