Speech Operation#
Long running operation representation for Google Speech API
-
class
google.cloud.speech.operation.
Operation
(client, name, complete=False, metadata=None, results=None)[source]# Bases:
google.cloud.operation.Operation
Representation of a Google API Long-Running Operation.
Parameters: -
complete
# Completion state of the Operation.
Return type: bool Returns: True if already completed, else false.
-
classmethod
from_api_repr
(client, response)[source]# Factory: construct an instance from Google Speech API.
Parameters: Return type: Returns: Instance of ~google.cloud.speech.operations.Operation.
-
poll
()[source]# Check if the operation has finished.
Return type: bool Returns: A boolean indicating if the current operation has completed. Raises: ValueError
if the operation has already completed.
-