Google Cloud Service Management V1 Client - Class OperationMetadata (2.0.1)

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

The metadata associated with a long running operation resource.

Generated from protobuf message google.api.servicemanagement.v1.OperationMetadata

Namespace

Google \ Cloud \ ServiceManagement \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ resource_names array

The full name of the resources that this operation is directly associated with.

↳ steps array<OperationMetadata\Step>

Detailed status information for each step. The order is undetermined.

↳ progress_percentage int

Percentage of completion of this operation, ranging from 0 to 100.

↳ start_time Google\Protobuf\Timestamp

The start time of the operation.

getResourceNames

The full name of the resources that this operation is directly associated with.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setResourceNames

The full name of the resources that this operation is directly associated with.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getSteps

Detailed status information for each step. The order is undetermined.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSteps

Detailed status information for each step. The order is undetermined.

Parameter
Name Description
var array<OperationMetadata\Step>
Returns
Type Description
$this

getProgressPercentage

Percentage of completion of this operation, ranging from 0 to 100.

Returns
Type Description
int

setProgressPercentage

Percentage of completion of this operation, ranging from 0 to 100.

Parameter
Name Description
var int
Returns
Type Description
$this

getStartTime

The start time of the operation.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The start time of the operation.

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