google.cloud.dialogflow.v2.SsmlVoiceGender */ class SsmlVoiceGender { /** * An unspecified gender, which means that the client doesn't care which * gender the selected voice will have. * * Generated from protobuf enum SSML_VOICE_GENDER_UNSPECIFIED = 0; */ const SSML_VOICE_GENDER_UNSPECIFIED = 0; /** * A male voice. * * Generated from protobuf enum SSML_VOICE_GENDER_MALE = 1; */ const SSML_VOICE_GENDER_MALE = 1; /** * A female voice. * * Generated from protobuf enum SSML_VOICE_GENDER_FEMALE = 2; */ const SSML_VOICE_GENDER_FEMALE = 2; /** * A gender-neutral voice. * * Generated from protobuf enum SSML_VOICE_GENDER_NEUTRAL = 3; */ const SSML_VOICE_GENDER_NEUTRAL = 3; private static $valueToName = [ self::SSML_VOICE_GENDER_UNSPECIFIED => 'SSML_VOICE_GENDER_UNSPECIFIED', self::SSML_VOICE_GENDER_MALE => 'SSML_VOICE_GENDER_MALE', self::SSML_VOICE_GENDER_FEMALE => 'SSML_VOICE_GENDER_FEMALE', self::SSML_VOICE_GENDER_NEUTRAL => 'SSML_VOICE_GENDER_NEUTRAL', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } }