Builder

public abstract class Builder

Builder for SafetySetting.

Constructors

Link copied to clipboard
public void SafetySetting.Builder()

Functions

Link copied to clipboard
public abstract SafetySetting build()
Link copied to clipboard
public abstract SafetySetting.Builder category(HarmCategory category)
Setter for category.
@CanIgnoreReturnValue()
public SafetySetting.Builder category(HarmCategory.Known knownType)
Setter for category given a known enum.
@CanIgnoreReturnValue()
public SafetySetting.Builder category(String category)
Setter for category given a string.
Link copied to clipboard
@CanIgnoreReturnValue()
public SafetySetting.Builder clearCategory()
Clears the value of category field.
Link copied to clipboard
@CanIgnoreReturnValue()
public SafetySetting.Builder clearMethod()
Clears the value of method field.
Link copied to clipboard
@CanIgnoreReturnValue()
public SafetySetting.Builder clearThreshold()
Clears the value of threshold field.
Link copied to clipboard
public abstract SafetySetting.Builder method(HarmBlockMethod method)
Setter for method.
@CanIgnoreReturnValue()
public SafetySetting.Builder method(HarmBlockMethod.Known knownType)
Setter for method given a known enum.
@CanIgnoreReturnValue()
public SafetySetting.Builder method(String method)
Setter for method given a string.
Link copied to clipboard
Setter for threshold.
@CanIgnoreReturnValue()
public SafetySetting.Builder threshold(HarmBlockThreshold.Known knownType)
Setter for threshold given a known enum.
@CanIgnoreReturnValue()
public SafetySetting.Builder threshold(String threshold)
Setter for threshold given a string.