Class SyncRecognizeResponse.Builder (4.30.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.speech.v1beta1.SpeechRecognitionResult>
Returns
TypeDescription
SyncRecognizeResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SyncRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSpeechRecognitionResult
Returns
TypeDescription
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
NameDescription
builderForValueSpeechRecognitionResult.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSpeechRecognitionResult
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSpeechRecognitionResult.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionResult.Builder

build()

public SyncRecognizeResponse build()
Returns
TypeDescription
SyncRecognizeResponse

buildPartial()

public SyncRecognizeResponse buildPartial()
Returns
TypeDescription
SyncRecognizeResponse

clear()

public SyncRecognizeResponse.Builder clear()
Returns
TypeDescription
SyncRecognizeResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SyncRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SyncRecognizeResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SyncRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SyncRecognizeResponse.Builder

clone()

public SyncRecognizeResponse.Builder clone()
Returns
TypeDescription
SyncRecognizeResponse.Builder
Overrides

getDefaultInstanceForType()

public SyncRecognizeResponse getDefaultInstanceForType()
Returns
TypeDescription
SyncRecognizeResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.speech.v1beta1.SpeechRecognitionResultOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SyncRecognizeResponse other)

public SyncRecognizeResponse.Builder mergeFrom(SyncRecognizeResponse other)
Parameter
NameDescription
otherSyncRecognizeResponse
Returns
TypeDescription
SyncRecognizeResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SyncRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncRecognizeResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SyncRecognizeResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SyncRecognizeResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SyncRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SyncRecognizeResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SyncRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SyncRecognizeResponse.Builder
Overrides

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

public SyncRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSpeechRecognitionResult
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSpeechRecognitionResult.Builder
Returns
TypeDescription
SyncRecognizeResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SyncRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SyncRecognizeResponse.Builder
Overrides