Builder

public abstract class Builder

Builder for GenerateContentResponsePromptFeedback.

Functions

Link copied to clipboard
Setter for blockReason.
Setter for blockReason given a known enum.
@CanIgnoreReturnValue()
public GenerateContentResponsePromptFeedback.Builder blockReason(String blockReason)
Setter for blockReason given a string.
Link copied to clipboard
Setter for blockReasonMessage.
Link copied to clipboard
Link copied to clipboard
Clears the value of blockReason field.
Link copied to clipboard
Clears the value of blockReasonMessage field.
Link copied to clipboard
Clears the value of safetyRatings field.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponsePromptFeedback.Builder safetyRatings(Array<SafetyRating> safetyRatings)
Setter for safetyRatings.
@CanIgnoreReturnValue()
public GenerateContentResponsePromptFeedback.Builder safetyRatings(Array<SafetyRating.Builder> safetyRatingsBuilders)
Setter for safetyRatings builder.