Created
January 29, 2019 09:43
-
-
Save truthadjustr/8079bcef27a01181f2c0f27fef34cf3a to your computer and use it in GitHub Desktop.
protobuf schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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