Builder

class Builder

Fluent builder for Choice, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

构造函数(Constructors)

Link copied to clipboard
constructor()

函数

Link copied to clipboard
fun build(): Choice
Link copied to clipboard
Link copied to clipboard
fun criterion(label: String, description: ClassifierContent? = null): Choice.Builder

添加或替换其中一个标签。 Choice.criteria; a null 描述(description),其中 Map.of “rejects”表示“没有结果”(即没有任何符合条件的选项或结果)。

fun criterion(label: String, description: String?): Choice.Builder

添加或替换其中一个标签。 Choice.criteria 以纯文本(plain-text)的形式 描述(description)……;如果没有必要的话,也可以什么都不做。 null.

Link copied to clipboard

fun instructions(instructions: String?): Choice.Builder

用于设置纯文本(plain-text)。 使用说明或者如果需要的话,可以清除它们。 null.