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.Builder
addAllFiles(Iterable<? extends BatchRecognizeFileMetadata> values)
Audio files with file metadata for ASR.BatchRecognizeRequest.Builder
addFiles(int index, BatchRecognizeFileMetadata value)
Audio files with file metadata for ASR.BatchRecognizeRequest.Builder
addFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)
Audio files with file metadata for ASR.BatchRecognizeRequest.Builder
addFiles(BatchRecognizeFileMetadata value)
Audio files with file metadata for ASR.BatchRecognizeRequest.Builder
addFiles(BatchRecognizeFileMetadata.Builder builderForValue)
Audio files with file metadata for ASR.BatchRecognizeFileMetadata.Builder
addFilesBuilder()
Audio files with file metadata for ASR.BatchRecognizeFileMetadata.Builder
addFilesBuilder(int index)
Audio files with file metadata for ASR.BatchRecognizeRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchRecognizeRequest
build()
BatchRecognizeRequest
buildPartial()
BatchRecognizeRequest.Builder
clear()
BatchRecognizeRequest.Builder
clearConfig()
Features and audio metadata to use for the Automatic Speech Recognition.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.BatchRecognizeRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BatchRecognizeRequest.Builder
clearFiles()
Audio files with file metadata for ASR.BatchRecognizeRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BatchRecognizeRequest.Builder
clearProcessingStrategy()
Processing strategy to use for this request.BatchRecognizeRequest.Builder
clearRecognitionOutputConfig()
Configuration options for where to output the transcripts of each file.BatchRecognizeRequest.Builder
clearRecognizer()
Required.BatchRecognizeRequest.Builder
clone()
RecognitionConfig
getConfig()
Features and audio metadata to use for the Automatic Speech Recognition.RecognitionConfig.Builder
getConfigBuilder()
Features and audio metadata to use for the Automatic Speech Recognition.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.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.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.RecognitionConfigOrBuilder
getConfigOrBuilder()
Features and audio metadata to use for the Automatic Speech Recognition.BatchRecognizeRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
BatchRecognizeFileMetadata
getFiles(int index)
Audio files with file metadata for ASR.BatchRecognizeFileMetadata.Builder
getFilesBuilder(int index)
Audio files with file metadata for ASR.List<BatchRecognizeFileMetadata.Builder>
getFilesBuilderList()
Audio files with file metadata for ASR.int
getFilesCount()
Audio files with file metadata for ASR.List<BatchRecognizeFileMetadata>
getFilesList()
Audio files with file metadata for ASR.BatchRecognizeFileMetadataOrBuilder
getFilesOrBuilder(int index)
Audio files with file metadata for ASR.List<? extends BatchRecognizeFileMetadataOrBuilder>
getFilesOrBuilderList()
Audio files with file metadata for ASR.BatchRecognizeRequest.ProcessingStrategy
getProcessingStrategy()
Processing strategy to use for this request.int
getProcessingStrategyValue()
Processing strategy to use for this request.RecognitionOutputConfig
getRecognitionOutputConfig()
Configuration options for where to output the transcripts of each file.RecognitionOutputConfig.Builder
getRecognitionOutputConfigBuilder()
Configuration options for where to output the transcripts of each file.RecognitionOutputConfigOrBuilder
getRecognitionOutputConfigOrBuilder()
Configuration options for where to output the transcripts of each file.String
getRecognizer()
Required.com.google.protobuf.ByteString
getRecognizerBytes()
Required.boolean
hasConfig()
Features and audio metadata to use for the Automatic Speech Recognition.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.boolean
hasRecognitionOutputConfig()
Configuration options for where to output the transcripts of each file.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BatchRecognizeRequest.Builder
mergeConfig(RecognitionConfig value)
Features and audio metadata to use for the Automatic Speech Recognition.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.BatchRecognizeRequest.Builder
mergeFrom(BatchRecognizeRequest other)
BatchRecognizeRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BatchRecognizeRequest.Builder
mergeFrom(com.google.protobuf.Message other)
BatchRecognizeRequest.Builder
mergeRecognitionOutputConfig(RecognitionOutputConfig value)
Configuration options for where to output the transcripts of each file.BatchRecognizeRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BatchRecognizeRequest.Builder
removeFiles(int index)
Audio files with file metadata for ASR.BatchRecognizeRequest.Builder
setConfig(RecognitionConfig value)
Features and audio metadata to use for the Automatic Speech Recognition.BatchRecognizeRequest.Builder
setConfig(RecognitionConfig.Builder builderForValue)
Features and audio metadata to use for the Automatic Speech Recognition.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.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.BatchRecognizeRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchRecognizeRequest.Builder
setFiles(int index, BatchRecognizeFileMetadata value)
Audio files with file metadata for ASR.BatchRecognizeRequest.Builder
setFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)
Audio files with file metadata for ASR.BatchRecognizeRequest.Builder
setProcessingStrategy(BatchRecognizeRequest.ProcessingStrategy value)
Processing strategy to use for this request.BatchRecognizeRequest.Builder
setProcessingStrategyValue(int value)
Processing strategy to use for this request.BatchRecognizeRequest.Builder
setRecognitionOutputConfig(RecognitionOutputConfig value)
Configuration options for where to output the transcripts of each file.BatchRecognizeRequest.Builder
setRecognitionOutputConfig(RecognitionOutputConfig.Builder builderForValue)
Configuration options for where to output the transcripts of each file.BatchRecognizeRequest.Builder
setRecognizer(String value)
Required.BatchRecognizeRequest.Builder
setRecognizerBytes(com.google.protobuf.ByteString value)
Required.BatchRecognizeRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BatchRecognizeRequest.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
clear
public BatchRecognizeRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
getDefaultInstanceForType
public BatchRecognizeRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchRecognizeRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchRecognizeRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchRecognizeRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
setField
public BatchRecognizeRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
clearField
public BatchRecognizeRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
clearOneof
public BatchRecognizeRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
setRepeatedField
public BatchRecognizeRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
addRepeatedField
public BatchRecognizeRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
mergeFrom
public BatchRecognizeRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchRecognizeRequest.Builder>
-
mergeFrom
public BatchRecognizeRequest.Builder mergeFrom(BatchRecognizeRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getRecognizer
in 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:
getRecognizerBytes
in 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:
hasConfig
in 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:
getConfig
in 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:
getConfigOrBuilder
in 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:
hasConfigMask
in 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:
getConfigMask
in 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:
getConfigMaskOrBuilder
in 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:
getFilesList
in 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:
getFilesCount
in 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:
getFiles
in 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:
getFilesOrBuilder
in 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:
getFilesOrBuilderList
in 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:
hasRecognitionOutputConfig
in 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:
getRecognitionOutputConfig
in 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:
getRecognitionOutputConfigOrBuilder
in interfaceBatchRecognizeRequestOrBuilder
-
getProcessingStrategyValue
public int getProcessingStrategyValue()
Processing strategy to use for this request.
.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;
- Specified by:
getProcessingStrategyValue
in 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:
getProcessingStrategy
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
mergeUnknownFields
public final BatchRecognizeRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder>
-
-