Interface SafetySettingOrBuilder (3.36.0)

public interface SafetySettingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCategory()

public abstract HarmCategory getCategory()

Required. Harm category.

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

Returns
TypeDescription
HarmCategory

The category.

getCategoryValue()

public abstract int getCategoryValue()

Required. Harm category.

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

Returns
TypeDescription
int

The enum numeric value on the wire for category.

getThreshold()

public abstract SafetySetting.HarmBlockThreshold getThreshold()

Required. The harm block threshold.

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

Returns
TypeDescription
SafetySetting.HarmBlockThreshold

The threshold.

getThresholdValue()

public abstract int getThresholdValue()

Required. The harm block threshold.

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

Returns
TypeDescription
int

The enum numeric value on the wire for threshold.