blob: 5c17997c73af7d12e572a9213abefbd619271aa7 [file] [log] [blame]
Jian Li841a8b92017-11-23 01:31:22 +09001/*
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 Wangcaef3142017-08-09 15:24:45 +080016syntax="proto3";
17option java_package = "org.onosproject.grpc.nb.cfg";
18
19package nb.cfg;
20
21import "cfg/ConfigPropertyProto.proto";
22
23message getComponentNamesRequest {
24}
25
26message getComponentNamesReply {
27 repeated string names = 1;
28}
29
30message registerPropertiesRequest {
31 string component_class = 1;
32}
33
34message registerPropertiesReply {
35}
36
37message unregisterPropertiesRequest {
38 string component_class = 1;
39 bool clear = 2;
40}
41
42message unregisterPropertiesReply {
43}
44
45message getPropertiesRequest {
46 string component_name = 1;
47}
48
49message getPropertiesReply {
50 repeated .cfg.ConfigPropertyProto config_properties = 1;
51}
52
53message setPropertyRequest {
54 string component_name = 1;
55 string name = 2;
56 string value = 3;
57}
58
59message setPropertyReply {
60}
61
62message preSetPropertyRequest {
63 string component_name = 1;
64 string name = 2;
65 string value = 3;
66}
67
68message preSetPropertyReply {
69}
70
71message unsetPropertyRequest {
72 string component_name = 1;
73 string name = 2;
74}
75
76message unsetPropertyReply {
77}
78
79service 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}