public static class TextDocument.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TextDocument |
build() |
TextDocument.Builder |
copy(TextDocument model) |
TextDocument.Builder |
key(String key)
Document unique identifier defined by the user.
|
TextDocument.Builder |
languageCode(String languageCode)
Language code of the document.
|
TextDocument.Builder |
text(String text)
Document text for language service call.
|
public TextDocument.Builder key(String key)
Document unique identifier defined by the user.
key
- the value to setpublic TextDocument.Builder text(String text)
Document text for language service call.
text
- the value to setpublic TextDocument.Builder languageCode(String languageCode)
Language code of the document. Please refer to respective model API documentation for supported languages.
languageCode
- the value to setpublic TextDocument build()
public TextDocument.Builder copy(TextDocument model)
Copyright © 2016–2024. All rights reserved.