-
Notifications
You must be signed in to change notification settings - Fork 2
/
data_moniker.proto
89 lines (74 loc) · 2.36 KB
/
data_moniker.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
87
88
89
//---------------------------------------------------------------------
//---------------------------------------------------------------------
syntax = "proto3";
//---------------------------------------------------------------------
//---------------------------------------------------------------------
import "google/protobuf/any.proto";
//---------------------------------------------------------------------
//---------------------------------------------------------------------
package ni.data_monikers;
//---------------------------------------------------------------------
//---------------------------------------------------------------------
option csharp_namespace = "NationalInstruments.DataMonikers";
//---------------------------------------------------------------------
//---------------------------------------------------------------------
service MonikerService {
rpc BeginSidebandStream(BeginMonikerSidebandStreamRequest) returns (BeginMonikerSidebandStreamResponse) {};
rpc StreamReadWrite(stream MonikerWriteRequest) returns (stream MonikerReadResult) {};
rpc StreamRead(MonikerList) returns (stream MonikerReadResult) {};
rpc StreamWrite(stream MonikerWriteRequest) returns (stream StreamWriteResponse) {};
}
enum SidebandStrategy
{
UNKNOWN = 0;
GRPC = 1;
SHARED_MEMORY = 2;
DOUBLE_BUFFERED_SHARED_MEMORY = 3;
SOCKETS = 4;
SOCKETS_LOW_LATENCY = 5;
HYPERVISOR_SOCKETS = 6;
RDMA = 7;
RDMA_LOW_LATENCY = 8;
}
message BeginMonikerSidebandStreamRequest {
SidebandStrategy strategy = 1;
MonikerList monikers = 2;
}
message BeginMonikerSidebandStreamResponse {
SidebandStrategy strategy = 1;
string connection_url = 2;
string sideband_identifier = 3;
sint64 buffer_size = 4;
}
message Moniker {
string service_location = 1;
string data_source = 2;
int64 data_instance = 3;
}
message MonikerWriteRequest {
oneof write_data {
MonikerList monikers = 1;
MonikerValues data = 2;
}
}
message MonikerReadResult {
MonikerValues data = 1;
}
message MonikerList {
bool is_initial_write = 1;
repeated Moniker read_monikers = 2;
repeated Moniker write_monikers = 3;
}
message MonikerValues {
repeated google.protobuf.Any values = 1;
}
message SidebandWriteRequest {
bool cancel = 1;
MonikerValues values = 2;
}
message SidebandReadResponse {
bool cancel = 1;
MonikerValues values = 2;
}
message StreamWriteResponse {
}