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
Modifier and Type | Method and Description |
---|---|
AsyncRecognizeResponse.Builder |
addAllResults(java.lang.Iterable<? extends SpeechRecognitionResult> values)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
AsyncRecognizeResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AsyncRecognizeResponse.Builder |
addResults(int index,
SpeechRecognitionResult.Builder builderForValue)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
AsyncRecognizeResponse.Builder |
addResults(int index,
SpeechRecognitionResult value)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
AsyncRecognizeResponse.Builder |
addResults(SpeechRecognitionResult.Builder builderForValue)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
AsyncRecognizeResponse.Builder |
addResults(SpeechRecognitionResult value)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SpeechRecognitionResult.Builder |
addResultsBuilder()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SpeechRecognitionResult.Builder |
addResultsBuilder(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
AsyncRecognizeResponse |
build() |
AsyncRecognizeResponse |
buildPartial() |
AsyncRecognizeResponse.Builder |
clear() |
AsyncRecognizeResponse.Builder |
clearField(Descriptors.FieldDescriptor field) |
AsyncRecognizeResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
AsyncRecognizeResponse.Builder |
clearResults()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
AsyncRecognizeResponse.Builder |
clone() |
AsyncRecognizeResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
SpeechRecognitionResult |
getResults(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SpeechRecognitionResult.Builder |
getResultsBuilder(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
java.util.List<SpeechRecognitionResult.Builder> |
getResultsBuilderList()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
int |
getResultsCount()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
java.util.List<SpeechRecognitionResult> |
getResultsList()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SpeechRecognitionResultOrBuilder |
getResultsOrBuilder(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
java.util.List<? extends SpeechRecognitionResultOrBuilder> |
getResultsOrBuilderList()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AsyncRecognizeResponse.Builder |
mergeFrom(AsyncRecognizeResponse other) |
AsyncRecognizeResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
AsyncRecognizeResponse.Builder |
mergeFrom(Message other) |
AsyncRecognizeResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
AsyncRecognizeResponse.Builder |
removeResults(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
AsyncRecognizeResponse.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AsyncRecognizeResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
AsyncRecognizeResponse.Builder |
setResults(int index,
SpeechRecognitionResult.Builder builderForValue)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
AsyncRecognizeResponse.Builder |
setResults(int index,
SpeechRecognitionResult value)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
AsyncRecognizeResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
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<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AsyncRecognizeResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AsyncRecognizeResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AsyncRecognizeResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse.Builder mergeFrom(AsyncRecognizeResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public AsyncRecognizeResponse.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<AsyncRecognizeResponse.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.v1beta1.SpeechRecognitionResult results = 2;
getResultsList
in interface AsyncRecognizeResponseOrBuilder
public int getResultsCount()
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
getResultsCount
in interface AsyncRecognizeResponseOrBuilder
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;
getResults
in interface AsyncRecognizeResponseOrBuilder
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;
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;
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;
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;
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;
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;
public AsyncRecognizeResponse.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.v1beta1.SpeechRecognitionResult results = 2;
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;
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;
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;
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;
getResultsOrBuilder
in interface AsyncRecognizeResponseOrBuilder
public java.util.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;
getResultsOrBuilderList
in interface AsyncRecognizeResponseOrBuilder
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;
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;
public java.util.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;
public final AsyncRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
public final AsyncRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>