blob: 5c17997c73af7d12e572a9213abefbd619271aa7 [file] [log] [blame]
/*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax="proto3";
option java_package = "org.onosproject.grpc.nb.cfg";
package nb.cfg;
import "cfg/ConfigPropertyProto.proto";
message getComponentNamesRequest {
}
message getComponentNamesReply {
repeated string names = 1;
}
message registerPropertiesRequest {
string component_class = 1;
}
message registerPropertiesReply {
}
message unregisterPropertiesRequest {
string component_class = 1;
bool clear = 2;
}
message unregisterPropertiesReply {
}
message getPropertiesRequest {
string component_name = 1;
}
message getPropertiesReply {
repeated .cfg.ConfigPropertyProto config_properties = 1;
}
message setPropertyRequest {
string component_name = 1;
string name = 2;
string value = 3;
}
message setPropertyReply {
}
message preSetPropertyRequest {
string component_name = 1;
string name = 2;
string value = 3;
}
message preSetPropertyReply {
}
message unsetPropertyRequest {
string component_name = 1;
string name = 2;
}
message unsetPropertyReply {
}
service ComponentConfigService {
rpc getComponentNames(getComponentNamesRequest) returns (getComponentNamesReply) {}
rpc registerProperties(registerPropertiesRequest) returns (registerPropertiesReply) {}
rpc unregisterProperties(unregisterPropertiesRequest) returns (unregisterPropertiesReply) {}
rpc getProperties(getPropertiesRequest) returns (getPropertiesReply) {}
rpc setProperty(setPropertyRequest) returns (setPropertyReply) {}
rpc preSetProperty(preSetPropertyRequest) returns (preSetPropertyReply) {}
rpc unsetProperty(unsetPropertyRequest) returns (unsetPropertyReply) {}
}