data_workshop/proto/country.proto

39 lines
661 B
Protocol Buffer
Raw Normal View History

2020-05-19 10:12:18 +00:00
syntax = "proto3";
package main;
option go_package = ".;main";
import "base.proto";
import "google/api/annotations.proto";
// The greeting service definition.
service Country {
// Sends a greeting
rpc Name (Request) returns (Reply){
option (google.api.http) = {
post: "/v1/country/name"
body: "*"
};
}
rpc Picture (Request) returns (CountryReply){
option (google.api.http) = {
post: "/v1/country/name/picture"
body: "*"
};
}
}
// The response message containing the greetings
message CountryReply {
bytes image = 1;
}
// enum NameType {
// FullName = 0;
// FirstName = 1;
// LastName = 2 ;
// }