Cloud AI Platform v1 API - Class GenerateContentResponse.Types.PromptFeedback (2.21.0)

public sealed class GenerateContentResponse.Types.PromptFeedback : IMessage<GenerateContentResponse.Types.PromptFeedback>, IEquatable<GenerateContentResponse.Types.PromptFeedback>, IDeepCloneable<GenerateContentResponse.Types.PromptFeedback>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1 API class GenerateContentResponse.Types.PromptFeedback.

Content filter results for a prompt sent in the request.

Inheritance

object > GenerateContentResponse.Types.PromptFeedback

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

PromptFeedback()

public PromptFeedback()

PromptFeedback(PromptFeedback)

public PromptFeedback(GenerateContentResponse.Types.PromptFeedback other)
Parameter
NameDescription
otherGenerateContentResponseTypesPromptFeedback

Properties

BlockReason

public GenerateContentResponse.Types.PromptFeedback.Types.BlockedReason BlockReason { get; set; }

Output only. Blocked reason.

Property Value
TypeDescription
GenerateContentResponseTypesPromptFeedbackTypesBlockedReason

BlockReasonMessage

public string BlockReasonMessage { get; set; }

Output only. A readable block reason message.

Property Value
TypeDescription
string

SafetyRatings

public RepeatedField<SafetyRating> SafetyRatings { get; }

Output only. Safety ratings.

Property Value
TypeDescription
RepeatedFieldSafetyRating