Jian Li | 841a8b9 | 2017-11-23 01:31:22 +0900 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Frank Wang | caef314 | 2017-08-09 15:24:45 +0800 | [diff] [blame] | 16 | syntax="proto3"; |
| 17 | option java_package = "org.onosproject.grpc.nb.cfg"; |
| 18 | |
| 19 | package nb.cfg; |
| 20 | |
| 21 | import "cfg/ConfigPropertyProto.proto"; |
| 22 | |
| 23 | message getComponentNamesRequest { |
| 24 | } |
| 25 | |
| 26 | message getComponentNamesReply { |
| 27 | repeated string names = 1; |
| 28 | } |
| 29 | |
| 30 | message registerPropertiesRequest { |
| 31 | string component_class = 1; |
| 32 | } |
| 33 | |
| 34 | message registerPropertiesReply { |
| 35 | } |
| 36 | |
| 37 | message unregisterPropertiesRequest { |
| 38 | string component_class = 1; |
| 39 | bool clear = 2; |
| 40 | } |
| 41 | |
| 42 | message unregisterPropertiesReply { |
| 43 | } |
| 44 | |
| 45 | message getPropertiesRequest { |
| 46 | string component_name = 1; |
| 47 | } |
| 48 | |
| 49 | message getPropertiesReply { |
| 50 | repeated .cfg.ConfigPropertyProto config_properties = 1; |
| 51 | } |
| 52 | |
| 53 | message setPropertyRequest { |
| 54 | string component_name = 1; |
| 55 | string name = 2; |
| 56 | string value = 3; |
| 57 | } |
| 58 | |
| 59 | message setPropertyReply { |
| 60 | } |
| 61 | |
| 62 | message preSetPropertyRequest { |
| 63 | string component_name = 1; |
| 64 | string name = 2; |
| 65 | string value = 3; |
| 66 | } |
| 67 | |
| 68 | message preSetPropertyReply { |
| 69 | } |
| 70 | |
| 71 | message unsetPropertyRequest { |
| 72 | string component_name = 1; |
| 73 | string name = 2; |
| 74 | } |
| 75 | |
| 76 | message unsetPropertyReply { |
| 77 | } |
| 78 | |
| 79 | service ComponentConfigService { |
| 80 | rpc getComponentNames(getComponentNamesRequest) returns (getComponentNamesReply) {} |
| 81 | rpc registerProperties(registerPropertiesRequest) returns (registerPropertiesReply) {} |
| 82 | rpc unregisterProperties(unregisterPropertiesRequest) returns (unregisterPropertiesReply) {} |
| 83 | rpc getProperties(getPropertiesRequest) returns (getPropertiesReply) {} |
| 84 | rpc setProperty(setPropertyRequest) returns (setPropertyReply) {} |
| 85 | rpc preSetProperty(preSetPropertyRequest) returns (preSetPropertyReply) {} |
| 86 | rpc unsetProperty(unsetPropertyRequest) returns (unsetPropertyReply) {} |
| 87 | } |