Skip to content

Instantly share code, notes, and snippets.

@railsstudent
Forked from subfuzion/empty-example.md
Created January 24, 2024 10:53
Show Gist options
  • Save railsstudent/194a65edd0547891abc580e2c5e6a6fe to your computer and use it in GitHub Desktop.
Save railsstudent/194a65edd0547891abc580e2c5e6a6fe 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