Class: Google::Apis::SpeechV1p1beta1::LongRunningRecognizeMetadata

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

Overview

Describes the progress of a long-running LongRunningRecognize call. It is included in the metadata field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LongRunningRecognizeMetadata

Returns a new instance of LongRunningRecognizeMetadata.



295
296
297
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 295

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

Instance Attribute Details

#last_update_timeString

Time of the most recent processing update. Corresponds to the JSON property lastUpdateTime

Returns:

  • (String)


271
272
273
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 271

def last_update_time
  @last_update_time
end

#output_configGoogle::Apis::SpeechV1p1beta1::TranscriptOutputConfig

Specifies an optional destination for the recognition results. Corresponds to the JSON property outputConfig



276
277
278
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 276

def output_config
  @output_config
end

#progress_percentFixnum

Approximate percentage of audio processed thus far. Guaranteed to be 100 when the audio is fully processed and the results are available. Corresponds to the JSON property progressPercent

Returns:

  • (Fixnum)


282
283
284
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 282

def progress_percent
  @progress_percent
end

#start_timeString

Time when the request was received. Corresponds to the JSON property startTime

Returns:

  • (String)


287
288
289
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 287

def start_time
  @start_time
end

#uriString

Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content. Corresponds to the JSON property uri

Returns:

  • (String)


293
294
295
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 293

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



300
301
302
303
304
305
306
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 300

def update!(**args)
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
  @output_config = args[:output_config] if args.key?(:output_config)
  @progress_percent = args[:progress_percent] if args.key?(:progress_percent)
  @start_time = args[:start_time] if args.key?(:start_time)
  @uri = args[:uri] if args.key?(:uri)
end