khenaidoo | abad44c | 2018-08-03 16:58:35 -0400 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | import "google/protobuf/any.proto"; |
| 4 | |
| 5 | option go_package = "github.com/opencord/voltha-go/protos/core_adapter"; |
| 6 | |
| 7 | package voltha; |
| 8 | |
| 9 | message StrType { |
| 10 | string val = 1; |
| 11 | } |
| 12 | |
| 13 | message IntType { |
| 14 | int64 val = 1; |
| 15 | } |
| 16 | |
| 17 | message BoolType { |
| 18 | bool val = 1; |
| 19 | } |
| 20 | |
| 21 | message Error { |
| 22 | string reason = 1; |
| 23 | } |
| 24 | |
| 25 | enum MessageType { |
| 26 | REQUEST = 0; |
| 27 | RESPONSE = 1; |
| 28 | } |
| 29 | |
| 30 | message 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 | |
| 38 | message Argument { |
| 39 | string key = 1; |
| 40 | google.protobuf.Any value = 2; |
| 41 | } |
| 42 | |
| 43 | message InterContainerMessage { |
| 44 | Header header = 1; |
| 45 | google.protobuf.Any body = 2; |
| 46 | } |
| 47 | |
| 48 | message InterContainerRequestBody { |
| 49 | string rpc = 2; |
| 50 | repeated Argument args = 3; |
| 51 | bool response_required = 4; |
| 52 | string reply_to_topic = 5; |
| 53 | } |
| 54 | |
| 55 | message InterContainerResponseBody { |
| 56 | bool success = 1; |
| 57 | google.protobuf.Any result = 3; |
| 58 | } |