Cloud Speech V2 Client - Class BatchRecognizeResponse (1.13.1)

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

Response message for BatchRecognize that is packaged into a longrunning Operation.

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

Namespace

Google \ Cloud \ Speech \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ results array|Google\Protobuf\Internal\MapField

Map from filename to the final result for that file.

↳ total_billed_duration Google\Protobuf\Duration

When available, billed audio seconds for the corresponding request.

getResults

Map from filename to the final result for that file.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setResults

Map from filename to the final result for that file.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

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