Class GenerateContentResponsePromptFeedback.Builder
-
- All Implemented Interfaces:
public abstract class GenerateContentResponsePromptFeedback.BuilderBuilder for GenerateContentResponsePromptFeedback.
-
-
Constructor Summary
Constructors Constructor Description GenerateContentResponsePromptFeedback.Builder()
-
Method Summary
-
-
Method Detail
-
blockReason
abstract GenerateContentResponsePromptFeedback.Builder blockReason(BlockedReason blockReason)
Setter for blockReason.
blockReason: Output only. The reason why the prompt was blocked.
-
clearBlockReason
@CanIgnoreReturnValue() GenerateContentResponsePromptFeedback.Builder clearBlockReason()
Clears the value of blockReason field.
-
blockReason
@CanIgnoreReturnValue() GenerateContentResponsePromptFeedback.Builder blockReason(BlockedReason.Known knownType)
Setter for blockReason given a known enum.
blockReason: Output only. The reason why the prompt was blocked.
-
blockReason
@CanIgnoreReturnValue() GenerateContentResponsePromptFeedback.Builder blockReason(String blockReason)
Setter for blockReason given a string.
blockReason: Output only. The reason why the prompt was blocked.
-
blockReasonMessage
abstract GenerateContentResponsePromptFeedback.Builder blockReasonMessage(String blockReasonMessage)
Setter for blockReasonMessage.
blockReasonMessage: Output only. A readable message that explains the reason why the prompt was blocked. This field is not supported in Gemini API.
-
clearBlockReasonMessage
@CanIgnoreReturnValue() GenerateContentResponsePromptFeedback.Builder clearBlockReasonMessage()
Clears the value of blockReasonMessage field.
-
safetyRatings
abstract GenerateContentResponsePromptFeedback.Builder safetyRatings(List<SafetyRating> safetyRatings)
Setter for safetyRatings.
safetyRatings: Output only. A list of safety ratings for the prompt. There is one rating per category.
-
safetyRatings
@CanIgnoreReturnValue() GenerateContentResponsePromptFeedback.Builder safetyRatings(Array<SafetyRating> safetyRatings)
Setter for safetyRatings.
safetyRatings: Output only. A list of safety ratings for the prompt. There is one rating per category.
-
safetyRatings
@CanIgnoreReturnValue() GenerateContentResponsePromptFeedback.Builder safetyRatings(Array<SafetyRating.Builder> safetyRatingsBuilders)
Setter for safetyRatings builder.
safetyRatings: Output only. A list of safety ratings for the prompt. There is one rating per category.
-
clearSafetyRatings
@CanIgnoreReturnValue() GenerateContentResponsePromptFeedback.Builder clearSafetyRatings()
Clears the value of safetyRatings field.
-
build
abstract GenerateContentResponsePromptFeedback build()
-
-
-
-