public enum SsmlVoiceGender extends Enum<SsmlVoiceGender> implements ProtocolMessageEnum
Gender of the voice as described in [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).Protobuf enum
google.cloud.dialogflow.v2.SsmlVoiceGender
Enum Constant and Description |
---|
SSML_VOICE_GENDER_FEMALE
A female voice.
|
SSML_VOICE_GENDER_MALE
A male voice.
|
SSML_VOICE_GENDER_NEUTRAL
A gender-neutral voice.
|
SSML_VOICE_GENDER_UNSPECIFIED
An unspecified gender, which means that the client doesn't care which
gender the selected voice will have.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
SSML_VOICE_GENDER_FEMALE_VALUE
A female voice.
|
static int |
SSML_VOICE_GENDER_MALE_VALUE
A male voice.
|
static int |
SSML_VOICE_GENDER_NEUTRAL_VALUE
A gender-neutral voice.
|
static int |
SSML_VOICE_GENDER_UNSPECIFIED_VALUE
An unspecified gender, which means that the client doesn't care which
gender the selected voice will have.
|
Modifier and Type | Method and Description |
---|---|
static SsmlVoiceGender |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<SsmlVoiceGender> |
internalGetValueMap() |
static SsmlVoiceGender |
valueOf(Descriptors.EnumValueDescriptor desc) |
static SsmlVoiceGender |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SsmlVoiceGender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SsmlVoiceGender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SsmlVoiceGender SSML_VOICE_GENDER_UNSPECIFIED
An unspecified gender, which means that the client doesn't care which gender the selected voice will have.
SSML_VOICE_GENDER_UNSPECIFIED = 0;
public static final SsmlVoiceGender SSML_VOICE_GENDER_MALE
A male voice.
SSML_VOICE_GENDER_MALE = 1;
public static final SsmlVoiceGender SSML_VOICE_GENDER_FEMALE
A female voice.
SSML_VOICE_GENDER_FEMALE = 2;
public static final SsmlVoiceGender SSML_VOICE_GENDER_NEUTRAL
A gender-neutral voice.
SSML_VOICE_GENDER_NEUTRAL = 3;
public static final SsmlVoiceGender UNRECOGNIZED
public static final int SSML_VOICE_GENDER_UNSPECIFIED_VALUE
An unspecified gender, which means that the client doesn't care which gender the selected voice will have.
SSML_VOICE_GENDER_UNSPECIFIED = 0;
public static final int SSML_VOICE_GENDER_MALE_VALUE
A male voice.
SSML_VOICE_GENDER_MALE = 1;
public static final int SSML_VOICE_GENDER_FEMALE_VALUE
A female voice.
SSML_VOICE_GENDER_FEMALE = 2;
public static final int SSML_VOICE_GENDER_NEUTRAL_VALUE
A gender-neutral voice.
SSML_VOICE_GENDER_NEUTRAL = 3;
public static SsmlVoiceGender[] values()
for (SsmlVoiceGender c : SsmlVoiceGender.values()) System.out.println(c);
public static SsmlVoiceGender valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static SsmlVoiceGender valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static SsmlVoiceGender forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<SsmlVoiceGender> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static SsmlVoiceGender valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.