Cloud Speech V2 Client - Class BatchRecognizeTranscriptionMetadata (1.8.0)

Reference documentation and code samples for the Cloud Speech V2 Client class BatchRecognizeTranscriptionMetadata.

Metadata about transcription for a single file (for example, progress percent).

Generated from protobuf message google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ progress_percent int

How much of the file has been transcribed so far.

↳ error Google\Rpc\Status

Error if one was encountered.

↳ uri string

The GCS URI to which recognition results will be written.

getProgressPercent

How much of the file has been transcribed so far.

Generated from protobuf field int32 progress_percent = 1;

Returns
TypeDescription
int

setProgressPercent

How much of the file has been transcribed so far.

Generated from protobuf field int32 progress_percent = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getError

Error if one was encountered.

Generated from protobuf field .google.rpc.Status error = 2;

Returns
TypeDescription
Google\Rpc\Status|null

hasError

clearError

setError

Error if one was encountered.

Generated from protobuf field .google.rpc.Status error = 2;

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getUri

The GCS URI to which recognition results will be written.

Generated from protobuf field string uri = 3;

Returns
TypeDescription
string

setUri

The GCS URI to which recognition results will be written.

Generated from protobuf field string uri = 3;

Parameter
NameDescription
var string
Returns
TypeDescription
$this