Class ImageDescription
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.ImageDescription
-
public class ImageDescription extends Object
A collection of content tags, along with a list of captions sorted by confidence level, and image metadata.
-
-
Constructor Summary
Constructors Constructor Description ImageDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ImageCaption>
captions()
Get the captions value.ImageMetadata
metadata()
Get the metadata value.String
modelVersion()
Get the modelVersion value.String
requestId()
Get the requestId value.List<String>
tags()
Get the tags value.ImageDescription
withCaptions(List<ImageCaption> captions)
Set the captions value.ImageDescription
withMetadata(ImageMetadata metadata)
Set the metadata value.ImageDescription
withModelVersion(String modelVersion)
Set the modelVersion value.ImageDescription
withRequestId(String requestId)
Set the requestId value.ImageDescription
withTags(List<String> tags)
Set the tags value.
-
-
-
Method Detail
-
withTags
public ImageDescription withTags(List<String> tags)
Set the tags value.- Parameters:
tags
- the tags value to set- Returns:
- the ImageDescription object itself.
-
captions
public List<ImageCaption> captions()
Get the captions value.- Returns:
- the captions value
-
withCaptions
public ImageDescription withCaptions(List<ImageCaption> captions)
Set the captions value.- Parameters:
captions
- the captions value to set- Returns:
- the ImageDescription object itself.
-
requestId
public String requestId()
Get the requestId value.- Returns:
- the requestId value
-
withRequestId
public ImageDescription withRequestId(String requestId)
Set the requestId value.- Parameters:
requestId
- the requestId value to set- Returns:
- the ImageDescription object itself.
-
metadata
public ImageMetadata metadata()
Get the metadata value.- Returns:
- the metadata value
-
withMetadata
public ImageDescription withMetadata(ImageMetadata metadata)
Set the metadata value.- Parameters:
metadata
- the metadata value to set- Returns:
- the ImageDescription object itself.
-
modelVersion
public String modelVersion()
Get the modelVersion value.- Returns:
- the modelVersion value
-
withModelVersion
public ImageDescription withModelVersion(String modelVersion)
Set the modelVersion value.- Parameters:
modelVersion
- the modelVersion value to set- Returns:
- the ImageDescription object itself.
-
-