• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2019 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// This file contains protos that are only used in native.
16
17syntax = "proto2";
18
19package icing;
20
21message IcingDynamicTrieHeader {
22  optional uint32 version = 1;
23
24  optional uint32 value_size = 2;
25
26  // Sizes of buffers.
27  optional uint32 max_nodes = 3;
28  optional uint32 max_nexts = 4;
29  optional uint32 max_suffixes_size = 5;
30
31  // Tail indices for buffers.
32  optional uint32 num_nodes = 6;
33  optional uint32 num_nexts = 7;
34  optional uint32 suffixes_size = 8;
35
36  // Next free list.
37  repeated uint32 free_lists = 9;
38
39  // Number of unique keys.
40  optional uint32 num_keys = 10;
41
42  // Flag used to indicate a flush is in progress.
43  optional bool deprecated_is_flushing = 11 [deprecated = true];
44}
45