Class: Google::Apis::SpeechV1::LongRunningRecognizeRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/speech_v1/classes.rb,
generated/google/apis/speech_v1/representations.rb,
generated/google/apis/speech_v1/representations.rb

Overview

The top-level message sent by the client for the LongRunningRecognize method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LongRunningRecognizeRequest

Returns a new instance of LongRunningRecognizeRequest.



103
104
105
# File 'generated/google/apis/speech_v1/classes.rb', line 103

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audioGoogle::Apis::SpeechV1::RecognitionAudio

Contains audio data in the encoding specified in the RecognitionConfig. Either content or uri must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT. See content limits. Corresponds to the JSON property audio



95
96
97
# File 'generated/google/apis/speech_v1/classes.rb', line 95

def audio
  @audio
end

#configGoogle::Apis::SpeechV1::RecognitionConfig

Provides information to the recognizer that specifies how to process the request. Corresponds to the JSON property config



101
102
103
# File 'generated/google/apis/speech_v1/classes.rb', line 101

def config
  @config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



108
109
110
111
# File 'generated/google/apis/speech_v1/classes.rb', line 108

def update!(**args)
  @audio = args[:audio] if args.key?(:audio)
  @config = args[:config] if args.key?(:config)
end