threshold

Setter for threshold.

threshold: Required. The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked.


@CanIgnoreReturnValue()
public SafetySetting.Builder threshold(HarmBlockThreshold.Known knownType)

Setter for threshold given a known enum.

threshold: Required. The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked.


@CanIgnoreReturnValue()
public SafetySetting.Builder threshold(String threshold)

Setter for threshold given a string.

threshold: Required. The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked.