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 ScheduleCustomAudienceUpdateRequest objects. 

Public methods

boolean equals(Object o)

Indicates whether some other object is "equal to" this one.

Duration getMinDelay()

Returns the Duration min time duration for which the update is deferred

List<PartialCustomAudience> getPartialCustomAudienceList()

Returns the list of PartialCustomAudience which are sent along with the request to download the update for Custom Audience

Uri getUpdateUri()

Returns the Uri from which the Custom Audience is to be fetched

int hashCode()

Returns the hash of ScheduleCustomAudienceUpdateRequest object's data.

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 return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

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.