public static class GenericEntity.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GenericEntity |
build() |
GenericEntity.Builder |
copy(GenericEntity model) |
GenericEntity.Builder |
documentEntityMetadata(DocumentEntityMetadata documentEntityMetadata) |
GenericEntity.Builder |
extendedMetadata(Map<String,String> extendedMetadata)
A simple key-value pair that is applied without any predefined name, type, or scope.
|
GenericEntity.Builder |
labels(List<Label> labels)
A collection of label entities.
|
public GenericEntity.Builder documentEntityMetadata(DocumentEntityMetadata documentEntityMetadata)
public GenericEntity.Builder labels(List<Label> labels)
A collection of label entities.
labels
- the value to setpublic GenericEntity.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 GenericEntity build()
public GenericEntity.Builder copy(GenericEntity model)
Copyright © 2016–2024. All rights reserved.