Class SyncRecognizeResponse.Builder (4.39.0)

public static final class SyncRecognizeResponse.Builder extends GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder> implements SyncRecognizeResponseOrBuilder

The only message returned to the client by SyncRecognize. method. It contains the result as zero or more sequential SpeechRecognitionResult messages.

Protobuf type google.cloud.speech.v1beta1.SyncRecognizeResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllResults(Iterable<? extends SpeechRecognitionResult> values)

public SyncRecognizeResponse.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
SyncRecognizeResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResults(SpeechRecognitionResult value)

public SyncRecognizeResponse.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
SyncRecognizeResponse.Builder

addResults(SpeechRecognitionResult.Builder builderForValue)

public SyncRecognizeResponse.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
SyncRecognizeResponse.Builder

addResults(int index, SpeechRecognitionResult value)

public SyncRecognizeResponse.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
SyncRecognizeResponse.Builder

addResults(int index, SpeechRecognitionResult.Builder builderForValue)

public SyncRecognizeResponse.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
SyncRecognizeResponse.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 SyncRecognizeResponse build()
Returns
Type Description
SyncRecognizeResponse

buildPartial()

public SyncRecognizeResponse buildPartial()
Returns
Type Description
SyncRecognizeResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SyncRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SyncRecognizeResponse.Builder
Overrides

clearResults()

public SyncRecognizeResponse.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
SyncRecognizeResponse.Builder

clone()

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

getDefaultInstanceForType()

public SyncRecognizeResponse getDefaultInstanceForType()
Returns
Type Description
SyncRecognizeResponse

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(SyncRecognizeResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SyncRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SyncRecognizeResponse.Builder
Overrides

removeResults(int index)

public SyncRecognizeResponse.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
SyncRecognizeResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SyncRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SyncRecognizeResponse.Builder
Overrides

setResults(int index, SpeechRecognitionResult value)

public SyncRecognizeResponse.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
SyncRecognizeResponse.Builder

setResults(int index, SpeechRecognitionResult.Builder builderForValue)

public SyncRecognizeResponse.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
SyncRecognizeResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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