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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SyncRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
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 SyncRecognizeResponse build()
Returns
buildPartial()
public SyncRecognizeResponse buildPartial()
Returns
clear()
public SyncRecognizeResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SyncRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SyncRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public SyncRecognizeResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SyncRecognizeResponse 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(SyncRecognizeResponse other)
public SyncRecognizeResponse.Builder mergeFrom(SyncRecognizeResponse other)
Parameter
Returns
public SyncRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SyncRecognizeResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SyncRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SyncRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SyncRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SyncRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides