···1313 // List returns the list of repositories that the client should index.
1414 rpc List(ListRequest) returns (ListResponse) {}
15151616- // RepositoryRank returns the rank vector for the specified repository.
1717- rpc RepositoryRank(RepositoryRankRequest) returns (RepositoryRankResponse) {}
1818-1916 // DocumentRanks returns the rank vectors for all documents in the specified repository.
2017 rpc DocumentRanks(DocumentRanksRequest) returns (DocumentRanksResponse) {}
2118···141138message ListResponse {
142139 // repo_ids is the list of repository IDs that the client should index.
143140 repeated int32 repo_ids = 1;
144144-}
145145-146146-// RepositoryRankRequest is the request to the RepositoryRank RPC.
147147-message RepositoryRankRequest {
148148- // repository is the repository name.
149149- string repository = 1;
150150-}
151151-152152-message RepositoryRankResponse {
153153- // rank is the rank vector for the given repository. Repositories are assumed to
154154- // be ordered by each pairwise component of the resulting vector, higher ranks coming earlier.
155155- // We currently rank first by user-defined scores, then by GitHub star count.
156156- repeated double rank = 1;
157141}
158142159143// DocumentRanksRequest is the request to the DocumentRanks RPC.