Skip to content

Instantly share code, notes, and snippets.

@truthadjustr
Created January 29, 2019 09:43
Show Gist options
  • Save truthadjustr/8079bcef27a01181f2c0f27fef34cf3a to your computer and use it in GitHub Desktop.
Save truthadjustr/8079bcef27a01181f2c0f27fef34cf3a to your computer and use it in GitHub Desktop.
protobuf schema
message SearchRequest {
required string query = 1;
optional int32 page_number = 2;
optional int32 result_per_page = 3 [default = 10];
enum Corpus {
UNIVERSAL = 0;
WEB = 1;
IMAGES = 2;
LOCAL = 3;
NEWS = 4;
PRODUCTS = 5;
VIDEO = 6;
}
optional Corpus corpus = 4 [default = UNIVERSAL];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment