severity

public abstract SafetyRating.Builder severity(HarmSeverity severity)

Setter for severity.

severity: Output only. The severity of harm for this category. This field is not supported in Gemini API.


@CanIgnoreReturnValue()
public SafetyRating.Builder severity(HarmSeverity.Known knownType)

Setter for severity given a known enum.

severity: Output only. The severity of harm for this category. This field is not supported in Gemini API.


@CanIgnoreReturnValue()
public SafetyRating.Builder severity(String severity)

Setter for severity given a string.

severity: Output only. The severity of harm for this category. This field is not supported in Gemini API.