Package com.google.genai.types
Class GenerateContentResponsePromptFeedback
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerateContentResponsePromptFeedback
Content filter results for a prompt sent in the request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for GenerateContentResponsePromptFeedback. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<BlockedReason>
Output only.Output only.builder()
Instantiates a builder for GenerateContentResponsePromptFeedback.Deserializes a JSON string to a GenerateContentResponsePromptFeedback object.abstract Optional<List<SafetyRating>>
Output only.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
GenerateContentResponsePromptFeedback
public GenerateContentResponsePromptFeedback()
-
-
Method Details
-
blockReason
Output only. Blocked reason. -
blockReasonMessage
Output only. A readable block reason message. -
safetyRatings
Output only. Safety ratings. -
builder
Instantiates a builder for GenerateContentResponsePromptFeedback. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GenerateContentResponsePromptFeedback object.
-