Google Cloud Discovery Engine V1 Client - Class SafetyAttributes (1.2.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SafetyAttributes.

Safety Attribute categories and their associated confidence scores.

Generated from protobuf message google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ SearchResponse \ Summary

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ categories array

The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.

↳ scores array

The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.

getCategories

The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCategories

The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getScores

The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setScores

The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.

Parameter
Name Description
var float[]
Returns
Type Description
$this