ContentFilterDetectionResult Class
- java.
lang. Object - com.
azure. ai. openai. models. ContentFilterDetectionResult
- com.
Implements
public final class ContentFilterDetectionResult
implements JsonSerializable<ContentFilterDetectionResult>
Represents the outcome of a detection operation performed by content filtering.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
boolean |
isDetected()
Get the detected property: A value indicating whether detection occurred, irrespective of severity or whether the content was filtered. |
boolean |
isFiltered()
Get the filtered property: A value indicating whether or not the content has been filtered. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ContentFilterDetectionResult fromJson(JsonReader jsonReader)
Reads an instance of ContentFilterDetectionResult from the JsonReader.
Parameters:
Returns:
Throws:
isDetected
public boolean isDetected()
Get the detected property: A value indicating whether detection occurred, irrespective of severity or whether the content was filtered.
Returns:
isFiltered
public boolean isFiltered()
Get the filtered property: A value indicating whether or not the content has been filtered.
Returns:
toJson
Applies to
Azure SDK for Java