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.v2.StreamingRecognitionResult| Modifier and Type | Method and Description |
|---|---|
StreamingRecognitionResult.Builder |
addAllAlternatives(Iterable<? extends SpeechRecognitionAlternative> values)
May contain one or more recognition hypotheses.
|
StreamingRecognitionResult.Builder |
addAlternatives(int index,
SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses.
|
StreamingRecognitionResult.Builder |
addAlternatives(int index,
SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses.
|
StreamingRecognitionResult.Builder |
addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses.
|
StreamingRecognitionResult.Builder |
addAlternatives(SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses.
|
SpeechRecognitionAlternative.Builder |
addAlternativesBuilder()
May contain one or more recognition hypotheses.
|
SpeechRecognitionAlternative.Builder |
addAlternativesBuilder(int index)
May contain one or more recognition hypotheses.
|
StreamingRecognitionResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingRecognitionResult |
build() |
StreamingRecognitionResult |
buildPartial() |
StreamingRecognitionResult.Builder |
clear() |
StreamingRecognitionResult.Builder |
clearAlternatives()
May contain one or more recognition hypotheses.
|
StreamingRecognitionResult.Builder |
clearChannelTag()
For multi-channel audio, this is the channel number corresponding to the
recognized result for the audio from that channel.
|
StreamingRecognitionResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StreamingRecognitionResult.Builder |
clearIsFinal()
If `false`, this
[StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
represents an interim result that may change.
|
StreamingRecognitionResult.Builder |
clearLanguageCode()
Output only.
|
StreamingRecognitionResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StreamingRecognitionResult.Builder |
clearResultEndOffset()
Time offset of the end of this result relative to the beginning of the
audio.
|
StreamingRecognitionResult.Builder |
clearStability()
An estimate of the likelihood that the recognizer will not change its guess
about this interim result.
|
StreamingRecognitionResult.Builder |
clone() |
SpeechRecognitionAlternative |
getAlternatives(int index)
May contain one or more recognition hypotheses.
|
SpeechRecognitionAlternative.Builder |
getAlternativesBuilder(int index)
May contain one or more recognition hypotheses.
|
List<SpeechRecognitionAlternative.Builder> |
getAlternativesBuilderList()
May contain one or more recognition hypotheses.
|
int |
getAlternativesCount()
May contain one or more recognition hypotheses.
|
List<SpeechRecognitionAlternative> |
getAlternativesList()
May contain one or more recognition hypotheses.
|
SpeechRecognitionAlternativeOrBuilder |
getAlternativesOrBuilder(int index)
May contain one or more recognition hypotheses.
|
List<? extends SpeechRecognitionAlternativeOrBuilder> |
getAlternativesOrBuilderList()
May contain one or more recognition hypotheses.
|
int |
getChannelTag()
For multi-channel audio, this is the channel number corresponding to the
recognized result for the audio from that channel.
|
StreamingRecognitionResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIsFinal()
If `false`, this
[StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
represents an interim result that may change.
|
String |
getLanguageCode()
Output only.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Output only.
|
com.google.protobuf.Duration |
getResultEndOffset()
Time offset of the end of this result relative to the beginning of the
audio.
|
com.google.protobuf.Duration.Builder |
getResultEndOffsetBuilder()
Time offset of the end of this result relative to the beginning of the
audio.
|
com.google.protobuf.DurationOrBuilder |
getResultEndOffsetOrBuilder()
Time offset of the end of this result relative to the beginning of the
audio.
|
float |
getStability()
An estimate of the likelihood that the recognizer will not change its guess
about this interim result.
|
boolean |
hasResultEndOffset()
Time offset of the end of this result relative to the beginning of the
audio.
|
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 |
mergeResultEndOffset(com.google.protobuf.Duration value)
Time offset of the end of this result relative to the beginning of the
audio.
|
StreamingRecognitionResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StreamingRecognitionResult.Builder |
removeAlternatives(int index)
May contain one or more recognition hypotheses.
|
StreamingRecognitionResult.Builder |
setAlternatives(int index,
SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses.
|
StreamingRecognitionResult.Builder |
setAlternatives(int index,
SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses.
|
StreamingRecognitionResult.Builder |
setChannelTag(int value)
For multi-channel audio, this is the channel number corresponding to the
recognized result for the audio from that channel.
|
StreamingRecognitionResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingRecognitionResult.Builder |
setIsFinal(boolean value)
If `false`, this
[StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
represents an interim result that may change.
|
StreamingRecognitionResult.Builder |
setLanguageCode(String value)
Output only.
|
StreamingRecognitionResult.Builder |
setLanguageCodeBytes(com.google.protobuf.ByteString value)
Output only.
|
StreamingRecognitionResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StreamingRecognitionResult.Builder |
setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue)
Time offset of the end of this result relative to the beginning of the
audio.
|
StreamingRecognitionResult.Builder |
setResultEndOffset(com.google.protobuf.Duration value)
Time offset of the end of this result relative to the beginning of the
audio.
|
StreamingRecognitionResult.Builder |
setStability(float value)
An estimate of the likelihood 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, 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, 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, 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, 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, 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 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>IOExceptionpublic List<SpeechRecognitionAlternative> getAlternativesList()
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;getAlternativesList in interface StreamingRecognitionResultOrBuilderpublic int getAlternativesCount()
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;getAlternativesCount in interface StreamingRecognitionResultOrBuilderpublic SpeechRecognitionAlternative getAlternatives(int index)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;getAlternatives in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setAlternatives(int index, SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder setAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(int index, SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAllAlternatives(Iterable<? extends SpeechRecognitionAlternative> values)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder clearAlternatives()
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder removeAlternatives(int index)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternative.Builder getAlternativesBuilder(int index)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilder in interface StreamingRecognitionResultOrBuilderpublic List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilderList in interface StreamingRecognitionResultOrBuilderpublic SpeechRecognitionAlternative.Builder addAlternativesBuilder()
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternative.Builder addAlternativesBuilder(int index)
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public List<SpeechRecognitionAlternative.Builder> getAlternativesBuilderList()
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;public boolean getIsFinal()
If `false`, this [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult] represents an interim result that may change. If `true`, this is the final time the speech service will return this particular [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult], the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.
bool is_final = 2;getIsFinal in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setIsFinal(boolean value)
If `false`, this [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult] represents an interim result that may change. If `true`, this is the final time the speech service will return this particular [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult], the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.
bool is_final = 2;value - The isFinal to set.public StreamingRecognitionResult.Builder clearIsFinal()
If `false`, this [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult] represents an interim result that may change. If `true`, this is the final time the speech service will return this particular [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult], the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.
bool is_final = 2;public float getStability()
An estimate of the likelihood that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable). This field is only provided for interim results ([is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`). The default of 0.0 is a sentinel value indicating `stability` was not set.
float stability = 3;getStability in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setStability(float value)
An estimate of the likelihood that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable). This field is only provided for interim results ([is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`). The default of 0.0 is a sentinel value indicating `stability` was not set.
float stability = 3;value - The stability to set.public StreamingRecognitionResult.Builder clearStability()
An estimate of the likelihood that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable). This field is only provided for interim results ([is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`). The default of 0.0 is a sentinel value indicating `stability` was not set.
float stability = 3;public boolean hasResultEndOffset()
Time offset of the end of this result relative to the beginning of the audio.
.google.protobuf.Duration result_end_offset = 4;hasResultEndOffset in interface StreamingRecognitionResultOrBuilderpublic com.google.protobuf.Duration getResultEndOffset()
Time offset of the end of this result relative to the beginning of the audio.
.google.protobuf.Duration result_end_offset = 4;getResultEndOffset in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setResultEndOffset(com.google.protobuf.Duration value)
Time offset of the end of this result relative to the beginning of the audio.
.google.protobuf.Duration result_end_offset = 4;public StreamingRecognitionResult.Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue)
Time offset of the end of this result relative to the beginning of the audio.
.google.protobuf.Duration result_end_offset = 4;public StreamingRecognitionResult.Builder mergeResultEndOffset(com.google.protobuf.Duration value)
Time offset of the end of this result relative to the beginning of the audio.
.google.protobuf.Duration result_end_offset = 4;public StreamingRecognitionResult.Builder clearResultEndOffset()
Time offset of the end of this result relative to the beginning of the audio.
.google.protobuf.Duration result_end_offset = 4;public com.google.protobuf.Duration.Builder getResultEndOffsetBuilder()
Time offset of the end of this result relative to the beginning of the audio.
.google.protobuf.Duration result_end_offset = 4;public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder()
Time offset of the end of this result relative to the beginning of the audio.
.google.protobuf.Duration result_end_offset = 4;getResultEndOffsetOrBuilder in interface StreamingRecognitionResultOrBuilderpublic int getChannelTag()
For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For `audio_channel_count` = `N`, its output values can range from `1` to `N`.
int32 channel_tag = 5;getChannelTag in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setChannelTag(int value)
For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For `audio_channel_count` = `N`, its output values can range from `1` to `N`.
int32 channel_tag = 5;value - The channelTag to set.public StreamingRecognitionResult.Builder clearChannelTag()
For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For `audio_channel_count` = `N`, its output values can range from `1` to `N`.
int32 channel_tag = 5;public String getLanguageCode()
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getLanguageCode in interface StreamingRecognitionResultOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getLanguageCodeBytes in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setLanguageCode(String value)
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The languageCode to set.public StreamingRecognitionResult.Builder clearLanguageCode()
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];public StreamingRecognitionResult.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for languageCode to set.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>Copyright © 2023 Google LLC. All rights reserved.