Class AdultInfo
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.AdultInfo
-
public class AdultInfo extends Object
An object describing whether the image contains adult-oriented content and/or is racy.
-
-
Constructor Summary
Constructors Constructor Description AdultInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
adultScore()
Get the adultScore value.double
goreScore()
Get the goreScore value.boolean
isAdultContent()
Get the isAdultContent value.boolean
isGoryContent()
Get the isGoryContent value.boolean
isRacyContent()
Get the isRacyContent value.double
racyScore()
Get the racyScore value.AdultInfo
withAdultScore(double adultScore)
Set the adultScore value.AdultInfo
withGoreScore(double goreScore)
Set the goreScore value.AdultInfo
withIsAdultContent(boolean isAdultContent)
Set the isAdultContent value.AdultInfo
withIsGoryContent(boolean isGoryContent)
Set the isGoryContent value.AdultInfo
withIsRacyContent(boolean isRacyContent)
Set the isRacyContent value.AdultInfo
withRacyScore(double racyScore)
Set the racyScore value.
-
-
-
Method Detail
-
isAdultContent
public boolean isAdultContent()
Get the isAdultContent value.- Returns:
- the isAdultContent value
-
withIsAdultContent
public AdultInfo withIsAdultContent(boolean isAdultContent)
Set the isAdultContent value.- Parameters:
isAdultContent
- the isAdultContent value to set- Returns:
- the AdultInfo object itself.
-
isRacyContent
public boolean isRacyContent()
Get the isRacyContent value.- Returns:
- the isRacyContent value
-
withIsRacyContent
public AdultInfo withIsRacyContent(boolean isRacyContent)
Set the isRacyContent value.- Parameters:
isRacyContent
- the isRacyContent value to set- Returns:
- the AdultInfo object itself.
-
isGoryContent
public boolean isGoryContent()
Get the isGoryContent value.- Returns:
- the isGoryContent value
-
withIsGoryContent
public AdultInfo withIsGoryContent(boolean isGoryContent)
Set the isGoryContent value.- Parameters:
isGoryContent
- the isGoryContent value to set- Returns:
- the AdultInfo object itself.
-
adultScore
public double adultScore()
Get the adultScore value.- Returns:
- the adultScore value
-
withAdultScore
public AdultInfo withAdultScore(double adultScore)
Set the adultScore value.- Parameters:
adultScore
- the adultScore value to set- Returns:
- the AdultInfo object itself.
-
racyScore
public double racyScore()
Get the racyScore value.- Returns:
- the racyScore value
-
withRacyScore
public AdultInfo withRacyScore(double racyScore)
Set the racyScore value.- Parameters:
racyScore
- the racyScore value to set- Returns:
- the AdultInfo object itself.
-
goreScore
public double goreScore()
Get the goreScore value.- Returns:
- the goreScore value
-
withGoreScore
public AdultInfo withGoreScore(double goreScore)
Set the goreScore value.- Parameters:
goreScore
- the goreScore value to set- Returns:
- the AdultInfo object itself.
-
-