Cloud Spanner V1 Client - Class ClientContext (2.3.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class ClientContext.

Container for various pieces of client-owned context attached to a request.

Generated from protobuf message google.spanner.v1.RequestOptions.ClientContext

Namespace

Google \ Cloud \ Spanner \ V1 \ RequestOptions

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ secure_context array|Google\Protobuf\Internal\MapField

Optional. Map of parameter name to value for this request. These values will be returned by any SECURE_CONTEXT() calls invoked by this request (e.g., by queries against Parameterized Secure Views).

getSecureContext

Optional. Map of parameter name to value for this request. These values will be returned by any SECURE_CONTEXT() calls invoked by this request (e.g., by queries against Parameterized Secure Views).

Returns
Type Description
Google\Protobuf\Internal\MapField

setSecureContext

Optional. Map of parameter name to value for this request. These values will be returned by any SECURE_CONTEXT() calls invoked by this request (e.g., by queries against Parameterized Secure Views).

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this