Package com.google.genai.types
Class SafetySetting.Builder
java.lang.Object
com.google.genai.types.SafetySetting.Builder
- Enclosing class:
- SafetySetting
Builder for SafetySetting.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SafetySetting
build()
abstract SafetySetting.Builder
category
(HarmCategory category) Setter for category.category
(HarmCategory.Known knownType) Setter for category given a known enum.Setter for category given a string.abstract SafetySetting.Builder
method
(HarmBlockMethod method) Setter for method.method
(HarmBlockMethod.Known knownType) Setter for method given a known enum.Setter for method given a string.abstract SafetySetting.Builder
threshold
(HarmBlockThreshold threshold) Setter for threshold.threshold
(HarmBlockThreshold.Known knownType) Setter for threshold given a known enum.Setter for threshold given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
method
Setter for method.method: Determines if the harm block method uses probability or probability and severity scores.
-
method
Setter for method given a known enum.method: Determines if the harm block method uses probability or probability and severity scores.
-
method
Setter for method given a string.method: Determines if the harm block method uses probability or probability and severity scores.
-
category
Setter for category.category: Required. Harm category.
-
category
Setter for category given a known enum.category: Required. Harm category.
-
category
Setter for category given a string.category: Required. Harm category.
-
threshold
Setter for threshold.threshold: Required. The harm block threshold.
-
threshold
Setter for threshold given a known enum.threshold: Required. The harm block threshold.
-
threshold
Setter for threshold given a string.threshold: Required. The harm block threshold.
-
build
-