public interface SafetySettingOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
HarmCategory |
getCategory()
Required.
|
int |
getCategoryValue()
Required.
|
SafetySetting.HarmBlockMethod |
getMethod()
Optional.
|
int |
getMethodValue()
Optional.
|
SafetySetting.HarmBlockThreshold |
getThreshold()
Required.
|
int |
getThresholdValue()
Required.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofint getCategoryValue()
Required. Harm category.
.google.cloud.vertexai.v1.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];
HarmCategory getCategory()
Required. Harm category.
.google.cloud.vertexai.v1.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];
int getThresholdValue()
Required. The harm block threshold.
.google.cloud.vertexai.v1.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED];
SafetySetting.HarmBlockThreshold getThreshold()
Required. The harm block threshold.
.google.cloud.vertexai.v1.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED];
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.vertexai.v1.SafetySetting.HarmBlockMethod method = 4 [(.google.api.field_behavior) = OPTIONAL];
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.vertexai.v1.SafetySetting.HarmBlockMethod method = 4 [(.google.api.field_behavior) = OPTIONAL];
Copyright © 2025 Google LLC. All rights reserved.