-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProtobufProtocolMessages.proto
86 lines (73 loc) · 1.46 KB
/
ProtobufProtocolMessages.proto
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
syntax = "proto3";
import "google/protobuf/any.proto";
package SignalP.Protocol.Protobuf;
message ProtobufProtocolMessage
{
oneof Message
{
Invocation Invocation = 1;
StreamItem StreamItem = 2;
Completion Completion = 3;
StreamInvocation StreamInvocation = 4;
CancelInvocation CancelInvocation = 5;
Ping Ping = 6;
Close Close = 7;
Ack Ack = 8;
Sequence Sequence = 9;
}
}
message Argument
{
google.protobuf.Any Proto = 1;
}
message Invocation
{
map<string, string> Headers = 1;
optional string InvocationId = 2;
string Target = 3;
repeated Argument Arguments = 4;
repeated string StreamIds = 5;
}
message StreamItem
{
map<string, string> Headers = 1;
optional string InvocationId = 2;
Argument Item = 3;
}
message Completion
{
map<string, string> Headers = 1;
optional string InvocationId = 2;
oneof Result
{
string Error = 4;
Argument Item = 5;
}
}
message StreamInvocation
{
map<string, string> Headers = 1;
string InvocationId = 2;
string Target = 3;
repeated Argument Arguments = 4;
repeated string StreamIds = 5;
}
message CancelInvocation
{
map<string, string> Headers = 1;
string InvocationId = 2;
}
message Ping { }
message Close
{
string Error = 1;
optional bool AllowReconnect = 2;
}
message Ack
{
int64 SequenceId = 1;
}
message Sequence
{
int64 SequenceId = 1;
}