Google Cloud Discovery Engine V1beta Client - Class SafetyAttributes (0.7.1)

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

Safety Attribute categories and their associated confidence scores.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchResponse \ Summary

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCategories

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getScores

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setScores

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

Parameter
NameDescription
var float[]
Returns
TypeDescription
$this