• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 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 
17 package com.android.adservices.service.stats;
18 
19 import com.google.auto.value.AutoValue;
20 
21 @AutoValue
22 public abstract class NumberOfTypesOfReportingUrlsReceivedStats {
23 
24     /** Returns the number of top-level seller reporting URLs. */
getNumberOfTopLevelSellerReportingUrl()25     public abstract int getNumberOfTopLevelSellerReportingUrl();
26 
27     /** Returns the number of buyer reporting URLs. */
getNumberOfBuyerReportingUrl()28     public abstract int getNumberOfBuyerReportingUrl();
29 
30     /** Returns the number of component seller reporting URLs. */
getNumberOfComponentSellerReportingUrl()31     public abstract int getNumberOfComponentSellerReportingUrl();
32 
33     /** Returns the number of component seller event reporting URLs. */
getNumberOfComponentSellerEventReportingUrl()34     public abstract int getNumberOfComponentSellerEventReportingUrl();
35 
36     /** Returns the number of top-level seller event reporting URLs. */
getNumberOfTopLevelSellerEventReportingUrl()37     public abstract int getNumberOfTopLevelSellerEventReportingUrl();
38 
39     /** Returns the number of buyer event reporting URLs. */
getNumberOfBuyerEventReportingUrl()40     public abstract int getNumberOfBuyerEventReportingUrl();
41 
42     /** Creates a builder for {@link NumberOfTypesOfReportingUrlsReceivedStats}. */
builder()43     public static Builder builder() {
44         return new AutoValue_NumberOfTypesOfReportingUrlsReceivedStats.Builder();
45     }
46 
47     @AutoValue.Builder
48     public abstract static class Builder {
49         /**
50          * Sets the number of top-level seller reporting URLs.
51          *
52          * @param numberOfTopLevelSellerUrl The number of top-level seller reporting URLs.
53          */
setNumberOfTopLevelSellerReportingUrl( int numberOfTopLevelSellerUrl)54         public abstract Builder setNumberOfTopLevelSellerReportingUrl(
55                 int numberOfTopLevelSellerUrl);
56 
57         /**
58          * Sets the number of buyer reporting URLs.
59          *
60          * @param numberOfBuyerReportingUrl The number of buyer reporting URLs.
61          */
setNumberOfBuyerReportingUrl(int numberOfBuyerReportingUrl)62         public abstract Builder setNumberOfBuyerReportingUrl(int numberOfBuyerReportingUrl);
63 
64         /**
65          * Sets the number of component seller reporting URLs.
66          *
67          * @param numberOfComponentSellerReportingUrl The number of component seller reporting URLs.
68          */
setNumberOfComponentSellerReportingUrl( int numberOfComponentSellerReportingUrl)69         public abstract Builder setNumberOfComponentSellerReportingUrl(
70                 int numberOfComponentSellerReportingUrl);
71 
72         /**
73          * Sets the number of component seller event reporting URLs.
74          *
75          * @param numberOfComponentSellerEventReportingUrl The number of component seller event
76          *     reporting URLs.
77          */
setNumberOfComponentSellerEventReportingUrl( int numberOfComponentSellerEventReportingUrl)78         public abstract Builder setNumberOfComponentSellerEventReportingUrl(
79                 int numberOfComponentSellerEventReportingUrl);
80 
81         /**
82          * Sets the number of top-level seller event reporting URLs.
83          *
84          * @param numberOfTopLevelSellerEventReportingUrl The number of top-level seller interaction
85          *     reporting URLs.
86          */
setNumberOfTopLevelSellerEventReportingUrl( int numberOfTopLevelSellerEventReportingUrl)87         public abstract Builder setNumberOfTopLevelSellerEventReportingUrl(
88                 int numberOfTopLevelSellerEventReportingUrl);
89 
90         /**
91          * Sets the number of buyer event reporting URLs.
92          *
93          * @param numberOfBuyerEventReportingUrl The number of buyer interaction reporting URLs.
94          */
setNumberOfBuyerEventReportingUrl( int numberOfBuyerEventReportingUrl)95         public abstract Builder setNumberOfBuyerEventReportingUrl(
96                 int numberOfBuyerEventReportingUrl);
97 
98         /** Builds the {@link NumberOfTypesOfReportingUrlsReceivedStats} object. */
build()99         public abstract NumberOfTypesOfReportingUrlsReceivedStats build();
100     }
101 }
102