Class AsyncRecognizeResponse.Builder (4.39.0)

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
Type Description
Descriptor

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
Type Description
AsyncRecognizeResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AsyncRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AsyncRecognizeResponse.Builder
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
Name Description
value SpeechRecognitionResult
Returns
Type Description
AsyncRecognizeResponse.Builder

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
Name Description
builderForValue SpeechRecognitionResult.Builder
Returns
Type Description
AsyncRecognizeResponse.Builder

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
Name Description
index int
value SpeechRecognitionResult
Returns
Type Description
AsyncRecognizeResponse.Builder

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
Name Description
index int
builderForValue SpeechRecognitionResult.Builder
Returns
Type Description
AsyncRecognizeResponse.Builder

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
Type Description
SpeechRecognitionResult.Builder

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
Name Description
index int
Returns
Type Description
SpeechRecognitionResult.Builder

build()

public AsyncRecognizeResponse build()
Returns
Type Description
AsyncRecognizeResponse

buildPartial()

public AsyncRecognizeResponse buildPartial()
Returns
Type Description
AsyncRecognizeResponse

clear()

public AsyncRecognizeResponse.Builder clear()
Returns
Type Description
AsyncRecognizeResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AsyncRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AsyncRecognizeResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AsyncRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AsyncRecognizeResponse.Builder
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
Type Description
AsyncRecognizeResponse.Builder

clone()

public AsyncRecognizeResponse.Builder clone()
Returns
Type Description
AsyncRecognizeResponse.Builder
Overrides

getDefaultInstanceForType()

public AsyncRecognizeResponse getDefaultInstanceForType()
Returns
Type Description
AsyncRecognizeResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
SpeechRecognitionResult

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
Name Description
index int
Returns
Type Description
SpeechRecognitionResult.Builder

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
Type Description
List<Builder>

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
Type Description
int

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
Type Description
List<SpeechRecognitionResult>

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
Name Description
index int
Returns
Type Description
SpeechRecognitionResultOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AsyncRecognizeResponse other)

public AsyncRecognizeResponse.Builder mergeFrom(AsyncRecognizeResponse other)
Parameter
Name Description
other AsyncRecognizeResponse
Returns
Type Description
AsyncRecognizeResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AsyncRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AsyncRecognizeResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AsyncRecognizeResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AsyncRecognizeResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AsyncRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AsyncRecognizeResponse.Builder
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
Name Description
index int
Returns
Type Description
AsyncRecognizeResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AsyncRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AsyncRecognizeResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AsyncRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AsyncRecognizeResponse.Builder
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
Name Description
index int
value SpeechRecognitionResult
Returns
Type Description
AsyncRecognizeResponse.Builder

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
Name Description
index int
builderForValue SpeechRecognitionResult.Builder
Returns
Type Description
AsyncRecognizeResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AsyncRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AsyncRecognizeResponse.Builder
Overrides