Interface SafetySettingOrBuilder (3.48.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
Type Description
HarmCategory

The category.

getCategoryValue()

public abstract int getCategoryValue()

Required. Harm category.

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

Returns
Type Description
int

The enum numeric value on the wire for category.

getMethod()

public abstract SafetySetting.HarmBlockMethod getMethod()

Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.

.google.cloud.aiplatform.v1.SafetySetting.HarmBlockMethod method = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SafetySetting.HarmBlockMethod

The method.

getMethodValue()

public abstract int getMethodValue()

Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.

.google.cloud.aiplatform.v1.SafetySetting.HarmBlockMethod method = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for method.

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
Type Description
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
Type Description
int

The enum numeric value on the wire for threshold.