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. Note: This is sent only in the first
stream chunk and only if no candidates were generated due to content violations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder 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
stringToJsonNode, toJson
-
Constructor Details
-
GenerateContentResponsePromptFeedback
public GenerateContentResponsePromptFeedback()
-
-
Method Details
-
blockReason
Output only. The reason why the prompt was blocked. -
blockReasonMessage
Output only. A readable message that explains the reason why the prompt was blocked. This field is not supported in Gemini API. -
safetyRatings
Output only. A list of safety ratings for the prompt. There is one rating per category. -
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.
-