Google Cloud Video Stitcher V1 Client - Class ResponseMetadata (0.3.4)

Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class ResponseMetadata.

Metadata for the response of an ad request.

Generated from protobuf message google.cloud.video.stitcher.v1.ResponseMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ error string

Error message received when making the ad request.

↳ headers Google\Protobuf\Struct

Headers from the response.

↳ status_code string

Status code for the response.

↳ size_bytes int

Size in bytes of the response.

↳ duration Google\Protobuf\Duration

Total time elapsed for the response.

↳ body string

The body of the response.

getError

Error message received when making the ad request.

Returns
TypeDescription
string

setError

Error message received when making the ad request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHeaders

Headers from the response.

Returns
TypeDescription
Google\Protobuf\Struct|null

hasHeaders

clearHeaders

setHeaders

Headers from the response.

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

getStatusCode

Status code for the response.

Returns
TypeDescription
string

setStatusCode

Status code for the response.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSizeBytes

Size in bytes of the response.

Returns
TypeDescription
int

setSizeBytes

Size in bytes of the response.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDuration

Total time elapsed for the response.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasDuration

clearDuration

setDuration

Total time elapsed for the response.

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

getBody

The body of the response.

Returns
TypeDescription
string

setBody

The body of the response.

Parameter
NameDescription
var string
Returns
TypeDescription
$this