public class UploadDocRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
UploadDocRequest() |
UploadDocRequest(UploadDocRequest 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 |
---|---|
AttributeLabelReferItem[] |
getAttributeLabel()
Deprecated.
|
AttributeLabelReferItem[] |
getAttributeLabels()
Get 属性标签引用
|
SegmentationConfig |
getConfig()
Get 分段信息
|
String |
getFileName()
Get 文件名。
需带文件类型后缀**
|
String |
getFileType()
Get 文件类型。
支持的文件类型:**
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`
支持的文件大小:**
- `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
- `TXT`、`MD` 最大10M
- 其他 最大20M
|
String |
getFileUrl()
Get 文件的 URL 地址。
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
String |
getKnowledgeBaseId()
Get 知识库ID
|
void |
setAttributeLabel(AttributeLabelReferItem[] AttributeLabel)
Deprecated.
|
void |
setAttributeLabels(AttributeLabelReferItem[] AttributeLabels)
Set 属性标签引用
|
void |
setConfig(SegmentationConfig Config)
Set 分段信息
|
void |
setFileName(String FileName)
Set 文件名。
需带文件类型后缀**
|
void |
setFileType(String FileType)
Set 文件类型。
支持的文件类型:**
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`
支持的文件大小:**
- `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
- `TXT`、`MD` 最大10M
- 其他 最大20M
|
void |
setFileUrl(String FileUrl)
Set 文件的 URL 地址。
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
void |
setKnowledgeBaseId(String KnowledgeBaseId)
Set 知识库ID
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public UploadDocRequest()
public UploadDocRequest(UploadDocRequest source)
public String getKnowledgeBaseId()
public void setKnowledgeBaseId(String KnowledgeBaseId)
KnowledgeBaseId
- 知识库IDpublic String getFileName()
public void setFileName(String FileName)
FileName
- 文件名。
需带文件类型后缀**public String getFileType()
public void setFileType(String FileType)
FileType
- 文件类型。
支持的文件类型:**
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`
支持的文件大小:**
- `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
- `TXT`、`MD` 最大10M
- 其他 最大20Mpublic String getFileUrl()
public void setFileUrl(String FileUrl)
FileUrl
- 文件的 URL 地址。
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)@Deprecated public AttributeLabelReferItem[] getAttributeLabel()
@Deprecated public void setAttributeLabel(AttributeLabelReferItem[] AttributeLabel)
AttributeLabel
- 属性标签引用public AttributeLabelReferItem[] getAttributeLabels()
public void setAttributeLabels(AttributeLabelReferItem[] AttributeLabels)
AttributeLabels
- 属性标签引用public SegmentationConfig getConfig()
public void setConfig(SegmentationConfig Config)
Config
- 分段信息Copyright © 2025. All rights reserved.