1//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// Test enum
18namespace libtextclassifier3.grammar;
19enum TestEnum : int {
20  UNSPECIFIED = 0,
21  ENUM_1 = 1,
22  ENUM_2 = 2,
23}
24
25// A test semantic value result.
26namespace libtextclassifier3.grammar;
27table TestValue {
28  value:int;
29  a_float_value:double;
30  test_string:string (shared);
31  date:TestDate;
32  enum_value:TestEnum;
33  repeated_enum:[TestEnum];
34  repeated_date:[TestDate];
35}
36
37// A test date value result.
38namespace libtextclassifier3.grammar;
39table TestDate {
40  day:int;
41  month:int;
42  year:int;
43}
44
45