Package com.google.genai.types
Enum TurnCompleteReason.Known
- All Implemented Interfaces:
Serializable,Comparable<TurnCompleteReason.Known>
- Enclosing class:
- TurnCompleteReason
Enum representing the known values for TurnCompleteReason.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInput matched blocklist.Generated audio failed safety check.Generated content matched blocklist.Generated content is prohibited.Generated content failed safety check.Generated image contains celebrity.Generated image contains identifiable people.Generated image contains minors.Generated image is prohibited.Generated image contains prominent people detected by rewriter.Generated image failed safety check.Other generated content issue.Generated video failed safety check.Input image contains prohibited content.Input image contains celebrity.Input image contains photo realistic child.Input contains IP violation.Other input safety issue.Input text contains prominent person reference.Input text contains NCII content.The function call generated by the model is invalid.Max regeneration attempts reached.Needs more input from the user.Generated image contains IP violation.Input content is prohibited.The response is rejected by the model.Default value.Input is unsafe for image generation. -
Method Summary
Modifier and TypeMethodDescriptionstatic TurnCompleteReason.KnownReturns the enum constant of this type with the specified name.static TurnCompleteReason.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TURN_COMPLETE_REASON_UNSPECIFIED
Default value. Reason is unspecified. -
MALFORMED_FUNCTION_CALL
The function call generated by the model is invalid. -
RESPONSE_REJECTED
The response is rejected by the model. -
NEED_MORE_INPUT
Needs more input from the user. -
PROHIBITED_INPUT_CONTENT
Input content is prohibited. -
IMAGE_PROHIBITED_INPUT_CONTENT
Input image contains prohibited content. -
INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED
Input text contains prominent person reference. -
INPUT_IMAGE_CELEBRITY
Input image contains celebrity. -
INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED
Input image contains photo realistic child. -
INPUT_TEXT_NCII_PROHIBITED
Input text contains NCII content. -
INPUT_OTHER
Other input safety issue. -
INPUT_IP_PROHIBITED
Input contains IP violation. -
BLOCKLIST
Input matched blocklist. -
UNSAFE_PROMPT_FOR_IMAGE_GENERATION
Input is unsafe for image generation. -
GENERATED_IMAGE_SAFETY
Generated image failed safety check. -
GENERATED_CONTENT_SAFETY
Generated content failed safety check. -
GENERATED_AUDIO_SAFETY
Generated audio failed safety check. -
GENERATED_VIDEO_SAFETY
Generated video failed safety check. -
GENERATED_CONTENT_PROHIBITED
Generated content is prohibited. -
GENERATED_CONTENT_BLOCKLIST
Generated content matched blocklist. -
GENERATED_IMAGE_PROHIBITED
Generated image is prohibited. -
GENERATED_IMAGE_CELEBRITY
Generated image contains celebrity. -
GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER
Generated image contains prominent people detected by rewriter. -
GENERATED_IMAGE_IDENTIFIABLE_PEOPLE
Generated image contains identifiable people. -
GENERATED_IMAGE_MINORS
Generated image contains minors. -
OUTPUT_IMAGE_IP_PROHIBITED
Generated image contains IP violation. -
GENERATED_OTHER
Other generated content issue. -
MAX_REGENERATION_REACHED
Max regeneration attempts reached.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-