1/*
2 * Copyright (C) 2020 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
17syntax = "proto2";
18
19package com.android.cts.mockspellchecker;
20
21option java_outer_classname = "MockSpellCheckerProto";
22
23// Represents a suggestion rule.
24// If the string matches 'match', SuggestionsInfo with attributes and suggestions are appended.
25message SuggestionRule {
26  optional string match = 1;
27  optional int32 attributes = 2;
28  repeated string suggestions = 3;
29  optional int32 start_offset = 4;
30  optional int32 length = 5;
31}
32
33// Represents a MockSpellChecker configuration.
34message MockSpellCheckerConfiguration {
35  repeated SuggestionRule suggestion_rules = 1;
36  optional bool match_sentence = 2;
37};
38