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 v1beta API class SearchResponse.Types.Summary.Types.SafetyAttributes.
Safety Attribute categories and their associated confidence scores.
Implements
IMessageSearchResponseTypesSummaryTypesSafetyAttributes, IEquatableSearchResponseTypesSummaryTypesSafetyAttributes, IDeepCloneableSearchResponseTypesSummaryTypesSafetyAttributes, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.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 |