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 Custom Audience on device. Allows AdTechs to provide an Update Uri, and the minimum Delay Time to schedule the update.
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 |
List<PartialCustomAudience>
|
getPartialCustomAudienceList()
Returns the list of |
Uri
|
getUpdateUri()
Returns the |
int
|
hashCode()
Returns the hash of |
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 Duration
min time duration for which the update is deferred
Returns | |
---|---|
Duration |
This value cannot be null . |
getPartialCustomAudienceList
public List<PartialCustomAudience> getPartialCustomAudienceList ()
Returns the list of PartialCustomAudience
which are sent along with the request to
download the update for Custom Audience
Returns | |
---|---|
List<PartialCustomAudience> |
This value cannot be null . |
getUpdateUri
public Uri getUpdateUri ()
Returns the Uri
from which the Custom Audience is to be fetched
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. |
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-06-18 UTC.