Google Cloud Ai Platform V1 Client - Class SafetyInput (1.13.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class SafetyInput.

Input for safety metric.

Generated from protobuf message google.cloud.aiplatform.v1.SafetyInput

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_spec SafetySpec

Required. Spec for safety metric.

↳ instance SafetyInstance

Required. Safety instance.

getMetricSpec

Required. Spec for safety metric.

Returns
Type Description
SafetySpec|null

hasMetricSpec

clearMetricSpec

setMetricSpec

Required. Spec for safety metric.

Parameter
Name Description
var SafetySpec
Returns
Type Description
$this

getInstance

Required. Safety instance.

Returns
Type Description
SafetyInstance|null

hasInstance

clearInstance

setInstance

Required. Safety instance.

Parameter
Name Description
var SafetyInstance
Returns
Type Description
$this