Cloud Speech V2 Client - Class RecognitionResponseMetadata (1.19.0)

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

Namespace

Google \ Cloud \ Speech \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ request_id string

Global request identifier auto-generated by the API.

↳ total_billed_duration Google\Protobuf\Duration

When available, billed audio seconds for the corresponding request.

getRequestId

Global request identifier auto-generated by the API.

Returns
Type Description
string

setRequestId

Global request identifier auto-generated by the API.

Parameter
Name Description
var string
Returns
Type Description
$this

getTotalBilledDuration

When available, billed audio seconds for the corresponding request.

Returns
Type Description
Google\Protobuf\Duration|null

hasTotalBilledDuration

clearTotalBilledDuration

setTotalBilledDuration

When available, billed audio seconds for the corresponding request.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this