Discovery Engine v1 API - Class SearchResponse.Types.Summary.Types.SafetyAttributes (1.3.0)

public sealed class SearchResponse.Types.Summary.Types.SafetyAttributes : IMessage<SearchResponse.Types.Summary.Types.SafetyAttributes>, IEquatable<SearchResponse.Types.Summary.Types.SafetyAttributes>, IDeepCloneable<SearchResponse.Types.Summary.Types.SafetyAttributes>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class SearchResponse.Types.Summary.Types.SafetyAttributes.

Safety Attribute categories and their associated confidence scores.

Inheritance

object > SearchResponse.Types.Summary.Types.SafetyAttributes

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

SafetyAttributes()

public SafetyAttributes()

SafetyAttributes(SafetyAttributes)

public SafetyAttributes(SearchResponse.Types.Summary.Types.SafetyAttributes other)
Parameter
Name Description
other SearchResponseTypesSummaryTypesSafetyAttributes

Properties

Categories

public RepeatedField<string> Categories { get; }

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

Property Value
Type Description
RepeatedFieldstring

Scores

public RepeatedField<float> Scores { get; }

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

Property Value
Type Description
RepeatedFieldfloat