SummarizerOptions.OutputType
Stay organized with collections
Save and categorize content based on your preferences.
Constant Summary
int |
ONE_BULLET
|
The output text is one bullet, starting with "*
". |
int |
THREE_BULLETS
|
The output text is up to three bullets. |
int |
TWO_BULLETS
|
The output text is up to two bullets. |
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
Constants
public static final int
ONE_BULLET
The output text is one bullet, starting with "* ".
Constant Value: 1
public static final int
THREE_BULLETS
The output text is up to three bullets.
Each bullet is on a new line, starting with "* ".
When the input text is too short, it can return one or two bullets instead.
Constant Value: 3
public static final int
TWO_BULLETS
The output text is up to two bullets.
Each bullet is on a new line, starting with "* ".
When the input text is too short, it can return one bullet instead.
Constant Value: 2
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-14 UTC."],[],[],null,["# SummarizerOptions.OutputType\n\npublic static abstract @interface **SummarizerOptions.OutputType** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nType of output format. \n\n### Constant Summary\n\n|-----|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|\n| int | [ONE_BULLET](/android/reference/com/google/mlkit/genai/summarization/SummarizerOptions.OutputType#ONE_BULLET) | The output text is one bullet, starting with \"\\* \". |\n| int | [THREE_BULLETS](/android/reference/com/google/mlkit/genai/summarization/SummarizerOptions.OutputType#THREE_BULLETS) | The output text is up to three bullets. |\n| int | [TWO_BULLETS](/android/reference/com/google/mlkit/genai/summarization/SummarizerOptions.OutputType#TWO_BULLETS) | The output text is up to two bullets. |\n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| abstract [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n\nConstants\n---------\n\n#### public static final int\n**ONE_BULLET**\n\nThe output text is one bullet, starting with \"\\* \". \nConstant Value: 1 \n\n#### public static final int\n**THREE_BULLETS**\n\nThe output text is up to three bullets.\n\nEach bullet is on a new line, starting with \"\\* \".\n\nWhen the input text is too short, it can return one or two bullets instead. \nConstant Value: 3 \n\n#### public static final int\n**TWO_BULLETS**\n\nThe output text is up to two bullets.\n\nEach bullet is on a new line, starting with \"\\* \".\n\nWhen the input text is too short, it can return one bullet instead. \nConstant Value: 2"]]