public static final class StreamingRecognitionResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder> implements StreamingRecognitionResultOrBuilder
A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.Protobuf type
google.cloud.speech.v1beta1.StreamingRecognitionResult| Modifier and Type | Method and Description |
|---|---|
StreamingRecognitionResult.Builder |
addAllAlternatives(java.lang.Iterable<? extends SpeechRecognitionAlternative> values)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult.Builder |
addAlternatives(int index,
SpeechRecognitionAlternative.Builder builderForValue)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult.Builder |
addAlternatives(int index,
SpeechRecognitionAlternative value)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult.Builder |
addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult.Builder |
addAlternatives(SpeechRecognitionAlternative value)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
SpeechRecognitionAlternative.Builder |
addAlternativesBuilder()
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
SpeechRecognitionAlternative.Builder |
addAlternativesBuilder(int index)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
StreamingRecognitionResult |
build() |
StreamingRecognitionResult |
buildPartial() |
StreamingRecognitionResult.Builder |
clear() |
StreamingRecognitionResult.Builder |
clearAlternatives()
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StreamingRecognitionResult.Builder |
clearIsFinal()
[Output-only] If `false`, this `StreamingRecognitionResult` represents an
interim result that may change.
|
StreamingRecognitionResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StreamingRecognitionResult.Builder |
clearStability()
[Output-only] An estimate of the probability that the recognizer will not
change its guess about this interim result.
|
StreamingRecognitionResult.Builder |
clone() |
SpeechRecognitionAlternative |
getAlternatives(int index)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
SpeechRecognitionAlternative.Builder |
getAlternativesBuilder(int index)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
java.util.List<SpeechRecognitionAlternative.Builder> |
getAlternativesBuilderList()
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
int |
getAlternativesCount()
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
java.util.List<SpeechRecognitionAlternative> |
getAlternativesList()
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
SpeechRecognitionAlternativeOrBuilder |
getAlternativesOrBuilder(int index)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> |
getAlternativesOrBuilderList()
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIsFinal()
[Output-only] If `false`, this `StreamingRecognitionResult` represents an
interim result that may change.
|
float |
getStability()
[Output-only] An estimate of the probability that the recognizer will not
change its guess about this interim result.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StreamingRecognitionResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StreamingRecognitionResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
StreamingRecognitionResult.Builder |
mergeFrom(StreamingRecognitionResult other) |
StreamingRecognitionResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StreamingRecognitionResult.Builder |
removeAlternatives(int index)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult.Builder |
setAlternatives(int index,
SpeechRecognitionAlternative.Builder builderForValue)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult.Builder |
setAlternatives(int index,
SpeechRecognitionAlternative value)
[Output-only] May contain one or more recognition hypotheses (up to the
maximum specified in `max_alternatives`).
|
StreamingRecognitionResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
StreamingRecognitionResult.Builder |
setIsFinal(boolean value)
[Output-only] If `false`, this `StreamingRecognitionResult` represents an
interim result that may change.
|
StreamingRecognitionResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
StreamingRecognitionResult.Builder |
setStability(float value)
[Output-only] An estimate of the probability that the recognizer will not
change its guess about this interim result.
|
StreamingRecognitionResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.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<StreamingRecognitionResult.Builder>public StreamingRecognitionResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingRecognitionResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognitionResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognitionResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder mergeFrom(StreamingRecognitionResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognitionResult.Builder>java.io.IOExceptionpublic java.util.List<SpeechRecognitionAlternative> getAlternativesList()
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesList in interface StreamingRecognitionResultOrBuilderpublic int getAlternativesCount()
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesCount in interface StreamingRecognitionResultOrBuilderpublic SpeechRecognitionAlternative getAlternatives(int index)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternatives in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setAlternatives(int index, SpeechRecognitionAlternative value)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder setAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative value)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(int index, SpeechRecognitionAlternative value)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAllAlternatives(java.lang.Iterable<? extends SpeechRecognitionAlternative> values)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder clearAlternatives()
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder removeAlternatives(int index)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternative.Builder getAlternativesBuilder(int index)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilder in interface StreamingRecognitionResultOrBuilderpublic java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilderList in interface StreamingRecognitionResultOrBuilderpublic SpeechRecognitionAlternative.Builder addAlternativesBuilder()
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternative.Builder addAlternativesBuilder(int index)
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public java.util.List<SpeechRecognitionAlternative.Builder> getAlternativesBuilderList()
[Output-only] May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public boolean getIsFinal()
[Output-only] If `false`, this `StreamingRecognitionResult` represents an interim result that may change. If `true`, this is the final time the speech service will return this particular `StreamingRecognitionResult`, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.
optional bool is_final = 2;getIsFinal in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setIsFinal(boolean value)
[Output-only] If `false`, this `StreamingRecognitionResult` represents an interim result that may change. If `true`, this is the final time the speech service will return this particular `StreamingRecognitionResult`, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.
optional bool is_final = 2;public StreamingRecognitionResult.Builder clearIsFinal()
[Output-only] If `false`, this `StreamingRecognitionResult` represents an interim result that may change. If `true`, this is the final time the speech service will return this particular `StreamingRecognitionResult`, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.
optional bool is_final = 2;public float getStability()
[Output-only] An estimate of the probability that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable). Note that this is not the same as `confidence`, which estimates the probability that a recognition result is correct. This field is only provided for interim results (`is_final=false`). The default of 0.0 is a sentinel value indicating stability was not set.
optional float stability = 3;getStability in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setStability(float value)
[Output-only] An estimate of the probability that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable). Note that this is not the same as `confidence`, which estimates the probability that a recognition result is correct. This field is only provided for interim results (`is_final=false`). The default of 0.0 is a sentinel value indicating stability was not set.
optional float stability = 3;public StreamingRecognitionResult.Builder clearStability()
[Output-only] An estimate of the probability that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable). Note that this is not the same as `confidence`, which estimates the probability that a recognition result is correct. This field is only provided for interim results (`is_final=false`). The default of 0.0 is a sentinel value indicating stability was not set.
optional float stability = 3;public final StreamingRecognitionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public final StreamingRecognitionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>