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