Reference documentation and code samples for the Google Cloud Functions V1 Client class CallFunctionResponse.
Response of CallFunction method.
Generated from protobuf message google.cloud.functions.v1.CallFunctionResponse
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ execution_id |
string
Execution id of function invocation. |
↳ result |
string
Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context. |
↳ error |
string
Either system or user-function generated error. Set if execution was not successful. |
getExecutionId
Execution id of function invocation.
| Returns | |
|---|---|
| Type | Description |
string |
|
setExecutionId
Execution id of function invocation.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResult
Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context.
| Returns | |
|---|---|
| Type | Description |
string |
|
setResult
Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getError
Either system or user-function generated error. Set if execution was not successful.
| Returns | |
|---|---|
| Type | Description |
string |
|
setError
Either system or user-function generated error. Set if execution was not successful.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|