PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / google / google / longrunning / src / LongRunning / WaitOperationRequest.php

WaitOperationRequest.php in Media Cloud Sync 1.4.1, at includes/sdk/google/google/longrunning/src/LongRunning/WaitOperationRequest.php

110 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.WaitOperation][google.longrunning.Operations.WaitOperation].
13 *
14 * Generated from protobuf message <code>google.longrunning.WaitOperationRequest</code>
15 */
16 class WaitOperationRequest extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
17 {
18 /**
19 * The name of the operation resource to wait on.
20 *
21 * Generated from protobuf field <code>string name = 1;</code>
22 */
23 private $name = '';
24 /**
25 * The maximum duration to wait before timing out. If left blank, the wait
26 * will be at most the time permitted by the underlying HTTP/RPC protocol.
27 * If RPC context deadline is also specified, the shorter one will be used.
28 *
29 * Generated from protobuf field <code>.google.protobuf.Duration timeout = 2;</code>
30 */
31 private $timeout = null;
32 /**
33 * Constructor.
34 *
35 * @param array $data {
36 * Optional. Data for populating the Message object.
37 *
38 * @type string $name
39 * The name of the operation resource to wait on.
40 * @type \Google\Protobuf\Duration $timeout
41 * The maximum duration to wait before timing out. If left blank, the wait
42 * will be at most the time permitted by the underlying HTTP/RPC protocol.
43 * If RPC context deadline is also specified, the shorter one will be used.
44 * }
45 */
46 public function __construct($data = NULL)
47 {
48 \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Longrunning\Operations::initOnce();
49 parent::__construct($data);
50 }
51 /**
52 * The name of the operation resource to wait on.
53 *
54 * Generated from protobuf field <code>string name = 1;</code>
55 * @return string
56 */
57 public function getName()
58 {
59 return $this->name;
60 }
61 /**
62 * The name of the operation resource to wait on.
63 *
64 * Generated from protobuf field <code>string name = 1;</code>
65 * @param string $var
66 * @return $this
67 */
68 public function setName($var)
69 {
70 GPBUtil::checkString($var, True);
71 $this->name = $var;
72 return $this;
73 }
74 /**
75 * The maximum duration to wait before timing out. If left blank, the wait
76 * will be at most the time permitted by the underlying HTTP/RPC protocol.
77 * If RPC context deadline is also specified, the shorter one will be used.
78 *
79 * Generated from protobuf field <code>.google.protobuf.Duration timeout = 2;</code>
80 * @return \Google\Protobuf\Duration|null
81 */
82 public function getTimeout()
83 {
84 return $this->timeout;
85 }
86 public function hasTimeout()
87 {
88 return isset($this->timeout);
89 }
90 public function clearTimeout()
91 {
92 unset($this->timeout);
93 }
94 /**
95 * The maximum duration to wait before timing out. If left blank, the wait
96 * will be at most the time permitted by the underlying HTTP/RPC protocol.
97 * If RPC context deadline is also specified, the shorter one will be used.
98 *
99 * Generated from protobuf field <code>.google.protobuf.Duration timeout = 2;</code>
100 * @param \Google\Protobuf\Duration $var
101 * @return $this
102 */
103 public function setTimeout($var)
104 {
105 GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Duration::class);
106 $this->timeout = $var;
107 return $this;
108 }
109 }
110