public static final class SpeechRecognitionAlternative.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder> implements SpeechRecognitionAlternativeOrBuilder
Alternative hypotheses (a.k.a. n-best list).Protobuf type
google.cloud.speech.v1beta1.SpeechRecognitionAlternative| Modifier and Type | Method and Description |
|---|---|
SpeechRecognitionAlternative.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SpeechRecognitionAlternative |
build() |
SpeechRecognitionAlternative |
buildPartial() |
SpeechRecognitionAlternative.Builder |
clear() |
SpeechRecognitionAlternative.Builder |
clearConfidence()
[Output-only] The confidence estimate between 0.0 and 1.0.
|
SpeechRecognitionAlternative.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SpeechRecognitionAlternative.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SpeechRecognitionAlternative.Builder |
clearTranscript()
[Output-only] Transcript text representing the words that the user spoke.
|
SpeechRecognitionAlternative.Builder |
clone() |
float |
getConfidence()
[Output-only] The confidence estimate between 0.0 and 1.0.
|
SpeechRecognitionAlternative |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getTranscript()
[Output-only] Transcript text representing the words that the user spoke.
|
com.google.protobuf.ByteString |
getTranscriptBytes()
[Output-only] Transcript text representing the words that the user spoke.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SpeechRecognitionAlternative.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SpeechRecognitionAlternative.Builder |
mergeFrom(com.google.protobuf.Message other) |
SpeechRecognitionAlternative.Builder |
mergeFrom(SpeechRecognitionAlternative other) |
SpeechRecognitionAlternative.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SpeechRecognitionAlternative.Builder |
setConfidence(float value)
[Output-only] The confidence estimate between 0.0 and 1.0.
|
SpeechRecognitionAlternative.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SpeechRecognitionAlternative.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
SpeechRecognitionAlternative.Builder |
setTranscript(java.lang.String value)
[Output-only] Transcript text representing the words that the user spoke.
|
SpeechRecognitionAlternative.Builder |
setTranscriptBytes(com.google.protobuf.ByteString value)
[Output-only] Transcript text representing the words that the user spoke.
|
SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpeechRecognitionAlternative build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpeechRecognitionAlternative buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpeechRecognitionAlternative.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder mergeFrom(SpeechRecognitionAlternative other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>java.io.IOExceptionpublic java.lang.String getTranscript()
[Output-only] Transcript text representing the words that the user spoke.
optional string transcript = 1;getTranscript in interface SpeechRecognitionAlternativeOrBuilderpublic com.google.protobuf.ByteString getTranscriptBytes()
[Output-only] Transcript text representing the words that the user spoke.
optional string transcript = 1;getTranscriptBytes in interface SpeechRecognitionAlternativeOrBuilderpublic SpeechRecognitionAlternative.Builder setTranscript(java.lang.String value)
[Output-only] Transcript text representing the words that the user spoke.
optional string transcript = 1;public SpeechRecognitionAlternative.Builder clearTranscript()
[Output-only] Transcript text representing the words that the user spoke.
optional string transcript = 1;public SpeechRecognitionAlternative.Builder setTranscriptBytes(com.google.protobuf.ByteString value)
[Output-only] Transcript text representing the words that the user spoke.
optional string transcript = 1;public float getConfidence()
[Output-only] The confidence estimate between 0.0 and 1.0. A higher number means the system is more confident that the recognition is correct. This field is typically provided only for the top hypothesis, and only for `is_final=true` results. The default of 0.0 is a sentinel value indicating confidence was not set.
optional float confidence = 2;getConfidence in interface SpeechRecognitionAlternativeOrBuilderpublic SpeechRecognitionAlternative.Builder setConfidence(float value)
[Output-only] The confidence estimate between 0.0 and 1.0. A higher number means the system is more confident that the recognition is correct. This field is typically provided only for the top hypothesis, and only for `is_final=true` results. The default of 0.0 is a sentinel value indicating confidence was not set.
optional float confidence = 2;public SpeechRecognitionAlternative.Builder clearConfidence()
[Output-only] The confidence estimate between 0.0 and 1.0. A higher number means the system is more confident that the recognition is correct. This field is typically provided only for the top hypothesis, and only for `is_final=true` results. The default of 0.0 is a sentinel value indicating confidence was not set.
optional float confidence = 2;public final SpeechRecognitionAlternative.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public final SpeechRecognitionAlternative.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>