public static class TextClassificationDocumentResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TextClassificationDocumentResult |
build() |
TextClassificationDocumentResult.Builder |
copy(TextClassificationDocumentResult model) |
TextClassificationDocumentResult.Builder |
key(String key)
Document unique identifier defined by the user.
|
TextClassificationDocumentResult.Builder |
languageCode(String languageCode)
Language code per the ISO 639-1
standard.
|
TextClassificationDocumentResult.Builder |
textClassification(List<TextClassification> textClassification)
List of detected text classes.
|
public TextClassificationDocumentResult.Builder key(String key)
Document unique identifier defined by the user.
key
- the value to setpublic TextClassificationDocumentResult.Builder textClassification(List<TextClassification> textClassification)
List of detected text classes.
textClassification
- the value to setpublic TextClassificationDocumentResult.Builder languageCode(String languageCode)
Language code per the ISO 639-1 standard.
languageCode
- the value to setpublic TextClassificationDocumentResult build()
public TextClassificationDocumentResult.Builder copy(TextClassificationDocumentResult model)
Copyright © 2016–2023. All rights reserved.