google.api.servicemanagement.v1.OperationMetadata */ class OperationMetadata extends \Google\Protobuf\Internal\Message { /** * The full name of the resources that this operation is directly * associated with. * * Generated from protobuf field repeated string resource_names = 1; */ private $resource_names; /** * Detailed status information for each step. The order is undetermined. * * Generated from protobuf field repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; */ private $steps; /** * Percentage of completion of this operation, ranging from 0 to 100. * * Generated from protobuf field int32 progress_percentage = 3; */ private $progress_percentage = 0; /** * The start time of the operation. * * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; */ private $start_time = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_names * The full name of the resources that this operation is directly * associated with. * @type \Google\Cloud\ServiceManagement\V1\OperationMetadata\Step[]|\Google\Protobuf\Internal\RepeatedField $steps * Detailed status information for each step. The order is undetermined. * @type int $progress_percentage * Percentage of completion of this operation, ranging from 0 to 100. * @type \Google\Protobuf\Timestamp $start_time * The start time of the operation. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Servicemanagement\V1\Resources::initOnce(); parent::__construct($data); } /** * The full name of the resources that this operation is directly * associated with. * * Generated from protobuf field repeated string resource_names = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getResourceNames() { return $this->resource_names; } /** * The full name of the resources that this operation is directly * associated with. * * Generated from protobuf field repeated string resource_names = 1; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourceNames($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->resource_names = $arr; return $this; } /** * Detailed status information for each step. The order is undetermined. * * Generated from protobuf field repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSteps() { return $this->steps; } /** * Detailed status information for each step. The order is undetermined. * * Generated from protobuf field repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; * @param \Google\Cloud\ServiceManagement\V1\OperationMetadata\Step[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSteps($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ServiceManagement\V1\OperationMetadata\Step::class); $this->steps = $arr; return $this; } /** * Percentage of completion of this operation, ranging from 0 to 100. * * Generated from protobuf field int32 progress_percentage = 3; * @return int */ public function getProgressPercentage() { return $this->progress_percentage; } /** * Percentage of completion of this operation, ranging from 0 to 100. * * Generated from protobuf field int32 progress_percentage = 3; * @param int $var * @return $this */ public function setProgressPercentage($var) { GPBUtil::checkInt32($var); $this->progress_percentage = $var; return $this; } /** * The start time of the operation. * * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; * @return \Google\Protobuf\Timestamp */ public function getStartTime() { return $this->start_time; } /** * The start time of the operation. * * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setStartTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->start_time = $var; return $this; } }