Cloud Speech V1p1beta1 Client - Class LongRunningRecognizeMetadata (1.20.1)

Reference documentation and code samples for the Cloud Speech V1p1beta1 Client class LongRunningRecognizeMetadata.

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.

Generated from protobuf message google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata

Namespace

Google \ Cloud \ Speech \ V1p1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ progress_percentint

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

↳ start_timeGoogle\Protobuf\Timestamp

Time when the request was received.

↳ last_update_timeGoogle\Protobuf\Timestamp

Time of the most recent processing update.

↳ uristring

Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content.

↳ output_configTranscriptOutputConfig

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

getProgressPercent

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

Returns
TypeDescription
int

setProgressPercent

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

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getStartTime

Time when the request was received.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Time when the request was received.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getLastUpdateTime

Time of the most recent processing update.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastUpdateTime

clearLastUpdateTime

setLastUpdateTime

Time of the most recent processing update.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getUri

Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content.

Returns
TypeDescription
string

setUri

Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getOutputConfig

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

Returns
TypeDescription
TranscriptOutputConfig|null

hasOutputConfig

clearOutputConfig

setOutputConfig

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

Parameter
NameDescription
varTranscriptOutputConfig
Returns
TypeDescription
$this