HarmBlockMethod

public final class HarmBlockMethod


Specifies how the block method computes the score that will be compared against the HarmBlockThreshold in SafetySetting.

Summary

Nested types

public static class HarmBlockMethod.Companion

Public fields

static final @NonNull HarmBlockMethod

The harm block method uses the probability score.

static final @NonNull HarmBlockMethod

The harm block method uses both probability and severity scores.

final int

Public fields

PROBABILITY

public static final @NonNull HarmBlockMethod PROBABILITY

The harm block method uses the probability score. See HarmProbability.

SEVERITY

public static final @NonNull HarmBlockMethod SEVERITY

The harm block method uses both probability and severity scores. See HarmSeverity and HarmProbability.

ordinal

public final int ordinal