Interface Guardrail.ModelSafety.SafetySettingOrBuilder (0.1.0)

public static interface Guardrail.ModelSafety.SafetySettingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCategory()

public abstract Guardrail.ModelSafety.HarmCategory getCategory()

Required. The harm category.

.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Guardrail.ModelSafety.HarmCategory

The category.

getCategoryValue()

public abstract int getCategoryValue()

Required. The harm category.

.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for category.

getThreshold()

public abstract Guardrail.ModelSafety.HarmBlockThreshold getThreshold()

Required. The harm block threshold.

.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Guardrail.ModelSafety.HarmBlockThreshold

The threshold.

getThresholdValue()

public abstract int getThresholdValue()

Required. The harm block threshold.

.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for threshold.