Class: Google::Apis::SpeechV2beta1::LongRunningRecognizeMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/speech_v2beta1/classes.rb,
generated/google/apis/speech_v2beta1/representations.rb,
generated/google/apis/speech_v2beta1/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LongRunningRecognizeMetadata

Returns a new instance of LongRunningRecognizeMetadata.



73
74
75
# File 'generated/google/apis/speech_v2beta1/classes.rb', line 73

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

Instance Attribute Details

#last_update_timeString

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

Returns:

  • (String)


59
60
61
# File 'generated/google/apis/speech_v2beta1/classes.rb', line 59

def last_update_time
  @last_update_time
end

#progress_percentFixnum

Output only. 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)


66
67
68
# File 'generated/google/apis/speech_v2beta1/classes.rb', line 66

def progress_percent
  @progress_percent
end

#start_timeString

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

Returns:

  • (String)


71
72
73
# File 'generated/google/apis/speech_v2beta1/classes.rb', line 71

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



78
79
80
81
82
# File 'generated/google/apis/speech_v2beta1/classes.rb', line 78

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