GetTopicsResponse.Builder
public static final class GetTopicsResponse.Builder
extends Object
| java.lang.Object | |
| ↳ | android.adservices.topics.GetTopicsResponse.Builder |
GetTopicsResponse 对象的构建器。此类应在测试实现中用作 Topics API 的预期响应
摘要
公共构造函数 | |
|---|---|
构造函数(List<Topic> topics)
创建 |
|
公共方法 | |
|---|---|
GetTopicsResponse
|
build()
构建一个 |
继承的方法 | |
|---|---|
公共构造函数
构造函数
public Builder (List<Topic> topics)
创建 Builder,用于构建 GetTopicsResponse 对象。
| 参数 | |
|---|---|
topics |
List:返回的主题列表。此值不能为 null。 |
公共方法
build
public GetTopicsResponse build ()
构建一个 GetTopicsResponse 实例。
如果任何参数为 null 或 ModelVersions 和 TaxonomyVersions 的大小不匹配,则抛出 IllegalArgumentException。
| 返回 | |
|---|---|
GetTopicsResponse |
|