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

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
NameDescription
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<Google\Cloud\ServiceManagement\V1\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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setResourceNames

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSteps

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSteps

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

Parameter
NameDescription
var array<Google\Cloud\ServiceManagement\V1\OperationMetadata\Step>
Returns
TypeDescription
$this

getProgressPercentage

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

Returns
TypeDescription
int

setProgressPercentage

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStartTime

The start time of the operation.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The start time of the operation.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this