• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2022 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.safetycenter.internaldata;
20
21option java_multiple_files = true;
22
23// An id for entries provided by the Safety Center.
24message SafetyCenterEntryId {
25  // The ID of the safety source that the entry originated from.
26  optional string safety_source_id = 1;
27  // The user ID associated with this entry.
28  optional int32 user_id = 2;
29}
30
31// An id for issues provided by the Safety Center.
32message SafetyCenterIssueId {
33  reserved 1, 2, 3;
34  // Key that has a 1 to 1 mapping with a safety source issue.
35  optional SafetyCenterIssueKey safety_center_issue_key = 4;
36  // The ID of the type of the safety source issue.
37  optional string issue_type_id = 5;
38  // A task ID to launch the issue's actions in, if applicable.
39  optional int32 task_id = 6;
40}
41
42// Key that has a 1 to 1 mapping with a safety source issue.
43message SafetyCenterIssueKey {
44  // The ID of the safety source that the issue originated from.
45  optional string safety_source_id = 1;
46  // The ID of the safety source issue that the issue originated from.
47  optional string safety_source_issue_id = 2;
48  // The user ID associated with this issue.
49  optional int32 user_id = 3;
50}
51
52// An id for issue actions provided by the Safety Center.
53message SafetyCenterIssueActionId {
54  reserved 1;
55  // The ID of the safety source issue action that the action originated from.
56  optional string safety_source_issue_action_id = 2;
57  // `SafetyCenterIssueKey` associated with this action.
58  optional SafetyCenterIssueKey safety_center_issue_key = 3;
59}
60
61// A bundle key for static entries provided by the Safety Center.
62message SafetyCenterStaticEntryBundleKey {
63  // The title of the SafetyCenterStaticEntry.
64  optional string title = 1;
65  // The summary of the SafetyCenterStaticEntry.
66  optional string summary = 2;
67}
68