Package com.google.cloud.speech.v2
Class BatchRecognizeRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
- com.google.cloud.speech.v2.BatchRecognizeRequest.Builder
-
- All Implemented Interfaces:
BatchRecognizeRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchRecognizeRequest
public static final class BatchRecognizeRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder> implements BatchRecognizeRequestOrBuilder
Request message for the [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] method.
Protobuf typegoogle.cloud.speech.v2.BatchRecognizeRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchRecognizeRequest.BuilderaddAllFiles(Iterable<? extends BatchRecognizeFileMetadata> values)Audio files with file metadata for ASR.BatchRecognizeRequest.BuilderaddFiles(int index, BatchRecognizeFileMetadata value)Audio files with file metadata for ASR.BatchRecognizeRequest.BuilderaddFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)Audio files with file metadata for ASR.BatchRecognizeRequest.BuilderaddFiles(BatchRecognizeFileMetadata value)Audio files with file metadata for ASR.BatchRecognizeRequest.BuilderaddFiles(BatchRecognizeFileMetadata.Builder builderForValue)Audio files with file metadata for ASR.BatchRecognizeFileMetadata.BuilderaddFilesBuilder()Audio files with file metadata for ASR.BatchRecognizeFileMetadata.BuilderaddFilesBuilder(int index)Audio files with file metadata for ASR.BatchRecognizeRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BatchRecognizeRequestbuild()BatchRecognizeRequestbuildPartial()BatchRecognizeRequest.Builderclear()BatchRecognizeRequest.BuilderclearConfig()Features and audio metadata to use for the Automatic Speech Recognition.BatchRecognizeRequest.BuilderclearConfigMask()The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request.BatchRecognizeRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BatchRecognizeRequest.BuilderclearFiles()Audio files with file metadata for ASR.BatchRecognizeRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BatchRecognizeRequest.BuilderclearProcessingStrategy()Processing strategy to use for this request.BatchRecognizeRequest.BuilderclearRecognitionOutputConfig()Configuration options for where to output the transcripts of each file.BatchRecognizeRequest.BuilderclearRecognizer()Required.BatchRecognizeRequest.Builderclone()RecognitionConfiggetConfig()Features and audio metadata to use for the Automatic Speech Recognition.RecognitionConfig.BuildergetConfigBuilder()Features and audio metadata to use for the Automatic Speech Recognition.com.google.protobuf.FieldMaskgetConfigMask()The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request.com.google.protobuf.FieldMask.BuildergetConfigMaskBuilder()The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request.com.google.protobuf.FieldMaskOrBuildergetConfigMaskOrBuilder()The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request.RecognitionConfigOrBuildergetConfigOrBuilder()Features and audio metadata to use for the Automatic Speech Recognition.BatchRecognizeRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()BatchRecognizeFileMetadatagetFiles(int index)Audio files with file metadata for ASR.BatchRecognizeFileMetadata.BuildergetFilesBuilder(int index)Audio files with file metadata for ASR.List<BatchRecognizeFileMetadata.Builder>getFilesBuilderList()Audio files with file metadata for ASR.intgetFilesCount()Audio files with file metadata for ASR.List<BatchRecognizeFileMetadata>getFilesList()Audio files with file metadata for ASR.BatchRecognizeFileMetadataOrBuildergetFilesOrBuilder(int index)Audio files with file metadata for ASR.List<? extends BatchRecognizeFileMetadataOrBuilder>getFilesOrBuilderList()Audio files with file metadata for ASR.BatchRecognizeRequest.ProcessingStrategygetProcessingStrategy()Processing strategy to use for this request.intgetProcessingStrategyValue()Processing strategy to use for this request.RecognitionOutputConfiggetRecognitionOutputConfig()Configuration options for where to output the transcripts of each file.RecognitionOutputConfig.BuildergetRecognitionOutputConfigBuilder()Configuration options for where to output the transcripts of each file.RecognitionOutputConfigOrBuildergetRecognitionOutputConfigOrBuilder()Configuration options for where to output the transcripts of each file.StringgetRecognizer()Required.com.google.protobuf.ByteStringgetRecognizerBytes()Required.booleanhasConfig()Features and audio metadata to use for the Automatic Speech Recognition.booleanhasConfigMask()The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request.booleanhasRecognitionOutputConfig()Configuration options for where to output the transcripts of each file.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BatchRecognizeRequest.BuildermergeConfig(RecognitionConfig value)Features and audio metadata to use for the Automatic Speech Recognition.BatchRecognizeRequest.BuildermergeConfigMask(com.google.protobuf.FieldMask value)The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request.BatchRecognizeRequest.BuildermergeFrom(BatchRecognizeRequest other)BatchRecognizeRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BatchRecognizeRequest.BuildermergeFrom(com.google.protobuf.Message other)BatchRecognizeRequest.BuildermergeRecognitionOutputConfig(RecognitionOutputConfig value)Configuration options for where to output the transcripts of each file.BatchRecognizeRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BatchRecognizeRequest.BuilderremoveFiles(int index)Audio files with file metadata for ASR.BatchRecognizeRequest.BuildersetConfig(RecognitionConfig value)Features and audio metadata to use for the Automatic Speech Recognition.BatchRecognizeRequest.BuildersetConfig(RecognitionConfig.Builder builderForValue)Features and audio metadata to use for the Automatic Speech Recognition.BatchRecognizeRequest.BuildersetConfigMask(com.google.protobuf.FieldMask value)The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request.BatchRecognizeRequest.BuildersetConfigMask(com.google.protobuf.FieldMask.Builder builderForValue)The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request.BatchRecognizeRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BatchRecognizeRequest.BuildersetFiles(int index, BatchRecognizeFileMetadata value)Audio files with file metadata for ASR.BatchRecognizeRequest.BuildersetFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)Audio files with file metadata for ASR.BatchRecognizeRequest.BuildersetProcessingStrategy(BatchRecognizeRequest.ProcessingStrategy value)Processing strategy to use for this request.BatchRecognizeRequest.BuildersetProcessingStrategyValue(int value)Processing strategy to use for this request.BatchRecognizeRequest.BuildersetRecognitionOutputConfig(RecognitionOutputConfig value)Configuration options for where to output the transcripts of each file.BatchRecognizeRequest.BuildersetRecognitionOutputConfig(RecognitionOutputConfig.Builder builderForValue)Configuration options for where to output the transcripts of each file.BatchRecognizeRequest.BuildersetRecognizer(String value)Required.BatchRecognizeRequest.BuildersetRecognizerBytes(com.google.protobuf.ByteString value)Required.BatchRecognizeRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BatchRecognizeRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
clear
public BatchRecognizeRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
getDefaultInstanceForType
public BatchRecognizeRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchRecognizeRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchRecognizeRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchRecognizeRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
setField
public BatchRecognizeRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
clearField
public BatchRecognizeRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
clearOneof
public BatchRecognizeRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
setRepeatedField
public BatchRecognizeRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
addRepeatedField
public BatchRecognizeRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
mergeFrom
public BatchRecognizeRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchRecognizeRequest.Builder>
-
mergeFrom
public BatchRecognizeRequest.Builder mergeFrom(BatchRecognizeRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
mergeFrom
public BatchRecognizeRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchRecognizeRequest.Builder>- Throws:
IOException
-
getRecognizer
public String getRecognizer()
Required. The name of the Recognizer to use during recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The {recognizer} segment may be set to `_` to use an empty implicit Recognizer.string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getRecognizerin interfaceBatchRecognizeRequestOrBuilder- Returns:
- The recognizer.
-
getRecognizerBytes
public com.google.protobuf.ByteString getRecognizerBytes()
Required. The name of the Recognizer to use during recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The {recognizer} segment may be set to `_` to use an empty implicit Recognizer.string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getRecognizerBytesin interfaceBatchRecognizeRequestOrBuilder- Returns:
- The bytes for recognizer.
-
setRecognizer
public BatchRecognizeRequest.Builder setRecognizer(String value)
Required. The name of the Recognizer to use during recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The {recognizer} segment may be set to `_` to use an empty implicit Recognizer.string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The recognizer to set.- Returns:
- This builder for chaining.
-
clearRecognizer
public BatchRecognizeRequest.Builder clearRecognizer()
Required. The name of the Recognizer to use during recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The {recognizer} segment may be set to `_` to use an empty implicit Recognizer.string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setRecognizerBytes
public BatchRecognizeRequest.Builder setRecognizerBytes(com.google.protobuf.ByteString value)
Required. The name of the Recognizer to use during recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The {recognizer} segment may be set to `_` to use an empty implicit Recognizer.string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for recognizer to set.- Returns:
- This builder for chaining.
-
hasConfig
public boolean hasConfig()
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.
.google.cloud.speech.v2.RecognitionConfig config = 4;- Specified by:
hasConfigin interfaceBatchRecognizeRequestOrBuilder- Returns:
- Whether the config field is set.
-
getConfig
public RecognitionConfig getConfig()
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.
.google.cloud.speech.v2.RecognitionConfig config = 4;- Specified by:
getConfigin interfaceBatchRecognizeRequestOrBuilder- Returns:
- The config.
-
setConfig
public BatchRecognizeRequest.Builder setConfig(RecognitionConfig value)
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.
.google.cloud.speech.v2.RecognitionConfig config = 4;
-
setConfig
public BatchRecognizeRequest.Builder setConfig(RecognitionConfig.Builder builderForValue)
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.
.google.cloud.speech.v2.RecognitionConfig config = 4;
-
mergeConfig
public BatchRecognizeRequest.Builder mergeConfig(RecognitionConfig value)
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.
.google.cloud.speech.v2.RecognitionConfig config = 4;
-
clearConfig
public BatchRecognizeRequest.Builder clearConfig()
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.
.google.cloud.speech.v2.RecognitionConfig config = 4;
-
getConfigBuilder
public RecognitionConfig.Builder getConfigBuilder()
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.
.google.cloud.speech.v2.RecognitionConfig config = 4;
-
getConfigOrBuilder
public RecognitionConfigOrBuilder getConfigOrBuilder()
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.
.google.cloud.speech.v2.RecognitionConfig config = 4;- Specified by:
getConfigOrBuilderin interfaceBatchRecognizeRequestOrBuilder
-
hasConfigMask
public boolean hasConfigMask()
The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request. If no mask is provided, all given fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, [config][google.cloud.speech.v2.BatchRecognizeRequest.config] completely overrides and replaces the config in the recognizer for this recognition request.
.google.protobuf.FieldMask config_mask = 5;- Specified by:
hasConfigMaskin interfaceBatchRecognizeRequestOrBuilder- Returns:
- Whether the configMask field is set.
-
getConfigMask
public com.google.protobuf.FieldMask getConfigMask()
The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request. If no mask is provided, all given fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, [config][google.cloud.speech.v2.BatchRecognizeRequest.config] completely overrides and replaces the config in the recognizer for this recognition request.
.google.protobuf.FieldMask config_mask = 5;- Specified by:
getConfigMaskin interfaceBatchRecognizeRequestOrBuilder- Returns:
- The configMask.
-
setConfigMask
public BatchRecognizeRequest.Builder setConfigMask(com.google.protobuf.FieldMask value)
The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request. If no mask is provided, all given fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, [config][google.cloud.speech.v2.BatchRecognizeRequest.config] completely overrides and replaces the config in the recognizer for this recognition request.
.google.protobuf.FieldMask config_mask = 5;
-
setConfigMask
public BatchRecognizeRequest.Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue)
The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request. If no mask is provided, all given fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, [config][google.cloud.speech.v2.BatchRecognizeRequest.config] completely overrides and replaces the config in the recognizer for this recognition request.
.google.protobuf.FieldMask config_mask = 5;
-
mergeConfigMask
public BatchRecognizeRequest.Builder mergeConfigMask(com.google.protobuf.FieldMask value)
The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request. If no mask is provided, all given fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, [config][google.cloud.speech.v2.BatchRecognizeRequest.config] completely overrides and replaces the config in the recognizer for this recognition request.
.google.protobuf.FieldMask config_mask = 5;
-
clearConfigMask
public BatchRecognizeRequest.Builder clearConfigMask()
The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request. If no mask is provided, all given fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, [config][google.cloud.speech.v2.BatchRecognizeRequest.config] completely overrides and replaces the config in the recognizer for this recognition request.
.google.protobuf.FieldMask config_mask = 5;
-
getConfigMaskBuilder
public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder()
The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request. If no mask is provided, all given fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, [config][google.cloud.speech.v2.BatchRecognizeRequest.config] completely overrides and replaces the config in the recognizer for this recognition request.
.google.protobuf.FieldMask config_mask = 5;
-
getConfigMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder()
The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request. If no mask is provided, all given fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, [config][google.cloud.speech.v2.BatchRecognizeRequest.config] completely overrides and replaces the config in the recognizer for this recognition request.
.google.protobuf.FieldMask config_mask = 5;- Specified by:
getConfigMaskOrBuilderin interfaceBatchRecognizeRequestOrBuilder
-
getFilesList
public List<BatchRecognizeFileMetadata> getFilesList()
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;- Specified by:
getFilesListin interfaceBatchRecognizeRequestOrBuilder
-
getFilesCount
public int getFilesCount()
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;- Specified by:
getFilesCountin interfaceBatchRecognizeRequestOrBuilder
-
getFiles
public BatchRecognizeFileMetadata getFiles(int index)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;- Specified by:
getFilesin interfaceBatchRecognizeRequestOrBuilder
-
setFiles
public BatchRecognizeRequest.Builder setFiles(int index, BatchRecognizeFileMetadata value)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
setFiles
public BatchRecognizeRequest.Builder setFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
addFiles
public BatchRecognizeRequest.Builder addFiles(BatchRecognizeFileMetadata value)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
addFiles
public BatchRecognizeRequest.Builder addFiles(int index, BatchRecognizeFileMetadata value)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
addFiles
public BatchRecognizeRequest.Builder addFiles(BatchRecognizeFileMetadata.Builder builderForValue)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
addFiles
public BatchRecognizeRequest.Builder addFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
addAllFiles
public BatchRecognizeRequest.Builder addAllFiles(Iterable<? extends BatchRecognizeFileMetadata> values)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
clearFiles
public BatchRecognizeRequest.Builder clearFiles()
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
removeFiles
public BatchRecognizeRequest.Builder removeFiles(int index)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
getFilesBuilder
public BatchRecognizeFileMetadata.Builder getFilesBuilder(int index)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
getFilesOrBuilder
public BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder(int index)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;- Specified by:
getFilesOrBuilderin interfaceBatchRecognizeRequestOrBuilder
-
getFilesOrBuilderList
public List<? extends BatchRecognizeFileMetadataOrBuilder> getFilesOrBuilderList()
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;- Specified by:
getFilesOrBuilderListin interfaceBatchRecognizeRequestOrBuilder
-
addFilesBuilder
public BatchRecognizeFileMetadata.Builder addFilesBuilder()
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
addFilesBuilder
public BatchRecognizeFileMetadata.Builder addFilesBuilder(int index)
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
getFilesBuilderList
public List<BatchRecognizeFileMetadata.Builder> getFilesBuilderList()
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;
-
hasRecognitionOutputConfig
public boolean hasRecognitionOutputConfig()
Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;- Specified by:
hasRecognitionOutputConfigin interfaceBatchRecognizeRequestOrBuilder- Returns:
- Whether the recognitionOutputConfig field is set.
-
getRecognitionOutputConfig
public RecognitionOutputConfig getRecognitionOutputConfig()
Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;- Specified by:
getRecognitionOutputConfigin interfaceBatchRecognizeRequestOrBuilder- Returns:
- The recognitionOutputConfig.
-
setRecognitionOutputConfig
public BatchRecognizeRequest.Builder setRecognitionOutputConfig(RecognitionOutputConfig value)
Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;
-
setRecognitionOutputConfig
public BatchRecognizeRequest.Builder setRecognitionOutputConfig(RecognitionOutputConfig.Builder builderForValue)
Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;
-
mergeRecognitionOutputConfig
public BatchRecognizeRequest.Builder mergeRecognitionOutputConfig(RecognitionOutputConfig value)
Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;
-
clearRecognitionOutputConfig
public BatchRecognizeRequest.Builder clearRecognitionOutputConfig()
Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;
-
getRecognitionOutputConfigBuilder
public RecognitionOutputConfig.Builder getRecognitionOutputConfigBuilder()
Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;
-
getRecognitionOutputConfigOrBuilder
public RecognitionOutputConfigOrBuilder getRecognitionOutputConfigOrBuilder()
Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;- Specified by:
getRecognitionOutputConfigOrBuilderin interfaceBatchRecognizeRequestOrBuilder
-
getProcessingStrategyValue
public int getProcessingStrategyValue()
Processing strategy to use for this request.
.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;- Specified by:
getProcessingStrategyValuein interfaceBatchRecognizeRequestOrBuilder- Returns:
- The enum numeric value on the wire for processingStrategy.
-
setProcessingStrategyValue
public BatchRecognizeRequest.Builder setProcessingStrategyValue(int value)
Processing strategy to use for this request.
.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;- Parameters:
value- The enum numeric value on the wire for processingStrategy to set.- Returns:
- This builder for chaining.
-
getProcessingStrategy
public BatchRecognizeRequest.ProcessingStrategy getProcessingStrategy()
Processing strategy to use for this request.
.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;- Specified by:
getProcessingStrategyin interfaceBatchRecognizeRequestOrBuilder- Returns:
- The processingStrategy.
-
setProcessingStrategy
public BatchRecognizeRequest.Builder setProcessingStrategy(BatchRecognizeRequest.ProcessingStrategy value)
Processing strategy to use for this request.
.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;- Parameters:
value- The processingStrategy to set.- Returns:
- This builder for chaining.
-
clearProcessingStrategy
public BatchRecognizeRequest.Builder clearProcessingStrategy()
Processing strategy to use for this request.
.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchRecognizeRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
mergeUnknownFields
public final BatchRecognizeRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
-