-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstubs.php
279 lines (192 loc) · 4.84 KB
/
stubs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<?php
namespace Grpc {
const CALL_OK = 0;
const CALL_ERROR = 1;
const CALL_ERROR_NOT_ON_SERVER = 2;
const CALL_ERROR_NOT_ON_CLIENT = 3;
const CALL_ERROR_ALREADY_INVOKED = 5;
const CALL_ERROR_NOT_INVOKED = 6;
const CALL_ERROR_ALREADY_FINISHED = 7;
const CALL_ERROR_TOO_MANY_OPERATIONS = 8;
const CALL_ERROR_INVALID_FLAGS = 9;
const WRITE_BUFFER_HINT = 1;
const WRITE_NO_COMPRESS = 2;
const STATUS_OK = 0;
const STATUS_CANCELLED = 1;
const STATUS_UNKNOWN = 2;
const STATUS_INVALID_ARGUMENT = 3;
const STATUS_DEADLINE_EXCEEDED = 4;
const STATUS_NOT_FOUND = 5;
const STATUS_ALREADY_EXISTS = 6;
const STATUS_PERMISSION_DENIED = 7;
const STATUS_UNAUTHENTICATED = 16;
const STATUS_RESOURCE_EXHAUSTED = 8;
const STATUS_FAILED_PRECONDITION = 9;
const STATUS_ABORTED = 10;
const STATUS_OUT_OF_RANGE = 11;
const STATUS_UNIMPLEMENTED = 12;
const STATUS_INTERNAL = 13;
const STATUS_UNAVAILABLE = 14;
const STATUS_DATA_LOSS = 15;
const OP_SEND_INITIAL_METADATA = 0;
const OP_SEND_MESSAGE = 1;
const OP_SEND_CLOSE_FROM_CLIENT = 2;
const OP_SEND_STATUS_FROM_SERVER = 3;
const OP_RECV_INITIAL_METADATA = 4;
const OP_RECV_MESSAGE = 5;
const OP_RECV_STATUS_ON_CLIENT = 6;
const OP_RECV_CLOSE_ON_SERVER = 7;
const CHANNEL_IDLE = 0;
const CHANNEL_CONNECTING = 1;
const CHANNEL_READY = 2;
const CHANNEL_TRANSIENT_FAILURE = 3;
const CHANNEL_FATAL_FAILURE = 4;
const VERSION = '1.57.0dev';
}
namespace Grpc {
class Call
{
protected $channel;
public static function drainCompletionQueue(int $timeout_micros): bool
{
}
public function __construct(\Grpc\Channel $channel, string $method, \Grpc\Timeval $deadline, ?string $host_override = NULL, bool $client_async = false)
{
}
public function startBatch(array $ops, callable $callback): void
{
}
public function getPeer(): string
{
}
public function cancel(): void
{
}
public function setCredentials(\Grpc\ChannelCredentials $credentials): int
{
}
}
}
namespace Grpc {
class Channel
{
public function __construct($target, $args)
{
}
public function getTarget()
{
}
public function getConnectivityState($try_to_connect = null)
{
}
public function watchConnectivityState($last_state, $deadline)
{
}
public function close()
{
}
}
}
namespace Grpc {
class Server
{
public function __construct($args = null)
{
}
public function requestCall()
{
}
public function addHttp2Port($addr)
{
}
public function addSecureHttp2Port($addr, $server_creds)
{
}
public function start()
{
}
}
}
namespace Grpc {
class Timeval
{
public function __construct($microseconds)
{
}
public function add($timeval)
{
}
public static function compare($a_timeval, $b_timeval)
{
}
public static function infFuture()
{
}
public static function infPast()
{
}
public static function now()
{
}
public static function similar($a_timeval, $b_timeval, $threshold_timeval)
{
}
public function sleepUntil()
{
}
public function subtract($timeval)
{
}
public static function zero()
{
}
}
}
namespace Grpc {
class ChannelCredentials
{
public static function setDefaultRootsPem($pem_roots)
{
}
public static function isDefaultRootsPemSet()
{
}
public static function invalidateDefaultRootsPem()
{
}
public static function createDefault()
{
}
public static function createSsl($pem_root_certs = null, $pem_private_key = null, $pem_cert_chain = null)
{
}
public static function createComposite($channel_creds, $call_creds)
{
}
public static function createInsecure()
{
}
public static function createXds(?\Grpc\ChannelCredentials $fallback_creds)
{
}
}
}
namespace Grpc {
class CallCredentials
{
public static function createComposite($creds1, $creds2)
{
}
public static function createFromPlugin($callback)
{
}
}
}
namespace Grpc {
class ServerCredentials
{
public static function createSsl($pem_root_certs, $pem_private_key, $pem_cert_chain)
{
}
}
}