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.stats.adservices.enrollment;
19
20option java_outer_classname = "EnrollmentProtoEnums";
21option java_multiple_files = true;
22
23/**
24 * Enum used by EnrollmentDataStats.
25 */
26enum TransactionType {
27  UNKNOWN_TRANSACTION_TYPE = 0;
28  READ_TRANSACTION_TYPE = 1;
29  WRITE_TRANSACTION_TYPE = 2;
30}
31
32/**
33 * Enum used by EnrollmentDataFailed.
34 */
35enum DataFileGroupStatus {
36  UNKNOWN_DATA_FILE_GROUP_STATUS = 0;
37  DOWNLOADED_DATA_FILE_GROUP_STATUS = 1;
38  PENDING_DATA_FILE_GROUP_STATUS = 2;
39  PENDING_CUSTOM_VALIDATION = 3;
40}
41
42/**
43 * Enum used by EnrollmentDataFailed.
44 */
45enum ErrorCause {
46  UNKNOWN_ERROR_CAUSE = 0;
47  ENROLLMENT_NOT_FOUND_ERROR_CAUSE = 1;
48  ENROLLMENT_BLOCKLISTED_ERROR_CAUSE = 2;
49}
50
51/**
52 * Enum used by AdServicesEnrollmentTransactionStats.
53 */
54enum TransactionStatus {
55  UNKNOWN_TRANSACTION_STATUS = 0;
56  SUCCESS_TRANSACTION_STATUS = 1;
57  DB_NOT_FOUND_TRANSACTION_STATUS = 2;
58  INVALID_INPUT_TRANSACTION_STATUS = 3;
59  INVALID_OUTPUT_TRANSACTION_STATUS = 4;
60  MATCH_NOT_FOUND_TRANSACTION_STATUS = 5;
61  DATASTORE_EXCEPTION_TRANSACTION_STATUS = 6;
62}
63
64/**
65 * Enum used by AdServicesEnrollmentTransactionStats.
66 */
67enum EnrollmentTransactionType {
68  UNKNOWN_TYPE = 0;
69  INSERT_TRANSACTION_TYPE = 1;
70  DELETE_TRANSACTION_TYPE = 2;
71  DELETE_ALL_TRANSACTION_TYPE = 3;
72  OVERWRITE_DATA_TRANSACTION_TYPE = 4;
73  GET_ENROLLMENT_DATA_TRANSACTION_TYPE = 5;
74  GET_ALL_ENROLLMENT_DATA_TRANSACTION_TYPE = 6;
75  GET_ENROLLMENT_DATA_FROM_SDK_NAME_TRANSACTION_TYPE = 7;
76  GET_ENROLLMENT_DATA_FROM_MEASUREMENT_URL_TRANSACTION_TYPE = 8;
77  GET_ALL_FLEDGE_ENROLLED_ADTECHS_TRANSACTION_TYPE = 9;
78  GET_ENROLLMENT_DATA_FOR_FLEDGE_BY_ADTECH_IDENTIFIER_TRANSACTION_TYPE = 10;
79  GET_ENROLLMENT_DATA_FOR_FLEDGE_BY_MATCHING_ADTECH_IDENTIFIER_TRANSACTION_TYPE = 11;
80  GET_ALL_PAS_ENROLLED_ADTECHS_TRANSACTION_TYPE = 12;
81  GET_ENROLLMENT_DATA_FOR_PAS_BY_ADTECH_IDENTIFIER_TRANSACTION_TYPE = 13;
82  GET_ENROLLMENT_DATA_FOR_PAS_BY_MATCHING_ADTECH_IDENTIFIER_TRANSACTION_TYPE = 14;
83}