public static class MultipartRecognition.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
MultipartRecognition.Builder |
addKeyword(java.lang.String keyword)
Adds a keyword to keywords.
|
MultipartRecognition |
build()
Builds a MultipartRecognition.
|
MultipartRecognition.Builder |
dataPartsCount(java.lang.Long dataPartsCount)
Set the dataPartsCount.
|
MultipartRecognition.Builder |
inactivityTimeout(java.lang.Long inactivityTimeout)
Set the inactivityTimeout.
|
MultipartRecognition.Builder |
keywords(java.util.List<java.lang.String> keywords)
Set the keywords.
|
MultipartRecognition.Builder |
keywordsThreshold(java.lang.Float keywordsThreshold)
Set the keywordsThreshold.
|
MultipartRecognition.Builder |
maxAlternatives(java.lang.Long maxAlternatives)
Set the maxAlternatives.
|
MultipartRecognition.Builder |
partContentType(java.lang.String partContentType)
Set the partContentType.
|
MultipartRecognition.Builder |
profanityFilter(java.lang.Boolean profanityFilter)
Set the profanityFilter.
|
MultipartRecognition.Builder |
sequenceId(java.lang.Long sequenceId)
Set the sequenceId.
|
MultipartRecognition.Builder |
smartFormatting(java.lang.Boolean smartFormatting)
Set the smartFormatting.
|
MultipartRecognition.Builder |
speakerLabels(java.lang.Boolean speakerLabels)
Set the speakerLabels.
|
MultipartRecognition.Builder |
timestamps(java.lang.Boolean timestamps)
Set the timestamps.
|
MultipartRecognition.Builder |
wordAlternativesThreshold(java.lang.Float wordAlternativesThreshold)
Set the wordAlternativesThreshold.
|
MultipartRecognition.Builder |
wordConfidence(java.lang.Boolean wordConfidence)
Set the wordConfidence.
|
public MultipartRecognition build()
public MultipartRecognition.Builder addKeyword(java.lang.String keyword)
keyword
- the new keywordpublic MultipartRecognition.Builder partContentType(java.lang.String partContentType)
partContentType
- the partContentTypepublic MultipartRecognition.Builder dataPartsCount(java.lang.Long dataPartsCount)
dataPartsCount
- the dataPartsCountpublic MultipartRecognition.Builder sequenceId(java.lang.Long sequenceId)
sequenceId
- the sequenceIdpublic MultipartRecognition.Builder inactivityTimeout(java.lang.Long inactivityTimeout)
inactivityTimeout
- the inactivityTimeoutpublic MultipartRecognition.Builder keywords(java.util.List<java.lang.String> keywords)
keywords
- the keywordspublic MultipartRecognition.Builder keywordsThreshold(java.lang.Float keywordsThreshold)
keywordsThreshold
- the keywordsThresholdpublic MultipartRecognition.Builder maxAlternatives(java.lang.Long maxAlternatives)
maxAlternatives
- the maxAlternativespublic MultipartRecognition.Builder wordAlternativesThreshold(java.lang.Float wordAlternativesThreshold)
wordAlternativesThreshold
- the wordAlternativesThresholdpublic MultipartRecognition.Builder wordConfidence(java.lang.Boolean wordConfidence)
wordConfidence
- the wordConfidencepublic MultipartRecognition.Builder timestamps(java.lang.Boolean timestamps)
timestamps
- the timestampspublic MultipartRecognition.Builder profanityFilter(java.lang.Boolean profanityFilter)
profanityFilter
- the profanityFilterpublic MultipartRecognition.Builder smartFormatting(java.lang.Boolean smartFormatting)
smartFormatting
- the smartFormattingpublic MultipartRecognition.Builder speakerLabels(java.lang.Boolean speakerLabels)
speakerLabels
- the speakerLabels