Class AsyncRecognizeResponse.Builder

  • All Implemented Interfaces:
    AsyncRecognizeResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AsyncRecognizeResponse

    public static final class AsyncRecognizeResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
    implements AsyncRecognizeResponseOrBuilder
     The only message returned to the client by `AsyncRecognize`. It contains the
     result as zero or more sequential `SpeechRecognitionResult` messages. It is
     included in the `result.response` field of the `Operation` returned by the
     `GetOperation` call of the `google::longrunning::Operations` service.
     
    Protobuf type google.cloud.speech.v1beta1.AsyncRecognizeResponse
    • 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<AsyncRecognizeResponse.Builder>
      • clear

        public AsyncRecognizeResponse.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.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<AsyncRecognizeResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public AsyncRecognizeResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
      • clearField

        public AsyncRecognizeResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
      • clearOneof

        public AsyncRecognizeResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
      • setRepeatedField

        public AsyncRecognizeResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
      • addRepeatedField

        public AsyncRecognizeResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
      • isInitialized

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

        public AsyncRecognizeResponse.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<AsyncRecognizeResponse.Builder>
        Throws:
        IOException
      • getResultsCount

        public int getResultsCount()
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
        Specified by:
        getResultsCount in interface AsyncRecognizeResponseOrBuilder
      • getResults

        public SpeechRecognitionResult getResults​(int index)
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
        Specified by:
        getResults in interface AsyncRecognizeResponseOrBuilder
      • setResults

        public AsyncRecognizeResponse.Builder setResults​(int index,
                                                         SpeechRecognitionResult value)
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • setResults

        public AsyncRecognizeResponse.Builder setResults​(int index,
                                                         SpeechRecognitionResult.Builder builderForValue)
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • addResults

        public AsyncRecognizeResponse.Builder addResults​(SpeechRecognitionResult value)
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • addResults

        public AsyncRecognizeResponse.Builder addResults​(int index,
                                                         SpeechRecognitionResult value)
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • addResults

        public AsyncRecognizeResponse.Builder addResults​(int index,
                                                         SpeechRecognitionResult.Builder builderForValue)
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • clearResults

        public AsyncRecognizeResponse.Builder clearResults()
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • removeResults

        public AsyncRecognizeResponse.Builder removeResults​(int index)
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • getResultsBuilder

        public SpeechRecognitionResult.Builder getResultsBuilder​(int index)
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • addResultsBuilder

        public SpeechRecognitionResult.Builder addResultsBuilder()
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • addResultsBuilder

        public SpeechRecognitionResult.Builder addResultsBuilder​(int index)
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • getResultsBuilderList

        public List<SpeechRecognitionResult.Builder> getResultsBuilderList()
         *Output-only* Sequential list of transcription results corresponding to
         sequential portions of audio.
         
        repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
      • setUnknownFields

        public final AsyncRecognizeResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>
      • mergeUnknownFields

        public final AsyncRecognizeResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>