Google Cloud Functions V1 Client - Class CallFunctionResponse (1.3.1)

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

Namespace

Google \ Cloud \ Functions \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setExecutionId

Execution id of function invocation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResult

Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context.

Returns
TypeDescription
string

setResult

Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getError

Either system or user-function generated error. Set if execution was not successful.

Returns
TypeDescription
string

setError

Either system or user-function generated error. Set if execution was not successful.

Parameter
NameDescription
var string
Returns
TypeDescription
$this