1// Copyright (C) 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package controlenvproxyserver; 18 19import "google/protobuf/empty.proto"; 20 21service ControlEnvProxyService { 22 rpc CallUnaryMethod (CallUnaryMethodRequest) returns (CallUnaryMethodReply) {} 23 rpc ListServices (google.protobuf.Empty) returns (ListServicesReply) {} 24 rpc ListMethods (ListMethodsRequest) returns (ListMethodsReply) {} 25 rpc ListReqResType (ListReqResTypeRequest) returns (ListReqResTypeReply) {} 26 rpc TypeInformation (TypeInformationRequest) returns (TypeInformationReply) {} 27} 28 29message CallUnaryMethodRequest { 30 string service_name = 1; 31 string method_name = 2; 32 string json_formatted_proto = 3; 33} 34 35message CallUnaryMethodReply { 36 string json_formatted_proto = 1; 37} 38 39message ListServicesReply { 40 repeated string services = 1; 41} 42 43message ListMethodsRequest { 44 string service_name = 1; 45} 46 47message ListMethodsReply { 48 repeated string methods = 1; 49} 50 51message ListReqResTypeRequest { 52 string service_name = 1; 53 string method_name = 2; 54} 55 56message ListReqResTypeReply { 57 string request_type_name = 1; 58 string response_type_name = 2; 59} 60 61message TypeInformationRequest { 62 string service_name = 1; 63 string type_name = 2; 64} 65 66message TypeInformationReply { 67 string text_formatted_type_info = 1; 68} 69