public static class AnalyzeDocumentOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String projectId,
java.lang.String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AnalyzeDocumentOptions |
build()
Builds a AnalyzeDocumentOptions.
|
AnalyzeDocumentOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
AnalyzeDocumentOptions.Builder |
file(java.io.File file)
Set the file.
|
AnalyzeDocumentOptions.Builder |
file(java.io.InputStream file)
Set the file.
|
AnalyzeDocumentOptions.Builder |
fileContentType(java.lang.String fileContentType)
Set the fileContentType.
|
AnalyzeDocumentOptions.Builder |
filename(java.lang.String filename)
Set the filename.
|
AnalyzeDocumentOptions.Builder |
metadata(java.lang.String metadata)
Set the metadata.
|
AnalyzeDocumentOptions.Builder |
projectId(java.lang.String projectId)
Set the projectId.
|
public Builder()
public Builder(java.lang.String projectId, java.lang.String collectionId)
projectId
- the projectIdcollectionId
- the collectionIdpublic AnalyzeDocumentOptions build()
public AnalyzeDocumentOptions.Builder projectId(java.lang.String projectId)
projectId
- the projectIdpublic AnalyzeDocumentOptions.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic AnalyzeDocumentOptions.Builder file(java.io.InputStream file)
file
- the filepublic AnalyzeDocumentOptions.Builder filename(java.lang.String filename)
filename
- the filenamepublic AnalyzeDocumentOptions.Builder fileContentType(java.lang.String fileContentType)
fileContentType
- the fileContentTypepublic AnalyzeDocumentOptions.Builder metadata(java.lang.String metadata)
metadata
- the metadatapublic AnalyzeDocumentOptions.Builder file(java.io.File file) throws java.io.FileNotFoundException
file
- the filejava.io.FileNotFoundException
- if the file could not be found