data_workshop/proto/people.proto

39 lines
691 B
Protocol Buffer
Raw Normal View History

2020-05-13 06:57:57 +00:00
syntax = "proto3";
package main;
option go_package = ".;main";
import "google/api/annotations.proto";
2020-05-19 10:12:18 +00:00
import "base.proto";
2020-05-13 06:57:57 +00:00
// The greeting service definition.
service Name {
// Sends a greeting
2020-05-19 10:12:18 +00:00
rpc FirstName (Request) returns (Reply){
2020-05-13 06:57:57 +00:00
option (google.api.http) = {
post: "/v1/name/firstname"
body: "*"
};
}
2020-05-19 10:12:18 +00:00
rpc LastName (Request) returns (Reply){
2020-05-13 06:57:57 +00:00
option (google.api.http) = {
post: "/v1/name/lastname"
body: "*"
};
}
2020-05-19 10:12:18 +00:00
rpc FullName (Request) returns (Reply){
2020-05-13 06:57:57 +00:00
option (google.api.http) = {
post: "/v1/name/fullname"
body: "*"
};
}
}
// enum NameType {
// FullName = 0;
// FirstName = 1;
// LastName = 2 ;
// }