Cloud Speech V2 Client - Class RecognitionResponseMetadata (1.9.1)

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

Metadata about the recognition request and response.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ total_billed_duration Google\Protobuf\Duration

When available, billed audio seconds for the corresponding request.

getTotalBilledDuration

When available, billed audio seconds for the corresponding request.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTotalBilledDuration

clearTotalBilledDuration

setTotalBilledDuration

When available, billed audio seconds for the corresponding request.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this