hyperboria/nexus/meta_api/proto/documents_service.proto
the-superpirate ad8f0b2700 - feat(nexus): Change user_id to str type due to needs of e...
1 internal commit(s)

GitOrigin-RevId: 8bba552568b30f42662051baa2cb2fb088361b96
2021-05-01 12:11:09 +03:00

35 lines
714 B
Protocol Buffer

syntax = "proto3";
package nexus.meta_api.proto;
import "nexus/models/proto/typed_document.proto";
message RollRequest {
string language = 1;
}
message RollResponse {
uint64 document_id = 1;
}
message TopMissedRequest {
uint32 page = 1;
uint32 page_size = 2;
}
message TopMissedResponse {
repeated nexus.models.proto.TypedDocument typed_documents = 1;
bool has_next = 2;
}
message TypedDocumentRequest {
string schema = 1;
uint64 document_id = 2;
uint32 position = 3;
}
service Documents {
rpc get (TypedDocumentRequest) returns (nexus.models.proto.TypedDocument) {}
rpc roll (RollRequest) returns (RollResponse) {}
rpc top_missed (TopMissedRequest) returns (TopMissedResponse) {}
}