public static enum CustomVoiceParams.ReportedUsage extends Enum<CustomVoiceParams.ReportedUsage> implements ProtocolMessageEnum
The usage of the synthesized audio. You must report your honest and correct usage of the service as it's regulated by contract and will cause significant difference in billing.Protobuf enum
google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage
Enum Constant and Description |
---|
OFFLINE
For scenarios where the synthesized audio is downloadable and can be
reused.
|
REALTIME
For scenarios where the synthesized audio is not downloadable and can
only be used once.
|
REPORTED_USAGE_UNSPECIFIED
Request with reported usage unspecified will be rejected.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
OFFLINE_VALUE
For scenarios where the synthesized audio is downloadable and can be
reused.
|
static int |
REALTIME_VALUE
For scenarios where the synthesized audio is not downloadable and can
only be used once.
|
static int |
REPORTED_USAGE_UNSPECIFIED_VALUE
Request with reported usage unspecified will be rejected.
|
Modifier and Type | Method and Description |
---|---|
static CustomVoiceParams.ReportedUsage |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<CustomVoiceParams.ReportedUsage> |
internalGetValueMap() |
static CustomVoiceParams.ReportedUsage |
valueOf(Descriptors.EnumValueDescriptor desc) |
static CustomVoiceParams.ReportedUsage |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CustomVoiceParams.ReportedUsage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CustomVoiceParams.ReportedUsage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CustomVoiceParams.ReportedUsage REPORTED_USAGE_UNSPECIFIED
Request with reported usage unspecified will be rejected.
REPORTED_USAGE_UNSPECIFIED = 0;
public static final CustomVoiceParams.ReportedUsage REALTIME
For scenarios where the synthesized audio is not downloadable and can only be used once. For example, real-time request in IVR system.
REALTIME = 1;
public static final CustomVoiceParams.ReportedUsage OFFLINE
For scenarios where the synthesized audio is downloadable and can be reused. For example, the synthesized audio is downloaded, stored in customer service system and played repeatedly.
OFFLINE = 2;
public static final CustomVoiceParams.ReportedUsage UNRECOGNIZED
public static final int REPORTED_USAGE_UNSPECIFIED_VALUE
Request with reported usage unspecified will be rejected.
REPORTED_USAGE_UNSPECIFIED = 0;
public static final int REALTIME_VALUE
For scenarios where the synthesized audio is not downloadable and can only be used once. For example, real-time request in IVR system.
REALTIME = 1;
public static final int OFFLINE_VALUE
For scenarios where the synthesized audio is downloadable and can be reused. For example, the synthesized audio is downloaded, stored in customer service system and played repeatedly.
OFFLINE = 2;
public static CustomVoiceParams.ReportedUsage[] values()
for (CustomVoiceParams.ReportedUsage c : CustomVoiceParams.ReportedUsage.values()) System.out.println(c);
public static CustomVoiceParams.ReportedUsage 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 CustomVoiceParams.ReportedUsage valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static CustomVoiceParams.ReportedUsage forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<CustomVoiceParams.ReportedUsage> 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 CustomVoiceParams.ReportedUsage valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.