Skip to content

Instantly share code, notes, and snippets.

@gblok
Forked from subfuzion/empty-example.md
Created January 2, 2020 15:31
Show Gist options
  • Save gblok/9a7f1864554a25cc88c9438682d86e7c to your computer and use it in GitHub Desktop.
Save gblok/9a7f1864554a25cc88c9438682d86e7c to your computer and use it in GitHub Desktop.
Protocol Buffer example of importing and using empty

How to import and indicate empty request or reply messages:

import "google/protobuf/empty.proto";

service SomeService {
    rpc SomeOperation (google.protobuf.Empty) returns (google.protobuf.Empty) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment