HIGUCHI Yuta | e3e9063 | 2016-05-11 16:44:01 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | option java_package = "org.onosproject.grpc.net.link"; |
| 3 | |
| 4 | import "Link.proto"; |
| 5 | |
| 6 | package Link; |
| 7 | |
| 8 | // Message to represent no return value |
| 9 | message Void {} |
| 10 | |
| 11 | message LinkDetectedMsg { |
| 12 | // ProviderId scheme only |
| 13 | string provider_id = 1; |
| 14 | LinkDescription link_description = 2; |
| 15 | } |
| 16 | |
| 17 | message LinkVanishedMsg { |
| 18 | // ProviderId scheme only |
| 19 | string provider_id = 1; |
| 20 | oneof subject { |
| 21 | LinkDescription link_description = 2; |
| 22 | ConnectPoint connect_point = 3; |
| 23 | string device_id = 4; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | service LinkProviderServiceRpc { |
| 28 | rpc LinkDetected(LinkDetectedMsg) returns (Void); |
| 29 | rpc LinkVanished(LinkVanishedMsg) returns (Void); |
| 30 | } |