blob: 5021b9a2aca82b6c144ea0cad44cde5011726004 [file] [log] [blame]
khenaidooabad44c2018-08-03 16:58:35 -04001syntax = "proto3";
2
3import "google/protobuf/any.proto";
4
5option go_package = "github.com/opencord/voltha-go/protos/core_adapter";
6
7package voltha;
8
9message StrType {
10 string val = 1;
11}
12
13message IntType {
14 int64 val = 1;
15}
16
17message BoolType {
18 bool val = 1;
19}
20
21message Error {
22 string reason = 1;
23}
24
25enum MessageType {
26 REQUEST = 0;
27 RESPONSE = 1;
28}
29
30message Header {
31 string id = 1;
32 MessageType type = 2;
33 string from_topic = 3;
34 string to_topic = 4;
35 int64 timestamp = 5;
36}
37
38message Argument {
39 string key = 1;
40 google.protobuf.Any value = 2;
41}
42
43message InterContainerMessage {
44 Header header = 1;
45 google.protobuf.Any body = 2;
46}
47
48message InterContainerRequestBody {
49 string rpc = 2;
50 repeated Argument args = 3;
51 bool response_required = 4;
52 string reply_to_topic = 5;
53}
54
55message InterContainerResponseBody {
56 bool success = 1;
57 google.protobuf.Any result = 3;
58}