Package com.google.cloud.texttospeech.v1
Interface AdvancedVoiceOptions.SafetySettingOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AdvancedVoiceOptions.SafetySetting,AdvancedVoiceOptions.SafetySetting.Builder
- Enclosing class:
- AdvancedVoiceOptions
public static interface AdvancedVoiceOptions.SafetySettingOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe harm category to apply the safety setting to.intThe harm category to apply the safety setting to.The harm block threshold for the safety setting.intThe harm block threshold for the safety setting.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getCategoryValue
int getCategoryValue()The harm category to apply the safety setting to.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory category = 1;- Returns:
- The enum numeric value on the wire for category.
-
getCategory
AdvancedVoiceOptions.HarmCategory getCategory()The harm category to apply the safety setting to.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory category = 1;- Returns:
- The category.
-
getThresholdValue
int getThresholdValue()The harm block threshold for the safety setting.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2;- Returns:
- The enum numeric value on the wire for threshold.
-
getThreshold
AdvancedVoiceOptions.HarmBlockThreshold getThreshold()The harm block threshold for the safety setting.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2;- Returns:
- The threshold.
-