AnalysisInput Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. AnalysisInput
- com.
Implements
public final class AnalysisInput
implements JsonSerializable<AnalysisInput>
Additional input to analyze.
Constructor Summary
| Constructor | Description |
|---|---|
| AnalysisInput() |
Creates an instance of Analysis |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Analysis |
fromJson(JsonReader jsonReader)
Reads an instance of Analysis |
| byte[] |
getData()
Get the data property: Raw image bytes. |
| String |
getMimeType()
Get the mime |
| String |
getName()
Get the name property: Name of the input. |
| String |
getUrl()
Get the url property: The URL of the input to analyze. |
|
Analysis |
setContentRange(ContentRange contentRange)
Set the content |
|
Analysis |
setData(byte[] data)
Set the data property: Raw image bytes. |
|
Analysis |
setMimeType(String mimeType)
Set the mime |
|
Analysis |
setName(String name)
Set the name property: Name of the input. |
|
Analysis |
setUrl(String url)
Set the url property: The URL of the input to analyze. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AnalysisInput
public AnalysisInput()
Creates an instance of AnalysisInput class.
Method Details
fromJson
public static AnalysisInput fromJson(JsonReader jsonReader)
Reads an instance of AnalysisInput from the JsonReader.
Parameters:
Returns:
Throws:
getData
public byte[] getData()
Get the data property: Raw image bytes. Provide bytes-like object; do not base64-encode. Only one of url or data should be specified.
Returns:
getMimeType
public String getMimeType()
Get the mimeType property: The MIME type of the input content. Ex. application/pdf, image/jpeg, etc.
Returns:
getName
public String getName()
Get the name property: Name of the input.
Returns:
getUrl
public String getUrl()
Get the url property: The URL of the input to analyze. Only one of url or data should be specified.
Returns:
setContentRange
public AnalysisInput setContentRange(ContentRange contentRange)
Set the contentRange property using a ContentRange for a self-documenting API. Use factory methods such as pages(int start, int end), ContentRange#timeRange(long, long), or ContentRange#combine(ContentRange...) to build the range.
Parameters:
Returns:
setData
public AnalysisInput setData(byte[] data)
Set the data property: Raw image bytes. Provide bytes-like object; do not base64-encode. Only one of url or data should be specified.
Parameters:
Returns:
setMimeType
public AnalysisInput setMimeType(String mimeType)
Set the mimeType property: The MIME type of the input content. Ex. application/pdf, image/jpeg, etc.
Parameters:
Returns:
setName
public AnalysisInput setName(String name)
Set the name property: Name of the input.
Parameters:
Returns:
setUrl
public AnalysisInput setUrl(String url)
Set the url property: The URL of the input to analyze. Only one of url or data should be specified.
Parameters:
Returns: