syntax = "proto3"; option csharp_namespace = "Tricentis.Demo.GrpcServices.Protos"; package coffee; service CoffeeService { // Returns all coffees. rpc GetCoffees (GetCoffeesRequest) returns (GetCoffeesReply); // Returns the coffee with the given id, or an unset coffee if none exists. rpc GetCoffeeById (GetCoffeeByIdRequest) returns (CoffeeReply); // Adds a new coffee and returns it with its assigned id. rpc AddCoffee (AddCoffeeRequest) returns (CoffeeReply); // Updates the name and description of an existing coffee. rpc UpdateCoffee (UpdateCoffeeRequest) returns (CoffeeReply); // Deletes the coffee with the given id. rpc DeleteCoffee (DeleteCoffeeRequest) returns (DeleteCoffeeReply); } message Coffee { int32 id = 1; string name = 2; string description = 3; } message GetCoffeesRequest { } message GetCoffeesReply { repeated Coffee coffees = 1; } message GetCoffeeByIdRequest { int32 id = 1; } message CoffeeReply { Coffee coffee = 1; } message AddCoffeeRequest { string name = 1; string description = 2; } message UpdateCoffeeRequest { int32 id = 1; string name = 2; string description = 3; } message DeleteCoffeeRequest { int32 id = 1; } message DeleteCoffeeReply { bool success = 1; }