Delen via


ContentFilterDetailedResults Class

  • java.lang.Object
    • com.azure.ai.openai.models.ContentFilterDetailedResults

Implements

public final class ContentFilterDetailedResults
implements JsonSerializable<ContentFilterDetailedResults>

Represents a structured collection of result details for content filtering.

Method Summary

Modifier and Type Method and Description
static ContentFilterDetailedResults fromJson(JsonReader jsonReader)

Reads an instance of ContentFilterDetailedResults from the JsonReader.

List<ContentFilterBlocklistIdResult> getDetails()

Get the details property: The collection of detailed blocklist result information.

boolean isFiltered()

Get the filtered property: A value indicating whether or not the content has been filtered.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static ContentFilterDetailedResults fromJson(JsonReader jsonReader)

Reads an instance of ContentFilterDetailedResults from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContentFilterDetailedResults if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getDetails

public List getDetails()

Get the details property: The collection of detailed blocklist result information.

Returns:

the details value.

isFiltered

public boolean isFiltered()

Get the filtered property: A value indicating whether or not the content has been filtered.

Returns:

the filtered value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to