public static final class StreamingRecognizeResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder> implements StreamingRecognizeResponseOrBuilder
`StreamingRecognizeResponse` is the only message returned to the client by
`StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
messages are streamed back to the client. If there is no recognizable
audio, and `single_utterance` is set to false, then no messages are streamed
back to the client.
Here's an example of a series of `StreamingRecognizeResponse`s that might be
returned while processing audio:
1. results { alternatives { transcript: "tube" } stability: 0.01 }
2. results { alternatives { transcript: "to be a" } stability: 0.01 }
3. results { alternatives { transcript: "to be" } stability: 0.9 }
results { alternatives { transcript: " or not to be" } stability: 0.01 }
4. results { alternatives { transcript: "to be or not to be"
confidence: 0.92 }
alternatives { transcript: "to bee or not to bee" }
is_final: true }
5. results { alternatives { transcript: " that's" } stability: 0.01 }
6. results { alternatives { transcript: " that is" } stability: 0.9 }
results { alternatives { transcript: " the question" } stability: 0.01 }
7. results { alternatives { transcript: " that is the question"
confidence: 0.98 }
alternatives { transcript: " that was the question" }
is_final: true }
Notes:
- Only two of the above responses #4 and #7 contain final results; they are
indicated by `is_final: true`. Concatenating these together generates the
full transcript: "to be or not to be that is the question".
- The others contain interim `results`. #3 and #6 contain two interim
`results`: the first portion has a high stability and is less likely to
change; the second portion has a low stability and is very likely to
change. A UI designer might choose to show only high stability `results`.
- The specific `stability` and `confidence` values shown above are only for
illustrative purposes. Actual values may vary.
- In each response, only one of these fields will be set:
`error`,
`speech_event_type`, or
one or more (repeated) `results`.
Protobuf type google.cloud.speech.v1p1beta1.StreamingRecognizeResponse| Modifier and Type | Method and Description |
|---|---|
StreamingRecognizeResponse.Builder |
addAllResults(Iterable<? extends StreamingRecognitionResult> values)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognizeResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingRecognizeResponse.Builder |
addResults(int index,
StreamingRecognitionResult.Builder builderForValue)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognizeResponse.Builder |
addResults(int index,
StreamingRecognitionResult value)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognizeResponse.Builder |
addResults(StreamingRecognitionResult.Builder builderForValue)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognizeResponse.Builder |
addResults(StreamingRecognitionResult value)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognitionResult.Builder |
addResultsBuilder()
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognitionResult.Builder |
addResultsBuilder(int index)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognizeResponse |
build() |
StreamingRecognizeResponse |
buildPartial() |
StreamingRecognizeResponse.Builder |
clear() |
StreamingRecognizeResponse.Builder |
clearError()
If set, returns a [google.rpc.Status][google.rpc.Status] message that
specifies the error for the operation.
|
StreamingRecognizeResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StreamingRecognizeResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StreamingRecognizeResponse.Builder |
clearRequestId()
The ID associated with the request.
|
StreamingRecognizeResponse.Builder |
clearResults()
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognizeResponse.Builder |
clearSpeechAdaptationInfo()
Provides information on adaptation behavior in response
|
StreamingRecognizeResponse.Builder |
clearSpeechEventTime()
Time offset between the beginning of the audio and event emission.
|
StreamingRecognizeResponse.Builder |
clearSpeechEventType()
Indicates the type of speech event.
|
StreamingRecognizeResponse.Builder |
clearTotalBilledTime()
When available, billed audio seconds for the stream.
|
StreamingRecognizeResponse.Builder |
clone() |
StreamingRecognizeResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.rpc.Status |
getError()
If set, returns a [google.rpc.Status][google.rpc.Status] message that
specifies the error for the operation.
|
com.google.rpc.Status.Builder |
getErrorBuilder()
If set, returns a [google.rpc.Status][google.rpc.Status] message that
specifies the error for the operation.
|
com.google.rpc.StatusOrBuilder |
getErrorOrBuilder()
If set, returns a [google.rpc.Status][google.rpc.Status] message that
specifies the error for the operation.
|
long |
getRequestId()
The ID associated with the request.
|
StreamingRecognitionResult |
getResults(int index)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognitionResult.Builder |
getResultsBuilder(int index)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
List<StreamingRecognitionResult.Builder> |
getResultsBuilderList()
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
int |
getResultsCount()
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
List<StreamingRecognitionResult> |
getResultsList()
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognitionResultOrBuilder |
getResultsOrBuilder(int index)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
List<? extends StreamingRecognitionResultOrBuilder> |
getResultsOrBuilderList()
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
SpeechAdaptationInfo |
getSpeechAdaptationInfo()
Provides information on adaptation behavior in response
|
SpeechAdaptationInfo.Builder |
getSpeechAdaptationInfoBuilder()
Provides information on adaptation behavior in response
|
SpeechAdaptationInfoOrBuilder |
getSpeechAdaptationInfoOrBuilder()
Provides information on adaptation behavior in response
|
com.google.protobuf.Duration |
getSpeechEventTime()
Time offset between the beginning of the audio and event emission.
|
com.google.protobuf.Duration.Builder |
getSpeechEventTimeBuilder()
Time offset between the beginning of the audio and event emission.
|
com.google.protobuf.DurationOrBuilder |
getSpeechEventTimeOrBuilder()
Time offset between the beginning of the audio and event emission.
|
StreamingRecognizeResponse.SpeechEventType |
getSpeechEventType()
Indicates the type of speech event.
|
int |
getSpeechEventTypeValue()
Indicates the type of speech event.
|
com.google.protobuf.Duration |
getTotalBilledTime()
When available, billed audio seconds for the stream.
|
com.google.protobuf.Duration.Builder |
getTotalBilledTimeBuilder()
When available, billed audio seconds for the stream.
|
com.google.protobuf.DurationOrBuilder |
getTotalBilledTimeOrBuilder()
When available, billed audio seconds for the stream.
|
boolean |
hasError()
If set, returns a [google.rpc.Status][google.rpc.Status] message that
specifies the error for the operation.
|
boolean |
hasSpeechAdaptationInfo()
Provides information on adaptation behavior in response
|
boolean |
hasSpeechEventTime()
Time offset between the beginning of the audio and event emission.
|
boolean |
hasTotalBilledTime()
When available, billed audio seconds for the stream.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StreamingRecognizeResponse.Builder |
mergeError(com.google.rpc.Status value)
If set, returns a [google.rpc.Status][google.rpc.Status] message that
specifies the error for the operation.
|
StreamingRecognizeResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StreamingRecognizeResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
StreamingRecognizeResponse.Builder |
mergeFrom(StreamingRecognizeResponse other) |
StreamingRecognizeResponse.Builder |
mergeSpeechAdaptationInfo(SpeechAdaptationInfo value)
Provides information on adaptation behavior in response
|
StreamingRecognizeResponse.Builder |
mergeSpeechEventTime(com.google.protobuf.Duration value)
Time offset between the beginning of the audio and event emission.
|
StreamingRecognizeResponse.Builder |
mergeTotalBilledTime(com.google.protobuf.Duration value)
When available, billed audio seconds for the stream.
|
StreamingRecognizeResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StreamingRecognizeResponse.Builder |
removeResults(int index)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognizeResponse.Builder |
setError(com.google.rpc.Status.Builder builderForValue)
If set, returns a [google.rpc.Status][google.rpc.Status] message that
specifies the error for the operation.
|
StreamingRecognizeResponse.Builder |
setError(com.google.rpc.Status value)
If set, returns a [google.rpc.Status][google.rpc.Status] message that
specifies the error for the operation.
|
StreamingRecognizeResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingRecognizeResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StreamingRecognizeResponse.Builder |
setRequestId(long value)
The ID associated with the request.
|
StreamingRecognizeResponse.Builder |
setResults(int index,
StreamingRecognitionResult.Builder builderForValue)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognizeResponse.Builder |
setResults(int index,
StreamingRecognitionResult value)
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently being processed.
|
StreamingRecognizeResponse.Builder |
setSpeechAdaptationInfo(SpeechAdaptationInfo.Builder builderForValue)
Provides information on adaptation behavior in response
|
StreamingRecognizeResponse.Builder |
setSpeechAdaptationInfo(SpeechAdaptationInfo value)
Provides information on adaptation behavior in response
|
StreamingRecognizeResponse.Builder |
setSpeechEventTime(com.google.protobuf.Duration.Builder builderForValue)
Time offset between the beginning of the audio and event emission.
|
StreamingRecognizeResponse.Builder |
setSpeechEventTime(com.google.protobuf.Duration value)
Time offset between the beginning of the audio and event emission.
|
StreamingRecognizeResponse.Builder |
setSpeechEventType(StreamingRecognizeResponse.SpeechEventType value)
Indicates the type of speech event.
|
StreamingRecognizeResponse.Builder |
setSpeechEventTypeValue(int value)
Indicates the type of speech event.
|
StreamingRecognizeResponse.Builder |
setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue)
When available, billed audio seconds for the stream.
|
StreamingRecognizeResponse.Builder |
setTotalBilledTime(com.google.protobuf.Duration value)
When available, billed audio seconds for the stream.
|
StreamingRecognizeResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingRecognizeResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognizeResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognizeResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder mergeFrom(StreamingRecognizeResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognizeResponse.Builder>IOExceptionpublic boolean hasError()
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;hasError in interface StreamingRecognizeResponseOrBuilderpublic com.google.rpc.Status getError()
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;getError in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setError(com.google.rpc.Status value)
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;public StreamingRecognizeResponse.Builder setError(com.google.rpc.Status.Builder builderForValue)
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;public StreamingRecognizeResponse.Builder mergeError(com.google.rpc.Status value)
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;public StreamingRecognizeResponse.Builder clearError()
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;public com.google.rpc.Status.Builder getErrorBuilder()
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;getErrorOrBuilder in interface StreamingRecognizeResponseOrBuilderpublic List<StreamingRecognitionResult> getResultsList()
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;getResultsList in interface StreamingRecognizeResponseOrBuilderpublic int getResultsCount()
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;getResultsCount in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognitionResult getResults(int index)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;getResults in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setResults(int index, StreamingRecognitionResult value)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder setResults(int index, StreamingRecognitionResult.Builder builderForValue)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addResults(StreamingRecognitionResult value)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addResults(int index, StreamingRecognitionResult value)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addResults(StreamingRecognitionResult.Builder builderForValue)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addResults(int index, StreamingRecognitionResult.Builder builderForValue)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addAllResults(Iterable<? extends StreamingRecognitionResult> values)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder clearResults()
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder removeResults(int index)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognitionResult.Builder getResultsBuilder(int index)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;getResultsOrBuilder in interface StreamingRecognizeResponseOrBuilderpublic List<? extends StreamingRecognitionResultOrBuilder> getResultsOrBuilderList()
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;getResultsOrBuilderList in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognitionResult.Builder addResultsBuilder()
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public StreamingRecognitionResult.Builder addResultsBuilder(int index)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public List<StreamingRecognitionResult.Builder> getResultsBuilderList()
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one `is_final=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;public int getSpeechEventTypeValue()
Indicates the type of speech event.
.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;
getSpeechEventTypeValue in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setSpeechEventTypeValue(int value)
Indicates the type of speech event.
.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;
value - The enum numeric value on the wire for speechEventType to set.public StreamingRecognizeResponse.SpeechEventType getSpeechEventType()
Indicates the type of speech event.
.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;
getSpeechEventType in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setSpeechEventType(StreamingRecognizeResponse.SpeechEventType value)
Indicates the type of speech event.
.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;
value - The speechEventType to set.public StreamingRecognizeResponse.Builder clearSpeechEventType()
Indicates the type of speech event.
.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;
public boolean hasSpeechEventTime()
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;hasSpeechEventTime in interface StreamingRecognizeResponseOrBuilderpublic com.google.protobuf.Duration getSpeechEventTime()
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;getSpeechEventTime in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setSpeechEventTime(com.google.protobuf.Duration value)
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;public StreamingRecognizeResponse.Builder setSpeechEventTime(com.google.protobuf.Duration.Builder builderForValue)
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;public StreamingRecognizeResponse.Builder mergeSpeechEventTime(com.google.protobuf.Duration value)
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;public StreamingRecognizeResponse.Builder clearSpeechEventTime()
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;public com.google.protobuf.Duration.Builder getSpeechEventTimeBuilder()
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;public com.google.protobuf.DurationOrBuilder getSpeechEventTimeOrBuilder()
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;getSpeechEventTimeOrBuilder in interface StreamingRecognizeResponseOrBuilderpublic boolean hasTotalBilledTime()
When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;hasTotalBilledTime in interface StreamingRecognizeResponseOrBuilderpublic com.google.protobuf.Duration getTotalBilledTime()
When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;getTotalBilledTime in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setTotalBilledTime(com.google.protobuf.Duration value)
When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;public StreamingRecognizeResponse.Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue)
When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;public StreamingRecognizeResponse.Builder mergeTotalBilledTime(com.google.protobuf.Duration value)
When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;public StreamingRecognizeResponse.Builder clearTotalBilledTime()
When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder()
When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder()
When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;getTotalBilledTimeOrBuilder in interface StreamingRecognizeResponseOrBuilderpublic boolean hasSpeechAdaptationInfo()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9;hasSpeechAdaptationInfo in interface StreamingRecognizeResponseOrBuilderpublic SpeechAdaptationInfo getSpeechAdaptationInfo()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9;getSpeechAdaptationInfo in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setSpeechAdaptationInfo(SpeechAdaptationInfo value)
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9;public StreamingRecognizeResponse.Builder setSpeechAdaptationInfo(SpeechAdaptationInfo.Builder builderForValue)
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9;public StreamingRecognizeResponse.Builder mergeSpeechAdaptationInfo(SpeechAdaptationInfo value)
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9;public StreamingRecognizeResponse.Builder clearSpeechAdaptationInfo()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9;public SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9;public SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9;getSpeechAdaptationInfoOrBuilder in interface StreamingRecognizeResponseOrBuilderpublic long getRequestId()
The ID associated with the request. This is a unique ID specific only to the given request.
int64 request_id = 10;getRequestId in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setRequestId(long value)
The ID associated with the request. This is a unique ID specific only to the given request.
int64 request_id = 10;value - The requestId to set.public StreamingRecognizeResponse.Builder clearRequestId()
The ID associated with the request. This is a unique ID specific only to the given request.
int64 request_id = 10;public final StreamingRecognizeResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public final StreamingRecognizeResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>Copyright © 2023 Google LLC. All rights reserved.