Enum AdvancedVoiceOptions.HarmBlockThreshold (2.92.0)

public enum AdvancedVoiceOptions.HarmBlockThreshold extends Enum<AdvancedVoiceOptions.HarmBlockThreshold> implements ProtocolMessageEnum

Harm block thresholds for the safety settings.

Protobuf enum google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold

Implements

ProtocolMessageEnum

Static Fields

Name Description
BLOCK_LOW_AND_ABOVE

Block content with a low harm probability or higher.

BLOCK_LOW_AND_ABOVE = 1;

BLOCK_LOW_AND_ABOVE_VALUE

Block content with a low harm probability or higher.

BLOCK_LOW_AND_ABOVE = 1;

BLOCK_MEDIUM_AND_ABOVE

Block content with a medium harm probability or higher.

BLOCK_MEDIUM_AND_ABOVE = 2;

BLOCK_MEDIUM_AND_ABOVE_VALUE

Block content with a medium harm probability or higher.

BLOCK_MEDIUM_AND_ABOVE = 2;

BLOCK_NONE

Do not block any content, regardless of its harm probability.

BLOCK_NONE = 4;

BLOCK_NONE_VALUE

Do not block any content, regardless of its harm probability.

BLOCK_NONE = 4;

BLOCK_ONLY_HIGH

Block content with a high harm probability.

BLOCK_ONLY_HIGH = 3;

BLOCK_ONLY_HIGH_VALUE

Block content with a high harm probability.

BLOCK_ONLY_HIGH = 3;

HARM_BLOCK_THRESHOLD_UNSPECIFIED

The harm block threshold is unspecified.

HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0;

HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE

The harm block threshold is unspecified.

HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0;

OFF

Turn off the safety filter entirely.

OFF = 5;

OFF_VALUE

Turn off the safety filter entirely.

OFF = 5;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()