Google Cloud Ces V1 Client - Class ModelSafety (0.2.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class ModelSafety.

Model safety settings overrides. When this is set, it will override the default settings and trigger the guardrail if the response is considered unsafe.

Generated from protobuf message google.cloud.ces.v1.Guardrail.ModelSafety

Namespace

Google \ Cloud \ Ces \ V1 \ Guardrail

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ safety_settings
array< ModelSafety\SafetySetting >

Required. List of safety settings.

getSafetySettings

Required. List of safety settings.

setSafetySettings

Required. List of safety settings.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: