1/*
2 * Copyright (C) 2017 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";
18package android.providers.settings;
19
20option java_multiple_files = true;
21
22message SettingProto {
23    // ID of the setting
24    optional string id = 1;
25
26    // Name of the setting
27    optional string name = 2;
28
29    // Package name of the setting
30    optional string pkg = 3;
31
32    // Value of this setting
33    optional string value = 4;
34
35    // Default value of this setting
36    optional string default_value = 5;
37
38    // Whether the default is set by the system
39    optional bool default_from_system = 6;
40}
41
42message SettingsOperationProto {
43    // When the operation happened
44    optional int64 timestamp = 1;
45
46    // Type of the operation
47    optional string operation = 2;
48
49    // Name of the setting that was affected (optional)
50    optional string setting = 3;
51}
52