public final class TextDocumentInput extends Object
| Constructor and Description |
|---|
TextDocumentInput(String id,
String text)
Creates a
TextDocumentInput model that describes the documents. |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Get the id property: A unique, non-empty document identifier.
|
String |
getLanguage()
Get the language property: (Optional) This is the 2 letter ISO 639-1
representation of a language.
|
String |
getText()
Get the text property: The document to process.
|
TextDocumentInput |
setLanguage(String language)
Set the language property: (Optional) This is the 2 letter ISO 639-1
representation of a language.
|
String |
toString() |
public String getId()
public String getText()
public String getLanguage()
public TextDocumentInput setLanguage(String language)
language - Optional. This is the 2 letter ISO 639-1 representation of a language.TextDocumentInput itself.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.