public static class CreateCollectionOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateCollectionOptions.Builder()
Instantiates a new builder.
|
CreateCollectionOptions.Builder(java.lang.String projectId,
java.lang.String name)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateCollectionOptions.Builder |
addEnrichments(CollectionEnrichment enrichments)
Adds an enrichments to enrichments.
|
CreateCollectionOptions |
build()
Builds a CreateCollectionOptions.
|
CreateCollectionOptions.Builder |
collectionDetails(CollectionDetails collectionDetails)
Set the collectionDetails.
|
CreateCollectionOptions.Builder |
description(java.lang.String description)
Set the description.
|
CreateCollectionOptions.Builder |
enrichments(java.util.List<CollectionEnrichment> enrichments)
Set the enrichments.
|
CreateCollectionOptions.Builder |
language(java.lang.String language)
Set the language.
|
CreateCollectionOptions.Builder |
name(java.lang.String name)
Set the name.
|
CreateCollectionOptions.Builder |
projectId(java.lang.String projectId)
Set the projectId.
|
public CreateCollectionOptions.Builder()
public CreateCollectionOptions.Builder(java.lang.String projectId, java.lang.String name)
projectId
- the projectIdname
- the namepublic CreateCollectionOptions build()
public CreateCollectionOptions.Builder addEnrichments(CollectionEnrichment enrichments)
enrichments
- the new enrichmentspublic CreateCollectionOptions.Builder projectId(java.lang.String projectId)
projectId
- the projectIdpublic CreateCollectionOptions.Builder name(java.lang.String name)
name
- the namepublic CreateCollectionOptions.Builder description(java.lang.String description)
description
- the descriptionpublic CreateCollectionOptions.Builder language(java.lang.String language)
language
- the languagepublic CreateCollectionOptions.Builder enrichments(java.util.List<CollectionEnrichment> enrichments)
enrichments
- the enrichmentspublic CreateCollectionOptions.Builder collectionDetails(CollectionDetails collectionDetails)
collectionDetails
- the collectionDetails