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

UploadKnowledgeSourceFileMultipartRequest Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.UploadKnowledgeSourceFileMultipartRequest

public final class UploadKnowledgeSourceFileMultipartRequest

Multipart request for uploading a file to a File knowledge source.

Constructor Summary

Constructor Description
UploadKnowledgeSourceFileMultipartRequest(FileUploadMetadata metadata, ContentFileDetails content)

Creates an instance of UploadKnowledgeSourceFileMultipartRequest class.

Method Summary

Modifier and Type Method and Description
ContentFileDetails getContent()

Get the content property: The raw file content.

FileUploadMetadata getMetadata()

Get the metadata property: The JSON metadata describing the file.

Methods inherited from java.lang.Object

Constructor Details

UploadKnowledgeSourceFileMultipartRequest

public UploadKnowledgeSourceFileMultipartRequest(FileUploadMetadata metadata, ContentFileDetails content)

Creates an instance of UploadKnowledgeSourceFileMultipartRequest class.

Parameters:

metadata - the metadata value to set.
content - the content value to set.

Method Details

getContent

public ContentFileDetails getContent()

Get the content property: The raw file content.

Returns:

the content value.

getMetadata

public FileUploadMetadata getMetadata()

Get the metadata property: The JSON metadata describing the file.

Returns:

the metadata value.

Applies to