public static final class RecognizeResponse.Builder extends GeneratedMessageV3.Builder<RecognizeResponse.Builder> implements RecognizeResponseOrBuilder
The only message returned to the client by the `Recognize` method. It contains the result as zero or more sequential `SpeechRecognitionResult` messages.Protobuf type
google.cloud.speech.v1p1beta1.RecognizeResponse
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public RecognizeResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public RecognizeResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public RecognizeResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public RecognizeResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public RecognizeResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public RecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public RecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public RecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public RecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public RecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public RecognizeResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<RecognizeResponse.Builder>
public RecognizeResponse.Builder mergeFrom(RecognizeResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public RecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<RecognizeResponse.Builder>
java.io.IOException
public java.util.List<SpeechRecognitionResult> getResultsList()
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
getResultsList
in interface RecognizeResponseOrBuilder
public int getResultsCount()
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
getResultsCount
in interface RecognizeResponseOrBuilder
public SpeechRecognitionResult getResults(int index)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
getResults
in interface RecognizeResponseOrBuilder
public RecognizeResponse.Builder setResults(int index, SpeechRecognitionResult value)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public RecognizeResponse.Builder setResults(int index, SpeechRecognitionResult.Builder builderForValue)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public RecognizeResponse.Builder addResults(SpeechRecognitionResult value)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public RecognizeResponse.Builder addResults(int index, SpeechRecognitionResult value)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public RecognizeResponse.Builder addResults(SpeechRecognitionResult.Builder builderForValue)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public RecognizeResponse.Builder addResults(int index, SpeechRecognitionResult.Builder builderForValue)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public RecognizeResponse.Builder addAllResults(java.lang.Iterable<? extends SpeechRecognitionResult> values)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public RecognizeResponse.Builder clearResults()
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public RecognizeResponse.Builder removeResults(int index)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public SpeechRecognitionResult.Builder getResultsBuilder(int index)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
getResultsOrBuilder
in interface RecognizeResponseOrBuilder
public java.util.List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
getResultsOrBuilderList
in interface RecognizeResponseOrBuilder
public SpeechRecognitionResult.Builder addResultsBuilder()
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public SpeechRecognitionResult.Builder addResultsBuilder(int index)
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public java.util.List<SpeechRecognitionResult.Builder> getResultsBuilderList()
Output only. Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
public final RecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>
public final RecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<RecognizeResponse.Builder>