Send feedback
Class AsyncRecognizeResponse.Builder (2.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.0 keyboard_arrow_down
public static final class AsyncRecognizeResponse . Builder extends GeneratedMessageV3 . Builder<AsyncRecognizeResponse . Builder > implements AsyncRecognizeResponseOrBuilder
The only message returned to the client by AsyncRecognize
. It contains the
result as zero or more sequential SpeechRecognitionResult
messages. It is
included in the result.response
field of the Operation
returned by the
GetOperation
call of the google::longrunning::Operations
service.
Protobuf type google.cloud.speech.v1beta1.AsyncRecognizeResponse
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addAllResults(Iterable<? extends SpeechRecognitionResult> values)
public AsyncRecognizeResponse . Builder addAllResults ( Iterable <? extends SpeechRecognitionResult > values )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter
Name Description values Iterable <? extends com.google.cloud.speech.v1beta1.SpeechRecognitionResult >
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AsyncRecognizeResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
addResults(SpeechRecognitionResult value)
public AsyncRecognizeResponse . Builder addResults ( SpeechRecognitionResult value )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter
Returns
addResults(SpeechRecognitionResult.Builder builderForValue)
public AsyncRecognizeResponse . Builder addResults ( SpeechRecognitionResult . Builder builderForValue )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter
Returns
addResults(int index, SpeechRecognitionResult value)
public AsyncRecognizeResponse . Builder addResults ( int index , SpeechRecognitionResult value )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameters
Returns
addResults(int index, SpeechRecognitionResult.Builder builderForValue)
public AsyncRecognizeResponse . Builder addResults ( int index , SpeechRecognitionResult . Builder builderForValue )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameters
Returns
addResultsBuilder()
public SpeechRecognitionResult . Builder addResultsBuilder ()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns
addResultsBuilder(int index)
public SpeechRecognitionResult . Builder addResultsBuilder ( int index )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter
Returns
build()
public AsyncRecognizeResponse build ()
Returns
buildPartial()
public AsyncRecognizeResponse buildPartial ()
Returns
clear()
public AsyncRecognizeResponse . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AsyncRecognizeResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AsyncRecognizeResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearResults()
public AsyncRecognizeResponse . Builder clearResults ()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns
clone()
public AsyncRecognizeResponse . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public AsyncRecognizeResponse getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getResults(int index)
public SpeechRecognitionResult getResults ( int index )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter
Returns
getResultsBuilder(int index)
public SpeechRecognitionResult . Builder getResultsBuilder ( int index )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter
Returns
getResultsBuilderList()
public List<SpeechRecognitionResult . Builder > getResultsBuilderList ()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns
getResultsCount()
public int getResultsCount ()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns
getResultsList()
public List<SpeechRecognitionResult> getResultsList ()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns
getResultsOrBuilder(int index)
public SpeechRecognitionResultOrBuilder getResultsOrBuilder ( int index )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter
Returns
getResultsOrBuilderList()
public List <? extends SpeechRecognitionResultOrBuilder > getResultsOrBuilderList ()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns
Type Description List <? extends com.google.cloud.speech.v1beta1.SpeechRecognitionResultOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(AsyncRecognizeResponse other)
public AsyncRecognizeResponse . Builder mergeFrom ( AsyncRecognizeResponse other )
Parameter
Returns
public AsyncRecognizeResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AsyncRecognizeResponse . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AsyncRecognizeResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
removeResults(int index)
public AsyncRecognizeResponse . Builder removeResults ( int index )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AsyncRecognizeResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AsyncRecognizeResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setResults(int index, SpeechRecognitionResult value)
public AsyncRecognizeResponse . Builder setResults ( int index , SpeechRecognitionResult value )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameters
Returns
setResults(int index, SpeechRecognitionResult.Builder builderForValue)
public AsyncRecognizeResponse . Builder setResults ( int index , SpeechRecognitionResult . Builder builderForValue )
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AsyncRecognizeResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]