你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LabelTextObject 类

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LabelTextObject

public class LabelTextObject

一个对象,包含示例话语的文本。

方法摘要

修饰符和类型 方法和描述
Integer id()

获取 ID 值。

String text()

获取文本值。

LabelTextObject withId(Integer id)

设置 ID 值。

LabelTextObject withText(String text)

设置文本值。

方法详细信息

id

public Integer id()

获取 ID 值。

Returns:

id 值

text

public String text()

获取文本值。

Returns:

文本值

withId

public LabelTextObject withId(Integer id)

设置 ID 值。

Parameters:

id - 要设置的 id 值

Returns:

LabelTextObject 对象本身。

withText

public LabelTextObject withText(String text)

设置文本值。

Parameters:

text - 要设置的文本值

Returns:

LabelTextObject 对象本身。

适用于