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 android.tests;
20
21option java_package = "android.tests";
22option java_outer_classname = "ExternalAtoms";
23
24import "test/data/enum.proto";
25import "test/data/atoms/external_atoms/external_test_atom.proto";
26
27/* Allocated atom IDs. */
28message Atom {
29  oneof pushed {
30    AtomWithEnum atom_with_enum = 100001;
31    AOSPAtom aosp_atom = 105999;
32    external_atoms.TestAtom external_atoms_test_atom = 106001;
33  }
34}
35
36/* A test atom from an AOSP atom ids range */
37message AtomWithEnum {
38  optional string reverse_domain_name = 1;
39  optional android.tests.enum.DemoEnumValues enum_value = 2;
40}
41
42/* A test atom from an AOSP atom ids range */
43message AOSPAtom {
44  optional string reverse_domain_name = 1;
45  optional int32 value = 2;
46}
47