public class ReconstructDocumentSSEResponse extends SSEResponseModel
SSEResponseModel.SSE
header, skipSign
Constructor and Description |
---|
ReconstructDocumentSSEResponse() |
ReconstructDocumentSSEResponse(ReconstructDocumentSSEResponse source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getDocumentRecognizeResultUrl()
Get 文档解析结果URL。存储在腾讯云cos,可以通过http请求下载,URL十分钟内有效。
|
ReconstructDocumentFailedPage[] |
getFailedPages()
Get 文档解析失败的页码。
|
String |
getProgress()
Get 进度。0~100
|
String |
getProgressMessage()
Get 进度信息。
|
String |
getRequestId()
Get 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
String |
getResponseType()
Get 响应类型。1:返回进度信息,2:返回解析结果
|
String |
getTaskId()
Get 任务ID。本次请求的唯一标识
|
void |
setDocumentRecognizeResultUrl(String DocumentRecognizeResultUrl)
Set 文档解析结果URL。存储在腾讯云cos,可以通过http请求下载,URL十分钟内有效。
|
void |
setFailedPages(ReconstructDocumentFailedPage[] FailedPages)
Set 文档解析失败的页码。
|
void |
setProgress(String Progress)
Set 进度。0~100
|
void |
setProgressMessage(String ProgressMessage)
Set 进度信息。
|
void |
setRequestId(String RequestId)
Set 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
void |
setResponseType(String ResponseType)
Set 响应类型。1:返回进度信息,2:返回解析结果
|
void |
setTaskId(String TaskId)
Set 任务ID。本次请求的唯一标识
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
close, isStream, iterator, setResponse, setToken
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ReconstructDocumentSSEResponse()
public ReconstructDocumentSSEResponse(ReconstructDocumentSSEResponse source)
public String getTaskId()
public void setTaskId(String TaskId)
TaskId
- 任务ID。本次请求的唯一标识public String getResponseType()
public void setResponseType(String ResponseType)
ResponseType
- 响应类型。1:返回进度信息,2:返回解析结果public String getProgress()
public void setProgress(String Progress)
Progress
- 进度。0~100public String getProgressMessage()
public void setProgressMessage(String ProgressMessage)
ProgressMessage
- 进度信息。public String getDocumentRecognizeResultUrl()
public void setDocumentRecognizeResultUrl(String DocumentRecognizeResultUrl)
DocumentRecognizeResultUrl
- 文档解析结果URL。存储在腾讯云cos,可以通过http请求下载,URL十分钟内有效。public ReconstructDocumentFailedPage[] getFailedPages()
public void setFailedPages(ReconstructDocumentFailedPage[] FailedPages)
FailedPages
- 文档解析失败的页码。public String getRequestId()
getRequestId
in class SSEResponseModel
public void setRequestId(String RequestId)
setRequestId
in class SSEResponseModel
RequestId
- 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。Copyright © 2025. All rights reserved.