| garciadeblas | 2deba7f | 2024-07-09 14:38:25 +0200 | [diff] [blame] | 1 | /* |
| 2 | ####################################################################################### |
| 3 | # Copyright ETSI Contributors and Others. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 14 | # implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | ####################################################################################### |
| 18 | */ |
| lloretgalleg | 1d2ff51 | 2020-08-01 06:05:58 +0000 | [diff] [blame] | 19 | syntax = "proto3"; |
| 20 | |
| 21 | option java_multiple_files = true; |
| 22 | option java_package = "com.etsi.osm.lcm.osm_ee"; |
| 23 | option java_outer_classname = "GrpcExecutor"; |
| 24 | option objc_class_prefix = "OEE"; |
| 25 | |
| 26 | package osm_ee; |
| 27 | |
| 28 | service FrontendExecutor { |
| 29 | |
| 30 | // Execute action leaving open a channel for notifications |
| 31 | rpc RunPrimitive (PrimitiveRequest) returns (stream PrimitiveReply) {} |
| 32 | |
| 33 | // Sends a greeting |
| 34 | rpc GetSshKey (SshKeyRequest) returns (SshKeyReply) {} |
| 35 | } |
| 36 | |
| 37 | // Request parameters |
| 38 | message PrimitiveRequest { |
| 39 | string id=1; |
| 40 | string name=2; |
| 41 | string params=3; |
| 42 | } |
| 43 | |
| 44 | message PrimitiveReply { |
| 45 | string status=1; |
| 46 | string detailed_message=2; |
| 47 | } |
| 48 | |
| 49 | // The request message containing the user's name. |
| 50 | message SshKeyRequest { |
| 51 | // empty |
| 52 | } |
| 53 | |
| 54 | // The response message containing the greetings |
| 55 | message SshKeyReply { |
| 56 | string message = 1; |
| 57 | } |