ScheduleCustomAudienceUpdateRequest
public
final
class
ScheduleCustomAudienceUpdateRequest
extends Object
java.lang.Object | |
↳ | android.adservices.customaudience.ScheduleCustomAudienceUpdateRequest |
The request object wrapping the required and optional parameters to schedule a deferred update for a buyer ad tech's custom audiences.
The on-device caller can specify information in a series of PartialCustomAudience
objects that will be sent to the buyer ad tech's server after a designated minimum delay.
Summary
Nested classes | |
---|---|
class |
ScheduleCustomAudienceUpdateRequest.Builder
Builder for |
Public methods | |
---|---|
boolean
|
equals(Object o)
Indicates whether some other object is "equal to" this one. |
Duration
|
getMinDelay()
Returns the minimum |
List<PartialCustomAudience>
|
getPartialCustomAudienceList()
Returns the list of |
Uri
|
getUpdateUri()
Returns the |
int
|
hashCode()
Returns the hash of |
boolean
|
shouldReplacePendingUpdates()
Returns |
String
|
toString()
Returns a string representation of the object. |
Inherited methods | |
---|---|
Public methods
equals
public boolean equals (Object o)
Indicates whether some other object is "equal to" this one.
The equals
method implements an equivalence relation
on non-null object references:
- It is reflexive: for any non-null reference value
x
,x.equals(x)
should returntrue
. - It is symmetric: for any non-null reference values
x
andy
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any non-null reference values
x
,y
, andz
, ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
. - It is consistent: for any non-null reference values
x
andy
, multiple invocations ofx.equals(y)
consistently returntrue
or consistently returnfalse
, provided no information used inequals
comparisons on the objects is modified. - For any non-null reference value
x
,x.equals(null)
should returnfalse
.
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
Parameters | |
---|---|
o |
Object : the reference object with which to compare. |
Returns | |
---|---|
boolean |
true only if two ScheduleCustomAudienceUpdateRequest objects contain
the same information. |
getMinDelay
public Duration getMinDelay ()
Returns the minimum Duration
that the update will be deferred before the service
fetches updates for the buyer ad tech's custom audiences.
Returns | |
---|---|
Duration |
This value cannot be null . |
getPartialCustomAudienceList
public List<PartialCustomAudience> getPartialCustomAudienceList ()
Returns the list of PartialCustomAudience
objects which are sent along with the
request to download the updates for the buyer ad tech's custom audiences.
Returns | |
---|---|
List<PartialCustomAudience> |
This value cannot be null . |
getUpdateUri
public Uri getUpdateUri ()
Returns the Uri
from which the update for the buyer's custom audiences will be
fetched.
The Uri
must use the same HTTPS site as the buyer ad tech's enrolled server.
Returns | |
---|---|
Uri |
This value cannot be null . |
hashCode
public int hashCode ()
Returns the hash of ScheduleCustomAudienceUpdateRequest
object's data.
Returns | |
---|---|
int |
a hash code value for this object. |
shouldReplacePendingUpdates
public boolean shouldReplacePendingUpdates ()
Returns true
if any pending scheduled updates should be canceled and replaced with
the update detailed in the current ScheduleCustomAudienceUpdateRequest
.
If this method returns false
and there are previously requested updates still
pending for the same buyer in the same app, a call to CustomAudienceManager.scheduleCustomAudienceUpdate(android.adservices.customaudience.ScheduleCustomAudienceUpdateRequest, java.util.concurrent.Executor, android.adservices.common.AdServicesOutcomeReceiver)
with this ScheduleCustomAudienceUpdateRequest
will fail.
Returns | |
---|---|
boolean |
toString
public String toString ()
Returns a string representation of the object.
Returns | |
---|---|
String |
a human-readable representation of ScheduleCustomAudienceUpdateRequest . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-11-20 UTC.