]> git.sesse.net Git - stockfish/blob - src/hashprobe.proto
Give the proto a package name.
[stockfish] / src / hashprobe.proto
1 syntax = "proto3";
2 package hashprobe;
3
4 message HashProbeRequest {
5         string fen = 1;
6 }
7 message HashProbeResponse {
8         repeated HashProbeMove move = 1;
9 }
10 message HashProbeMove {
11         int32 move = 7;  // See types.h
12
13         bool found = 1;
14         int32 pv_move = 2;  // See types.h
15         int32 value = 3;  // Dynamic eval (may be inexact, see the "bound" field)
16         int32 eval = 4;  // Static eval
17         int32 depth = 5;
18
19         enum ValueBound {
20                 BOUND_NONE = 0;
21                 BOUND_UPPER = 1;
22                 BOUND_LOWER = 2;
23                 BOUND_EXACT = 3;
24         };
25         ValueBound bound = 6;
26 }
27
28 service HashProbe {
29         rpc Probe(HashProbeRequest) returns (HashProbeResponse) {}
30 }