trpc.group/trpc-go/trpc-cmdline@v1.0.9/parser/testcase/java/hello.proto (about) 1 // Tencent is pleased to support the open source community by making tRPC available. 2 // 3 // Copyright (C) 2023 THL A29 Limited, a Tencent company. 4 // All rights reserved. 5 // 6 // If you have downloaded a copy of the tRPC source code from Tencent, 7 // please note that tRPC source code is licensed under the Apache 2.0 License, 8 // A copy of the Apache 2.0 License is included in this file. 9 10 syntax = "proto3"; 11 package trpc.test.helloworld; 12 option java_package = "test.helloworld"; 13 option java_multiple_files = true; 14 //option java_outer_classname = "good"; 15 service Greeter { 16 rpc SayHello (HelloRequest) returns (HelloReply) {} 17 } 18 // 请求参数 19 message HelloRequest { 20 string msg = 1; 21 } 22 // 响应参数 23 message HelloReply { 24 string msg = 1; 25 } 26