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 ; // }