overwrittenThreshold property

String? overwrittenThreshold
getter/setter pair

The overwritten threshold for the safety category of Gemini 2.0 image out.

If minors are detected in the output image, the threshold of each safety category will be overwritten if user sets a lower threshold.

Output only. Possible string values are:

  • "HARM_BLOCK_THRESHOLD_UNSPECIFIED" : The harm block threshold is unspecified.
  • "BLOCK_LOW_AND_ABOVE" : Block content with a low harm probability or higher.
  • "BLOCK_MEDIUM_AND_ABOVE" : Block content with a medium harm probability or higher.
  • "BLOCK_ONLY_HIGH" : Block content with a high harm probability.
  • "BLOCK_NONE" : Do not block any content, regardless of its harm probability.
  • "OFF" : Turn off the safety filter entirely.

Implementation

core.String? overwrittenThreshold;