xref: /llvm-project/clang-tools-extra/clangd/index/remote/Service.proto (revision 61fe67a4017375fd675f75652e857e837f77fa51)
1//===--- Service.proto - Remote index service definition ------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9syntax = "proto2";
10
11package clang.clangd.remote.v1;
12
13import "Index.proto";
14
15// Semantics of SymbolIndex match clangd::SymbolIndex with all required
16// structures corresponding to their clangd::* counterparts.
17service SymbolIndex {
18  rpc Lookup(LookupRequest) returns (stream LookupReply) {}
19
20  rpc FuzzyFind(FuzzyFindRequest) returns (stream FuzzyFindReply) {}
21
22  rpc Refs(RefsRequest) returns (stream RefsReply) {}
23
24  rpc ContainedRefs(ContainedRefsRequest) returns (stream ContainedRefsReply) {}
25
26  rpc Relations(RelationsRequest) returns (stream RelationsReply) {}
27}
28