Class StreamingRecognizeRequest.Builder

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

    public static final class StreamingRecognizeRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
    implements StreamingRecognizeRequestOrBuilder
     The top-level message sent by the client for the `StreamingRecognize` method.
     Multiple `StreamingRecognizeRequest` messages are sent. The first message
     must contain a `streaming_config` message and must not contain `audio` data.
     All subsequent messages must contain `audio` data and must not contain a
     `streaming_config` message.
     
    Protobuf type google.cloud.speech.v1beta1.StreamingRecognizeRequest
    • 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<StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>
      • isInitialized

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

        public StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>
        Throws:
        IOException
      • hasStreamingConfig

        public boolean hasStreamingConfig()
         Provides information to the recognizer that specifies how to process the
         request. The first `StreamingRecognizeRequest` message must contain a
         `streaming_config`  message.
         
        .google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
        Specified by:
        hasStreamingConfig in interface StreamingRecognizeRequestOrBuilder
      • getStreamingConfig

        public StreamingRecognitionConfig getStreamingConfig()
         Provides information to the recognizer that specifies how to process the
         request. The first `StreamingRecognizeRequest` message must contain a
         `streaming_config`  message.
         
        .google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
        Specified by:
        getStreamingConfig in interface StreamingRecognizeRequestOrBuilder
      • setStreamingConfig

        public StreamingRecognizeRequest.Builder setStreamingConfig​(StreamingRecognitionConfig value)
         Provides information to the recognizer that specifies how to process the
         request. The first `StreamingRecognizeRequest` message must contain a
         `streaming_config`  message.
         
        .google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
      • setStreamingConfig

        public StreamingRecognizeRequest.Builder setStreamingConfig​(StreamingRecognitionConfig.Builder builderForValue)
         Provides information to the recognizer that specifies how to process the
         request. The first `StreamingRecognizeRequest` message must contain a
         `streaming_config`  message.
         
        .google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
      • mergeStreamingConfig

        public StreamingRecognizeRequest.Builder mergeStreamingConfig​(StreamingRecognitionConfig value)
         Provides information to the recognizer that specifies how to process the
         request. The first `StreamingRecognizeRequest` message must contain a
         `streaming_config`  message.
         
        .google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
      • clearStreamingConfig

        public StreamingRecognizeRequest.Builder clearStreamingConfig()
         Provides information to the recognizer that specifies how to process the
         request. The first `StreamingRecognizeRequest` message must contain a
         `streaming_config`  message.
         
        .google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
      • getStreamingConfigBuilder

        public StreamingRecognitionConfig.Builder getStreamingConfigBuilder()
         Provides information to the recognizer that specifies how to process the
         request. The first `StreamingRecognizeRequest` message must contain a
         `streaming_config`  message.
         
        .google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
      • getAudioContent

        public com.google.protobuf.ByteString getAudioContent()
         The audio data to be recognized. Sequential chunks of audio data are sent
         in sequential `StreamingRecognizeRequest` messages. The first
         `StreamingRecognizeRequest` message must not contain `audio_content` data
         and all subsequent `StreamingRecognizeRequest` messages must contain
         `audio_content` data. The audio bytes must be encoded as specified in
         `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
         pure binary representation (not base64). See
         [audio limits](https://cloud.google.com/speech/limits#content).
         
        bytes audio_content = 2;
        Specified by:
        getAudioContent in interface StreamingRecognizeRequestOrBuilder
      • setAudioContent

        public StreamingRecognizeRequest.Builder setAudioContent​(com.google.protobuf.ByteString value)
         The audio data to be recognized. Sequential chunks of audio data are sent
         in sequential `StreamingRecognizeRequest` messages. The first
         `StreamingRecognizeRequest` message must not contain `audio_content` data
         and all subsequent `StreamingRecognizeRequest` messages must contain
         `audio_content` data. The audio bytes must be encoded as specified in
         `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
         pure binary representation (not base64). See
         [audio limits](https://cloud.google.com/speech/limits#content).
         
        bytes audio_content = 2;
      • clearAudioContent

        public StreamingRecognizeRequest.Builder clearAudioContent()
         The audio data to be recognized. Sequential chunks of audio data are sent
         in sequential `StreamingRecognizeRequest` messages. The first
         `StreamingRecognizeRequest` message must not contain `audio_content` data
         and all subsequent `StreamingRecognizeRequest` messages must contain
         `audio_content` data. The audio bytes must be encoded as specified in
         `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
         pure binary representation (not base64). See
         [audio limits](https://cloud.google.com/speech/limits#content).
         
        bytes audio_content = 2;
      • setUnknownFields

        public final StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>
      • mergeUnknownFields

        public final StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>