public static final class BatchRecognizeResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder> implements BatchRecognizeResponseOrBuilder
Response message for [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is packaged into a longrunning [Operation][google.longrunning.Operation].Protobuf type
google.cloud.speech.v2.BatchRecognizeResponse| Modifier and Type | Method and Description |
|---|---|
BatchRecognizeResponse |
build() |
BatchRecognizeResponse |
buildPartial() |
BatchRecognizeResponse.Builder |
clear() |
BatchRecognizeResponse.Builder |
clearResults() |
BatchRecognizeResponse.Builder |
clearTotalBilledDuration()
When available, billed audio seconds for the corresponding request.
|
boolean |
containsResults(String key)
Map from filename to the final result for that file.
|
BatchRecognizeResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,BatchRecognizeFileResult> |
getMutableResults()
Deprecated.
|
Map<String,BatchRecognizeFileResult> |
getResults()
Deprecated.
|
int |
getResultsCount()
Map from filename to the final result for that file.
|
Map<String,BatchRecognizeFileResult> |
getResultsMap()
Map from filename to the final result for that file.
|
BatchRecognizeFileResult |
getResultsOrDefault(String key,
BatchRecognizeFileResult defaultValue)
Map from filename to the final result for that file.
|
BatchRecognizeFileResult |
getResultsOrThrow(String key)
Map from filename to the final result for that file.
|
com.google.protobuf.Duration |
getTotalBilledDuration()
When available, billed audio seconds for the corresponding request.
|
com.google.protobuf.Duration.Builder |
getTotalBilledDurationBuilder()
When available, billed audio seconds for the corresponding request.
|
com.google.protobuf.DurationOrBuilder |
getTotalBilledDurationOrBuilder()
When available, billed audio seconds for the corresponding request.
|
boolean |
hasTotalBilledDuration()
When available, billed audio seconds for the corresponding request.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
BatchRecognizeResponse.Builder |
mergeFrom(BatchRecognizeResponse other) |
BatchRecognizeResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BatchRecognizeResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
BatchRecognizeResponse.Builder |
mergeTotalBilledDuration(com.google.protobuf.Duration value)
When available, billed audio seconds for the corresponding request.
|
BatchRecognizeResponse.Builder |
putAllResults(Map<String,BatchRecognizeFileResult> values)
Map from filename to the final result for that file.
|
BatchRecognizeResponse.Builder |
putResults(String key,
BatchRecognizeFileResult value)
Map from filename to the final result for that file.
|
BatchRecognizeFileResult.Builder |
putResultsBuilderIfAbsent(String key)
Map from filename to the final result for that file.
|
BatchRecognizeResponse.Builder |
removeResults(String key)
Map from filename to the final result for that file.
|
BatchRecognizeResponse.Builder |
setTotalBilledDuration(com.google.protobuf.Duration.Builder builderForValue)
When available, billed audio seconds for the corresponding request.
|
BatchRecognizeResponse.Builder |
setTotalBilledDuration(com.google.protobuf.Duration value)
When available, billed audio seconds for the corresponding request.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder>public BatchRecognizeResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder>public BatchRecognizeResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BatchRecognizeResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BatchRecognizeResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BatchRecognizeResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchRecognizeResponse.Builder>public BatchRecognizeResponse.Builder mergeFrom(BatchRecognizeResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder>public BatchRecognizeResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchRecognizeResponse.Builder>IOExceptionpublic int getResultsCount()
BatchRecognizeResponseOrBuilderMap from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;getResultsCount in interface BatchRecognizeResponseOrBuilderpublic boolean containsResults(String key)
Map from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;containsResults in interface BatchRecognizeResponseOrBuilder@Deprecated public Map<String,BatchRecognizeFileResult> getResults()
getResultsMap() instead.getResults in interface BatchRecognizeResponseOrBuilderpublic Map<String,BatchRecognizeFileResult> getResultsMap()
Map from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;getResultsMap in interface BatchRecognizeResponseOrBuilderpublic BatchRecognizeFileResult getResultsOrDefault(String key, BatchRecognizeFileResult defaultValue)
Map from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;getResultsOrDefault in interface BatchRecognizeResponseOrBuilderpublic BatchRecognizeFileResult getResultsOrThrow(String key)
Map from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;getResultsOrThrow in interface BatchRecognizeResponseOrBuilderpublic BatchRecognizeResponse.Builder clearResults()
public BatchRecognizeResponse.Builder removeResults(String key)
Map from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;@Deprecated public Map<String,BatchRecognizeFileResult> getMutableResults()
public BatchRecognizeResponse.Builder putResults(String key, BatchRecognizeFileResult value)
Map from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;public BatchRecognizeResponse.Builder putAllResults(Map<String,BatchRecognizeFileResult> values)
Map from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;public BatchRecognizeFileResult.Builder putResultsBuilderIfAbsent(String key)
Map from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;public boolean hasTotalBilledDuration()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;hasTotalBilledDuration in interface BatchRecognizeResponseOrBuilderpublic com.google.protobuf.Duration getTotalBilledDuration()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;getTotalBilledDuration in interface BatchRecognizeResponseOrBuilderpublic BatchRecognizeResponse.Builder setTotalBilledDuration(com.google.protobuf.Duration value)
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;public BatchRecognizeResponse.Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder builderForValue)
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;public BatchRecognizeResponse.Builder mergeTotalBilledDuration(com.google.protobuf.Duration value)
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;public BatchRecognizeResponse.Builder clearTotalBilledDuration()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;public com.google.protobuf.Duration.Builder getTotalBilledDurationBuilder()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;getTotalBilledDurationOrBuilder in interface BatchRecognizeResponseOrBuilderCopyright © 2026 Google LLC. All rights reserved.