Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SafetyRating.
Safety rating corresponding to the generated content.
Generated from protobuf message google.cloud.discoveryengine.v1.SafetyRating
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ category
int
Output only. Harm category.
↳ probability
int
Output only. Harm probability levels in the content.
↳ probability_score
float
Output only. Harm probability score.
↳ severity
int
Output only. Harm severity levels in the content.
↳ severity_score
float
Output only. Harm severity score.
↳ blocked
bool
Output only. Indicates whether the content was filtered out because of this rating.
getCategory
Output only. Harm category.
setCategory
Output only. Harm category.
$this
getProbability
Output only. Harm probability levels in the content.
setProbability
Output only. Harm probability levels in the content.
$this
getProbabilityScore
Output only. Harm probability score.
float
setProbabilityScore
Output only. Harm probability score.
var
float
$this
getSeverity
Output only. Harm severity levels in the content.
setSeverity
Output only. Harm severity levels in the content.
$this
getSeverityScore
Output only. Harm severity score.
float
setSeverityScore
Output only. Harm severity score.
var
float
$this
getBlocked
Output only. Indicates whether the content was filtered out because of this rating.
bool
setBlocked
Output only. Indicates whether the content was filtered out because of this rating.
var
bool
$this

