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 | |
Jian Li | c9b4bf1 | 2017-06-26 23:50:32 +0900 | [diff] [blame] | 4 | import "net/link/LinkDescriptionProto.proto"; |
| 5 | import "net/ConnectPointProto.proto"; |
HIGUCHI Yuta | e3e9063 | 2016-05-11 16:44:01 -0700 | [diff] [blame] | 6 | |
| 7 | package Link; |
| 8 | |
| 9 | // Message to represent no return value |
| 10 | message Void {} |
| 11 | |
| 12 | message LinkDetectedMsg { |
| 13 | // ProviderId scheme only |
| 14 | string provider_id = 1; |
Jian Li | c9b4bf1 | 2017-06-26 23:50:32 +0900 | [diff] [blame] | 15 | net.link.LinkDescriptionProto link_description = 2; |
HIGUCHI Yuta | e3e9063 | 2016-05-11 16:44:01 -0700 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | message LinkVanishedMsg { |
| 19 | // ProviderId scheme only |
| 20 | string provider_id = 1; |
| 21 | oneof subject { |
Jian Li | c9b4bf1 | 2017-06-26 23:50:32 +0900 | [diff] [blame] | 22 | net.link.LinkDescriptionProto link_description = 2; |
| 23 | net.ConnectPointProto connect_point = 3; |
HIGUCHI Yuta | e3e9063 | 2016-05-11 16:44:01 -0700 | [diff] [blame] | 24 | string device_id = 4; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | service LinkProviderServiceRpc { |
| 29 | rpc LinkDetected(LinkDetectedMsg) returns (Void); |
| 30 | rpc LinkVanished(LinkVanishedMsg) returns (Void); |
| 31 | } |