Interface SafetySettingOrBuilder (0.2.0)

public interface SafetySettingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCategory()

public abstract HarmCategory getCategory()

Required. Harm category.

.google.cloud.vertexai.v1beta1.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HarmCategory

The category.

getCategoryValue()

public abstract int getCategoryValue()

Required. Harm category.

.google.cloud.vertexai.v1beta1.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for category.

getThreshold()

public abstract SafetySetting.HarmBlockThreshold getThreshold()

Required. The harm block threshold.

.google.cloud.vertexai.v1beta1.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SafetySetting.HarmBlockThreshold

The threshold.

getThresholdValue()

public abstract int getThresholdValue()

Required. The harm block threshold.

.google.cloud.vertexai.v1beta1.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for threshold.