Speech Metadata#

Metadata representation from Google Speech API

class google.cloud.speech.metadata.Metadata(last_update, start_time, progress_percent)[source]#

Bases: object

Representation of metadata from a Google Speech API Operation.

Parameters:
  • last_update (datetime) – When the Speech operation was last updated.
  • start_time (datetime) – When the Speech operation was started.
  • progress_percent (int) – Percentage of operation that has been completed.
classmethod from_api_repr(response)[source]#

Factory: construct representation of operation metadata.

Parameters:response (dict) – Dictionary containing operation metadata.
Return type:Metadata
Returns:Instance of operation Metadata.
last_update#

Last time operation was updated.

Return type:datetime
Returns:Datetime when operation was last updated.
progress_percent#

Progress percentage completed of operation.

Return type:int
Returns:Percentage of operation completed.
start_time#

Start time of operation.

Return type:datetime
Returns:Datetime when operation was started.