Package com.azure.ai.openai.models
Class ImageGenerationContentFilterResults
java.lang.Object
com.azure.ai.openai.models.ImageGenerationContentFilterResults
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ImageGenerationContentFilterResults>
public final class ImageGenerationContentFilterResults
extends Object
implements com.azure.json.JsonSerializable<ImageGenerationContentFilterResults>
Describes the content filtering result for the image generation request.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ImageGenerationContentFilterResults from the JsonReader.getHate()Get the hate property: Describes language attacks or uses that include pejorative or discriminatory language with reference to a person or identity group on the basis of certain differentiating attributes of these groups including but not limited to race, ethnicity, nationality, gender identity and expression, sexual orientation, religion, immigration status, ability status, personal appearance, and body size.Get the selfHarm property: Describes language related to physical actions intended to purposely hurt, injure, or damage one’s body, or kill oneself.Get the sexual property: Describes language related to anatomical organs and genitals, romantic relationships, acts portrayed in erotic or affectionate terms, physical sexual acts, including those portrayed as an assault or a forced sexual violent act against one’s will, prostitution, pornography, and abuse.Get the violence property: Describes language related to physical actions intended to hurt, injure, damage, or kill someone or something; describes weapons, etc.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
Method Details
-
getSexual
Get the sexual property: Describes language related to anatomical organs and genitals, romantic relationships, acts portrayed in erotic or affectionate terms, physical sexual acts, including those portrayed as an assault or a forced sexual violent act against one’s will, prostitution, pornography, and abuse.- Returns:
- the sexual value.
-
getViolence
Get the violence property: Describes language related to physical actions intended to hurt, injure, damage, or kill someone or something; describes weapons, etc.- Returns:
- the violence value.
-
getHate
Get the hate property: Describes language attacks or uses that include pejorative or discriminatory language with reference to a person or identity group on the basis of certain differentiating attributes of these groups including but not limited to race, ethnicity, nationality, gender identity and expression, sexual orientation, religion, immigration status, ability status, personal appearance, and body size.- Returns:
- the hate value.
-
getSelfHarm
Get the selfHarm property: Describes language related to physical actions intended to purposely hurt, injure, or damage one’s body, or kill oneself.- Returns:
- the selfHarm value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ImageGenerationContentFilterResults>- Throws:
IOException
-
fromJson
public static ImageGenerationContentFilterResults fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ImageGenerationContentFilterResults from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ImageGenerationContentFilterResults if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ImageGenerationContentFilterResults.
-