Class SpeechRecognitionAlternative.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>
      • getDefaultInstanceForType

        public SpeechRecognitionAlternative getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SpeechRecognitionAlternative build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SpeechRecognitionAlternative buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>
      • mergeFrom

        public SpeechRecognitionAlternative.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechRecognitionAlternative.Builder>
        Throws:
        IOException
      • setTranscriptBytes

        public SpeechRecognitionAlternative.Builder setTranscriptBytes​(com.google.protobuf.ByteString value)
         *Output-only* Transcript text representing the words that the user spoke.
         
        string transcript = 1;
      • getConfidence

        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;
        Specified by:
        getConfidence in interface SpeechRecognitionAlternativeOrBuilder
      • setConfidence

        public 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;
      • clearConfidence

        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;