Builder


class Builder
kotlin.Any
   ↳ android.adservices.topics.GetTopicsResponse.Builder

Builder for GetTopicsResponse objects. This class should be used in test implementation as expected response from Topics API

Summary

Public constructors

Creates a Builder for GetTopicsResponse objects.

Builder(topics: MutableList<Topic!>, encryptedTopics: MutableList<EncryptedTopic!>)

Creates a Builder for GetTopicsResponse objects.

Public methods
GetTopicsResponse

Builds a GetTopicsResponse instance.

Public constructors

Builder

Builder(topics: MutableList<Topic!>)

Deprecated: This function is deprecated.

Creates a Builder for GetTopicsResponse objects.

Parameters
topics MutableList<Topic!>: The list of the returned Topics. This value cannot be null.

Builder

Builder(
    topics: MutableList<Topic!>,
    encryptedTopics: MutableList<EncryptedTopic!>)

Creates a Builder for GetTopicsResponse objects.

Parameters
topics MutableList<Topic!>: The list of the returned Topics. This value cannot be null.
encryptedTopics MutableList<EncryptedTopic!>: The list of encrypted Topics. This value cannot be null.

Public methods

build

fun build(): GetTopicsResponse

Builds a GetTopicsResponse instance.

Return
GetTopicsResponse This value cannot be null.
Exceptions
java.lang.IllegalArgumentException if any of the params are null.