public static final class SpeechRecognitionAlternative.Builder extends GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder> implements SpeechRecognitionAlternativeOrBuilder
Alternative hypotheses (a.k.a. n-best list).Protobuf type
google.cloud.speech.v1beta1.SpeechRecognitionAlternativegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic SpeechRecognitionAlternative build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic SpeechRecognitionAlternative buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic SpeechRecognitionAlternative.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder mergeFrom(SpeechRecognitionAlternative other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<SpeechRecognitionAlternative.Builder>java.io.IOExceptionpublic java.lang.String getTranscript()
*Output-only* Transcript text representing the words that the user spoke.
string transcript = 1;getTranscript in interface SpeechRecognitionAlternativeOrBuilderpublic ByteString getTranscriptBytes()
*Output-only* Transcript text representing the words that the user spoke.
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.
string transcript = 1;public SpeechRecognitionAlternative.Builder clearTranscript()
*Output-only* Transcript text representing the words that the user spoke.
string transcript = 1;public SpeechRecognitionAlternative.Builder setTranscriptBytes(ByteString value)
*Output-only* Transcript text representing the words that the user spoke.
string transcript = 1;public float getConfidence()
*Output-only* The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is typically provided only for the top hypothesis, and only for `is_final=true` results. Clients should not rely on the `confidence` field as it is not guaranteed to be accurate, or even set, in any of the results. The default of 0.0 is a sentinel value indicating `confidence` was not set.
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 indicates an estimated greater likelihood that the recognized words are correct. This field is typically provided only for the top hypothesis, and only for `is_final=true` results. Clients should not rely on the `confidence` field as it is not guaranteed to be accurate, or even set, in any of the results. The default of 0.0 is a sentinel value indicating `confidence` was not set.
float confidence = 2;public SpeechRecognitionAlternative.Builder clearConfidence()
*Output-only* The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is typically provided only for the top hypothesis, and only for `is_final=true` results. Clients should not rely on the `confidence` field as it is not guaranteed to be accurate, or even set, in any of the results. The default of 0.0 is a sentinel value indicating `confidence` was not set.
float confidence = 2;public final SpeechRecognitionAlternative.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public final SpeechRecognitionAlternative.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>