You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Fixed int64 overflow problems on JavaScript https://github.com/improbable-eng/ts-protoc-gen#gotchas
210
242
int64next_id=1 [jstype = JS_STRING];
211
243
}
212
244
245
+
// Lock request message is distributed lock API which is not blocking method tring to get a lock with ttl
213
246
messageTryLockRequest {
214
247
// Required. The lock store name,e.g. `redis`.
215
248
stringstore_name=1;
@@ -236,74 +269,116 @@ message TryLockRequest {
236
269
int32expire=4;
237
270
}
238
271
272
+
// Lock response message returns is the lock obtained.
239
273
messageTryLockResponse {
274
+
// Is lock success
240
275
boolsuccess=1;
241
276
}
242
277
278
+
// UnLock request message
243
279
messageUnlockRequest {
280
+
// The name of store
244
281
stringstore_name=1;
245
282
// resource_id is the lock key.
246
283
stringresource_id=2;
247
-
284
+
// The owner of the lock
248
285
stringlock_owner=3;
249
286
}
250
287
288
+
// UnLock response message
251
289
messageUnlockResponse {
290
+
// The enum of unlock status
252
291
enumStatus {
292
+
// Unlock is success
253
293
SUCCESS=0;
294
+
// The lock is not exist
254
295
LOCK_UNEXIST=1;
296
+
// The lock is belong to others
255
297
LOCK_BELONG_TO_OTHERS=2;
298
+
// Internal error
256
299
INTERNAL_ERROR=3;
257
300
}
258
301
302
+
// The status of unlock
259
303
Statusstatus=1;
260
304
}
261
305
306
+
// Hello request message
262
307
messageSayHelloRequest {
308
+
// The name of service
263
309
stringservice_name=1;
310
+
// Reuqest name
264
311
stringname=2;
265
312
// Optional. This field is used to control the packet size during load tests.
266
313
google.protobuf.Anydata=3;
267
314
}
268
315
316
+
// Hello response message
269
317
messageSayHelloResponse {
318
+
// Hello
270
319
stringhello=1;
320
+
// Hello message of data
271
321
google.protobuf.Anydata=2;
272
322
}
273
323
324
+
// Invoke service request message
274
325
messageInvokeServiceRequest {
326
+
// The identify of InvokeServiceRequest
275
327
stringid=1;
328
+
// InvokeServiceRequest message
276
329
CommonInvokeRequestmessage=3;
277
330
}
278
331
332
+
// Common invoke request message which includes invoke method and data
279
333
messageCommonInvokeRequest {
334
+
// The method of requset
280
335
stringmethod=1;
336
+
// The request data
281
337
google.protobuf.Anydata=2;
338
+
// The content type of request data
282
339
stringcontent_type=3;
340
+
// The extra information of http
283
341
HTTPExtensionhttp_extension=4;
284
342
}
285
343
344
+
// Http extension message is about invoke http information
286
345
messageHTTPExtension {
346
+
// The enum of http reuest method
287
347
enumVerb {
348
+
// NONE
288
349
NONE=0;
350
+
// GET method
289
351
GET=1;
352
+
// HEAD method
290
353
HEAD=2;
354
+
// POST method
291
355
POST=3;
356
+
// PUT method
292
357
PUT=4;
358
+
// DELETE method
293
359
DELETE=5;
360
+
// CONNECT method
294
361
CONNECT=6;
362
+
// CONNECT method
295
363
OPTIONS=7;
364
+
// CONNECT method
296
365
TRACE=8;
366
+
// PATCH method
297
367
PATCH=9;
298
368
}
299
369
370
+
// The method of http reuest
300
371
Verbverb=1;
301
372
373
+
// The query information of http
302
374
stringquerystring=2;
303
375
}
304
376
377
+
// Invoke service response message is result of invoke service queset
305
378
messageInvokeResponse {
379
+
// The response data
306
380
google.protobuf.Anydata=1;
381
+
// The content type of response data
307
382
stringcontent_type=2;
308
383
}
309
384
@@ -575,6 +650,7 @@ message StateOptions {
575
650
// When an ETag is associated with an save or delete request, the store shall allow the update only if the attached ETag matches with the latest ETag in the database.
576
651
// But when ETag is missing in the write requests, the state store shall handle the requests in the specified strategy(e.g. a last-write-wins fashion).
577
652
enumStateConcurrency {
653
+
// Concurrency state is unspecified
578
654
CONCURRENCY_UNSPECIFIED=0;
579
655
// First write wins
580
656
CONCURRENCY_FIRST_WRITE=1;
@@ -584,6 +660,7 @@ message StateOptions {
584
660
585
661
// Enum describing the supported consistency for state.
586
662
enumStateConsistency {
663
+
// Consistency state is unspecified
587
664
CONSISTENCY_UNSPECIFIED=0;
588
665
// The API server assumes data stores are eventually consistent by default.A state store should:
589
666
// - For read requests, the state store can return data from any of the replicas
0 commit comments