Reference documentation and code samples for the Google Cloud Retail V2 Client class SafetySetting.
Safety settings.
Generated from protobuf message google.cloud.retail.v2.SafetySetting
Namespace
Google \ Cloud \ Retail \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ category
int
Harm category.
↳ threshold
int
The harm block threshold.
↳ method
int
Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.
getCategory
Harm category.
setCategory
Harm category.
$this
getThreshold
The harm block threshold.
setThreshold
The harm block threshold.
$this
getMethod
Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.
setMethod
Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.
$this

