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" : Unspecified harm block threshold.
  • "BLOCK_LOW_AND_ABOVE" : Block low threshold and above (i.e. block more).
  • "BLOCK_MEDIUM_AND_ABOVE" : Block medium threshold and above.
  • "BLOCK_ONLY_HIGH" : Block only high threshold (i.e. block less).
  • "BLOCK_NONE" : Block none.
  • "OFF" : Turn off the safety filter.

Implementation

core.String? overwrittenThreshold;