public class TextDetectionReq extends Object
| Constructor and Description |
|---|
TextDetectionReq() |
| Modifier and Type | Method and Description |
|---|---|
TextDetectionReq |
addGlossaryNamesItem(String glossaryNamesItem) |
boolean |
equals(Object o) |
TextDetectionDataReq |
getData()
Get data
|
String |
getEventType()
事件类型。 可选值如下: nickname: 昵称 title: 标题 article: 帖⼦ comment: 评论 barrage: 弹幕 search: 搜索栏 profile: 个⼈简介
|
List<String> |
getGlossaryNames()
检测时使用的自定义黑名单词库列表。
|
int |
hashCode() |
void |
setData(TextDetectionDataReq data) |
void |
setEventType(String eventType) |
void |
setGlossaryNames(List<String> glossaryNames) |
String |
toString() |
TextDetectionReq |
withData(java.util.function.Consumer<TextDetectionDataReq> dataSetter) |
TextDetectionReq |
withData(TextDetectionDataReq data) |
TextDetectionReq |
withEventType(String eventType) |
TextDetectionReq |
withGlossaryNames(java.util.function.Consumer<List<String>> glossaryNamesSetter) |
TextDetectionReq |
withGlossaryNames(List<String> glossaryNames) |
public TextDetectionReq withEventType(String eventType)
public String getEventType()
public void setEventType(String eventType)
public TextDetectionReq withGlossaryNames(List<String> glossaryNames)
public TextDetectionReq addGlossaryNamesItem(String glossaryNamesItem)
public TextDetectionReq withGlossaryNames(java.util.function.Consumer<List<String>> glossaryNamesSetter)
public TextDetectionReq withData(TextDetectionDataReq data)
public TextDetectionReq withData(java.util.function.Consumer<TextDetectionDataReq> dataSetter)
public TextDetectionDataReq getData()
public void setData(TextDetectionDataReq data)
Copyright © 2022. All rights reserved.