public static class TextSelectionEntity.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TextSelectionEntity |
build() |
TextSelectionEntity.Builder |
copy(TextSelectionEntity model) |
TextSelectionEntity.Builder |
extendedMetadata(Map<String,String> extendedMetadata)
A simple key-value pair that is applied without any predefined name, type, or scope.
|
TextSelectionEntity.Builder |
labels(List<Label> labels)
A collection of label entities.
|
TextSelectionEntity.Builder |
textSpan(TextSpan textSpan) |
public TextSelectionEntity.Builder labels(List<Label> labels)
A collection of label entities.
labels
- the value to setpublic TextSelectionEntity.Builder textSpan(TextSpan textSpan)
public TextSelectionEntity.Builder extendedMetadata(Map<String,String> extendedMetadata)
A simple key-value pair that is applied without any predefined name, type, or scope. It
exists for cross-compatibility only. For example: {"bar-key": "value"}
extendedMetadata
- the value to setpublic TextSelectionEntity build()
public TextSelectionEntity.Builder copy(TextSelectionEntity model)
Copyright © 2016–2024. All rights reserved.