media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
longrunning
/
src
/
LongRunning
/
DeleteOperationRequest.php
DeleteOperationRequest.php in Media Cloud Sync 1.4.1, at includes/sdk/google/google/longrunning/src/LongRunning/DeleteOperationRequest.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # source: google/longrunning/operations.proto |
| 5 | namespace Dudlewebs\WPMCS\GCP\Google\LongRunning; |
| 6 | |
| 7 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType; |
| 8 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil; |
| 9 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField; |
| 10 | /** |
| 11 | * The request message for |
| 12 | * [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation]. |
| 13 | * |
| 14 | * Generated from protobuf message <code>google.longrunning.DeleteOperationRequest</code> |
| 15 | */ |
| 16 | class DeleteOperationRequest extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message |
| 17 | { |
| 18 | /** |
| 19 | * The name of the operation resource to be deleted. |
| 20 | * |
| 21 | * Generated from protobuf field <code>string name = 1;</code> |
| 22 | */ |
| 23 | private $name = ''; |
| 24 | /** |
| 25 | * @param string $name The name of the operation resource to be deleted. |
| 26 | * |
| 27 | * @return \Google\LongRunning\DeleteOperationRequest |
| 28 | * |
| 29 | * @experimental |
| 30 | */ |
| 31 | public static function build(string $name) : self |
| 32 | { |
| 33 | return (new self())->setName($name); |
| 34 | } |
| 35 | /** |
| 36 | * Constructor. |
| 37 | * |
| 38 | * @param array $data { |
| 39 | * Optional. Data for populating the Message object. |
| 40 | * |
| 41 | * @type string $name |
| 42 | * The name of the operation resource to be deleted. |
| 43 | * } |
| 44 | */ |
| 45 | public function __construct($data = NULL) |
| 46 | { |
| 47 | \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Longrunning\Operations::initOnce(); |
| 48 | parent::__construct($data); |
| 49 | } |
| 50 | /** |
| 51 | * The name of the operation resource to be deleted. |
| 52 | * |
| 53 | * Generated from protobuf field <code>string name = 1;</code> |
| 54 | * @return string |
| 55 | */ |
| 56 | public function getName() |
| 57 | { |
| 58 | return $this->name; |
| 59 | } |
| 60 | /** |
| 61 | * The name of the operation resource to be deleted. |
| 62 | * |
| 63 | * Generated from protobuf field <code>string name = 1;</code> |
| 64 | * @param string $var |
| 65 | * @return $this |
| 66 | */ |
| 67 | public function setName($var) |
| 68 | { |
| 69 | GPBUtil::checkString($var, True); |
| 70 | $this->name = $var; |
| 71 | return $this; |
| 72 | } |
| 73 | } |
| 74 |