public static class TrainingExample.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String documentId,
String collectionId,
Long relevance)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
TrainingExample |
build()
Builds a TrainingExample.
|
TrainingExample.Builder |
collectionId(String collectionId)
Set the collectionId.
|
TrainingExample.Builder |
documentId(String documentId)
Set the documentId.
|
TrainingExample.Builder |
relevance(long relevance)
Set the relevance.
|
public TrainingExample build()
public TrainingExample.Builder documentId(String documentId)
documentId
- the documentIdpublic TrainingExample.Builder collectionId(String collectionId)
collectionId
- the collectionIdpublic TrainingExample.Builder relevance(long relevance)
relevance
- the relevanceCopyright © 2023 IBM Cloud. All rights reserved.