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

BatchLabelExample 类

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

public class BatchLabelExample

添加一批标记的示例言语时的响应。

方法摘要

修饰符和类型 方法和描述
OperationStatus error()

获取错误值。

Boolean hasError()

获取 hasError 值。

LabelExampleResponse value()

获取值。

BatchLabelExample withError(OperationStatus error)

设置错误值。

BatchLabelExample withHasError(Boolean hasError)

设置 hasError 值。

BatchLabelExample withValue(LabelExampleResponse value)

设置值。

方法详细信息

error

public OperationStatus error()

获取错误值。

Returns:

错误值

hasError

public Boolean hasError()

获取 hasError 值。

Returns:

hasError 值

value

public LabelExampleResponse value()

获取值。

Returns:

withError

public BatchLabelExample withError(OperationStatus error)

设置错误值。

Parameters:

error - 要设置的错误值

Returns:

BatchLabelExample 对象本身。

withHasError

public BatchLabelExample withHasError(Boolean hasError)

设置 hasError 值。

Parameters:

hasError - 要设置的 hasError 值

Returns:

BatchLabelExample 对象本身。

withValue

public BatchLabelExample withValue(LabelExampleResponse value)

设置值。

Parameters:

value - 要设置的值值

Returns:

BatchLabelExample 对象本身。

适用于