TranslationTone Class

public final class TranslationTone
extends ExpandableStringEnum<TranslationTone>

Desired tone for the translated text.

Field Summary

Modifier and Type Field and Description
static final TranslationTone FORMAL

Formal tone.

static final TranslationTone INFORMAL

Informal tone.

static final TranslationTone NEUTRAL

Neutral tone.

Constructor Summary

Constructor Description
TranslationTone()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TranslationTone value.

Method Summary

Modifier and Type Method and Description
static TranslationTone fromString(String name)

Creates or finds a TranslationTone from its string representation.

static Collection<TranslationTone> values()

Gets known TranslationTone values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FORMAL

public static final TranslationTone FORMAL

Formal tone.

INFORMAL

public static final TranslationTone INFORMAL

Informal tone.

NEUTRAL

public static final TranslationTone NEUTRAL

Neutral tone.

Constructor Details

TranslationTone

@Deprecated
public TranslationTone()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TranslationTone value.

Method Details

fromString

public static TranslationTone fromString(String name)

Creates or finds a TranslationTone from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding TranslationTone.

values

public static Collection<TranslationTone> values()

Gets known TranslationTone values.

Returns:

known TranslationTone values.

Applies to