public interface SafetySettingOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getCategory()
public abstract HarmCategory getCategory()
Harm category.
.google.cloud.retail.v2alpha.HarmCategory category = 1;
Returns | |
---|---|
Type | Description |
HarmCategory |
The category. |
getCategoryValue()
public abstract int getCategoryValue()
Harm category.
.google.cloud.retail.v2alpha.HarmCategory category = 1;
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.retail.v2alpha.SafetySetting.HarmBlockMethod method = 3 [(.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.retail.v2alpha.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for method. |
getThreshold()
public abstract SafetySetting.HarmBlockThreshold getThreshold()
The harm block threshold.
.google.cloud.retail.v2alpha.SafetySetting.HarmBlockThreshold threshold = 2;
Returns | |
---|---|
Type | Description |
SafetySetting.HarmBlockThreshold |
The threshold. |
getThresholdValue()
public abstract int getThresholdValue()
The harm block threshold.
.google.cloud.retail.v2alpha.SafetySetting.HarmBlockThreshold threshold = 2;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for threshold. |