Google Cloud Ai Platform V1 Client - Class SafetySetting (0.32.0)

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

Safety settings.

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ category int

Required. Harm category.

↳ threshold int

Required. The harm block threshold.

getCategory

Required. Harm category.

Returns
TypeDescription
int

setCategory

Required. Harm category.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getThreshold

Required. The harm block threshold.

Returns
TypeDescription
int

setThreshold

Required. The harm block threshold.

Parameter
NameDescription
var int
Returns
TypeDescription
$this