SummarizerOptions.InputType
Stay organized with collections
Save and categorize content based on your preferences.
Constant Summary
int |
ARTICLE
|
The input text is an article or long
paragraphs. |
int |
CONVERSATION
|
The input text is a conversation. |
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
ARTICLE
The input text is an article or long paragraphs.
Constant Value: 1
public static final int
CONVERSATION
The input text is a conversation.
Each line of the text is a message from one participant, in the format of name:
message.
Example:
user1: Hello
user2: Hi
user1: How are you?
user2: Good, how are you?
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.
[null,null,["Last updated 2025-05-14 UTC."],[],[],null,["# SummarizerOptions.InputType\n\npublic static abstract @interface **SummarizerOptions.InputType** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nType of input text. \n\n### Constant Summary\n\n|-----|------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|\n| int | [ARTICLE](/android/reference/com/google/mlkit/genai/summarization/SummarizerOptions.InputType#ARTICLE) | The input text is an article or long paragraphs. |\n| int | [CONVERSATION](/android/reference/com/google/mlkit/genai/summarization/SummarizerOptions.InputType#CONVERSATION) | The input text is a conversation. |\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**ARTICLE**\n\nThe input text is an article or long paragraphs. \nConstant Value: 1 \n\n#### public static final int\n**CONVERSATION**\n\nThe input text is a conversation.\n\nEach line of the text is a message from one participant, in the format of name:\nmessage.\n\nExample: \n\n```\n user1: Hello\n user2: Hi\n user1: How are you?\n user2: Good, how are you?\n \n``` \nConstant Value: 2"]]