Google Cloud Redis V1 Client - Class OperationMetadata (1.9.4)

Reference documentation and code samples for the Google Cloud Redis V1 Client class OperationMetadata.

Represents the v1 metadata of the long-running operation.

Generated from protobuf message google.cloud.redis.v1.OperationMetadata

Namespace

Google \ Cloud \ Redis \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ create_time Google\Protobuf\Timestamp

Creation timestamp.

↳ end_time Google\Protobuf\Timestamp

End timestamp.

↳ target string

Operation target.

↳ verb string

Operation verb.

↳ status_detail string

Operation status details.

↳ cancel_requested bool

Specifies if cancellation was requested for the operation.

↳ api_version string

API version.

getCreateTime

Creation timestamp.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Creation timestamp.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

End timestamp.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

End timestamp.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getTarget

Operation target.

Returns
Type Description
string

setTarget

Operation target.

Parameter
Name Description
var string
Returns
Type Description
$this

getVerb

Operation verb.

Returns
Type Description
string

setVerb

Operation verb.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatusDetail

Operation status details.

Returns
Type Description
string

setStatusDetail

Operation status details.

Parameter
Name Description
var string
Returns
Type Description
$this

getCancelRequested

Specifies if cancellation was requested for the operation.

Returns
Type Description
bool

setCancelRequested

Specifies if cancellation was requested for the operation.

Parameter
Name Description
var bool
Returns
Type Description
$this

getApiVersion

API version.

Returns
Type Description
string

setApiVersion

API version.

Parameter
Name Description
var string
Returns
Type Description
$this