...
1syntax = "proto3";
2option go_package = "examplepb";
3
4// Unannotated Echo Service
5// Similar to echo_service.proto but without annotations. See
6// unannotated_echo_service.yaml for the equivalent of the annotations in
7// gRPC API configuration format.
8//
9// Echo Service API consists of a single service which returns
10// a message.
11package grpc.gateway.examples.internal.examplepb;
12
13// Do not need annotations.proto, can still use well known types as usual
14import "google/protobuf/duration.proto";
15
16// UnannotatedSimpleMessage represents a simple message sent to the unannotated Echo service.
17message UnannotatedSimpleMessage {
18 // Id represents the message identifier.
19 string id = 1;
20 int64 num = 2;
21 google.protobuf.Duration duration = 3;
22}
23
24// Echo service responds to incoming echo requests.
25service UnannotatedEchoService {
26 // Echo method receives a simple message and returns it.
27 //
28 // The message posted as the id parameter will also be
29 // returned.
30 rpc Echo(UnannotatedSimpleMessage) returns (UnannotatedSimpleMessage);
31
32 // EchoBody method receives a simple message and returns it.
33 rpc EchoBody(UnannotatedSimpleMessage) returns (UnannotatedSimpleMessage);
34
35 // EchoDelete method receives a simple message and returns it.
36 rpc EchoDelete(UnannotatedSimpleMessage) returns (UnannotatedSimpleMessage);
37}
View as plain text