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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
setError
Error message received when making the ad request.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getHeaders
Headers from the response.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Struct|null |
hasHeaders
clearHeaders
setHeaders
Headers from the response.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Struct
|
Returns | |
---|---|
Type | Description |
$this |
getStatusCode
Status code for the response.
Returns | |
---|---|
Type | Description |
string |
setStatusCode
Status code for the response.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSizeBytes
Size in bytes of the response.
Returns | |
---|---|
Type | Description |
int |
setSizeBytes
Size in bytes of the response.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getDuration
Total time elapsed for the response.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Duration|null |
hasDuration
clearDuration
setDuration
Total time elapsed for the response.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |
getBody
The body of the response.
Returns | |
---|---|
Type | Description |
string |
setBody
The body of the response.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |