public class CreateWordsGeneralizeJobRequest extends BucketRequest
CosXmlRequest.OnRequestWeightListener
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
CreateWordsGeneralizeJobRequest(java.lang.String bucket)
提交一个语音识别任务请求
|
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
java.lang.String |
getPath(CosXmlServiceConfig cosXmlServiceConfig)
获取HTTP URL Path
|
RequestBodySerializer |
getRequestBody()
获取请求体
|
java.lang.String |
getRequestHost(CosXmlServiceConfig config)
获取请求host
|
void |
setCallBack(java.lang.String callBack)
设置任务回调地址
优先级高于队列的回调地址。
|
void |
setCallBackFormat(java.lang.String callBackFormat)
设置任务回调格式,JSON 或 XML,默认 XML
优先级高于队列的回调格式
|
void |
setInputObject(java.lang.String object)
设置文件在 COS 上的 key
|
void |
setJobLevel(int jobLevel)
设置任务优先级,级别限制:0 、1 、2 。
|
void |
setNerMethod(java.lang.String nerMethod)
设置ner方式, 默认值DL
可选值:NerBasic或DL
|
void |
setQueueId(java.lang.String queueId)
设置任务所在的队列 ID
|
void |
setSegMethod(java.lang.String segMethod)
设置分词粒度, 默认值MIX
可选值:SegBasic或MIX
|
void |
setUserData(java.lang.String userData)
设置透传用户信息, 可打印的 ASCII 码, 长度不超过1024
|
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getQueryString, getRegion, getRequestHeaders, getRequestURL, getSignSourceProvider, getSTSCredentialScope, getWeight, headersHasUnsafeNonAscii, isNeedMD5, isSignInUrl, isSupportAccelerate, isSupportAccelerate, setNeedMD5, setOnRequestWeightListener, setQueryEncodedString, setQueryParameters, setRegion, setRequestHeaders, setRequestHeaders, setRequestHeaders, setRequestURL, setSign, setSign, setSign, setSign, setSign, setSignInUrl, setSignKeyTime, setSignParamsAndHeaders, setSignSourceProvider, setTask, setTaskStateListener, xmlBuilder
public CreateWordsGeneralizeJobRequest(@NonNull java.lang.String bucket)
bucket
- 存储桶名public void setInputObject(@NonNull java.lang.String object)
public void setQueueId(@NonNull java.lang.String queueId)
public void setCallBack(@NonNull java.lang.String callBack)
public void setCallBackFormat(@NonNull java.lang.String callBackFormat)
public void setUserData(@NonNull java.lang.String userData)
public void setJobLevel(int jobLevel)
public void setNerMethod(@NonNull java.lang.String nerMethod)
public void setSegMethod(@NonNull java.lang.String segMethod)
public java.lang.String getPath(CosXmlServiceConfig cosXmlServiceConfig)
CosXmlRequest
getPath
在类中 BucketRequest
cosXmlServiceConfig
- SDK服务配置public RequestBodySerializer getRequestBody() throws CosXmlClientException
CosXmlRequest
getRequestBody
在类中 CosXmlRequest
CosXmlClientException
- 客户异常public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 BucketRequest
CosXmlClientException
- cosXmlClientExceptionpublic java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 CosXmlRequest
public java.lang.String getRequestHost(CosXmlServiceConfig config)
CosXmlRequest
getRequestHost
在类中 CosXmlRequest
config
- SDK服务配置