xref: /aosp_15_r20/external/bazelbuild-rules_rust/examples/proto/helloworld/helloworld.proto (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1
2syntax = "proto3";
3
4import "proto/common.proto";
5
6package helloworld;
7
8// The greeting service definition.
9service Greeter {
10    // Sends a greeting
11    rpc SayHello(HelloRequest) returns (HelloReply) {}
12}
13
14// The request message containing the user's name.
15message HelloRequest {
16    string name = 1;
17    common.Config config = 2;
18}
19
20// The response message containing the greetings
21message HelloReply {
22    string message = 1;
23}
24