Google Cloud Ai Platform V1 Client - Class SafetyInput (1.5.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 Google\Cloud\AIPlatform\V1\SafetySpec

Required. Spec for safety metric.

↳ instance Google\Cloud\AIPlatform\V1\SafetyInstance

Required. Safety instance.

getMetricSpec

Required. Spec for safety metric.

Returns
Type Description
Google\Cloud\AIPlatform\V1\SafetySpec|null

hasMetricSpec

clearMetricSpec

setMetricSpec

Required. Spec for safety metric.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\SafetySpec
Returns
Type Description
$this

getInstance

Required. Safety instance.

Returns
Type Description
Google\Cloud\AIPlatform\V1\SafetyInstance|null

hasInstance

clearInstance

setInstance

Required. Safety instance.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\SafetyInstance
Returns
Type Description
$this