API Reference

Protocol Documentation

Table of Contents

Top

schemas/weevil/v1/book.proto

Book

FieldTypeLabelDescription
uuidstring
created_atgoogle.protobuf.Timestamp
titlestring
authorstringrepeated
isbn_13string
isbn_9string
identifierstringoptional
sourceSourceoptional
readgoogle.protobuf.Timestamprepeated
descriptionstringoptional

Source

NameNumberDescription
SOURCE_UNSPECIFIED0
SOURCE_GOOGLE1
SOURCE_GOODREADS2

Top

schemas/weevil/v1/search.proto

FieldTypeLabelDescription
titlestringoptional
authorstringoptional
isbnstringoptional

Top

schemas/weevil/v1/services/book.proto

BookMetadata

FieldTypeLabelDescription
enrichment_statusstring
enriched_atgoogle.protobuf.Timestamp
gb_descriptionstringGoogle Books fields
gb_subtitlestring
gb_publisherstring
gb_published_datestring
gb_page_countint32
gb_categoriesstringrepeated
gb_average_ratingdouble
gb_ratings_countint32
gb_languagestring
gb_thumbnail_urlstring
gb_preview_linkstring
gb_info_linkstring
gb_response_pathstring
gb_main_categorystring
gb_canonical_linkstring
gb_buy_linkstring
gb_is_ebookbool
ol_descriptionstringOpen Library fields
ol_subjectsstringrepeated
ol_publishersstringrepeated
ol_first_publish_datestring
ol_cover_smallstring
ol_cover_mediumstring
ol_cover_largestring
ol_number_of_pagesint32
ol_goodreads_idstring
ol_response_pathstring

CreateBookRequest

FieldTypeLabelDescription
dataschemas.weevil.v1.Book

CreateBookResponse

FieldTypeLabelDescription
dataschemas.weevil.v1.Book

GetBookRequest

FieldTypeLabelDescription
uuidstring

GetBookResponse

FieldTypeLabelDescription
dataschemas.weevil.v1.Book
metadataBookMetadataoptional

ListBooksRequest

FieldTypeLabelDescription
countint32optional
cursorstringoptional

ListBooksResponse

FieldTypeLabelDescription
dataschemas.weevil.v1.Bookrepeated
cursorstring
countint32

BookService

Method NameRequest TypeResponse TypeDescription
ListBooksListBooksRequestListBooksResponse
GetBookGetBookRequestGetBookResponse
CreateBookCreateBookRequestCreateBookResponse

Top

schemas/weevil/v1/services/search.proto

CreateSearchRequest

FieldTypeLabelDescription
dataschemas.weevil.v1.Search

CreateSearchResponse

FieldTypeLabelDescription
booksschemas.weevil.v1.Bookrepeated

GetSearchRequest

FieldTypeLabelDescription
uuidstring

GetSearchResponse

FieldTypeLabelDescription
dataschemas.weevil.v1.Search

ListSearchsRequest

FieldTypeLabelDescription
countint32optional
cursorstringoptional

ListSearchsResponse

FieldTypeLabelDescription
dataschemas.weevil.v1.Searchrepeated
cursorstring
countint32

SearchService

Method NameRequest TypeResponse TypeDescription
ListSearchsListSearchsRequestListSearchsResponse
GetSearchGetSearchRequestGetSearchResponse
CreateSearchCreateSearchRequestCreateSearchResponse

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers โ€“ if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers โ€“ if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)