Interface AnswerQueryRequest.SafetySpec.SafetySettingOrBuilder (0.58.0)

public static interface AnswerQueryRequest.SafetySpec.SafetySettingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCategory()

public abstract HarmCategory getCategory()

Required. Harm category.

.google.cloud.discoveryengine.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.discoveryengine.v1.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for category.

getThreshold()

public abstract AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold getThreshold()

Required. The harm block threshold.

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

Returns
Type Description
AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold

The threshold.

getThresholdValue()

public abstract int getThresholdValue()

Required. The harm block threshold.

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

Returns
Type Description
int

The enum numeric value on the wire for threshold.