1234567891011121314151617 |
- syntax = "proto3";
- package hero;
- service HeroService {
- rpc FindOne (HeroById) returns (Hero);
- rpc FindMany (stream HeroById) returns (stream Hero);
- }
- message HeroById {
- int32 id = 1;
- }
- message Hero {
- int32 id = 1;
- string name = 2;
- }
|