public interface ListVoicesRequestOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getLanguageCode()
public abstract String getLanguageCode() Optional. Recommended.
BCP-47 language tag.
If not specified, the API will return all supported voices.
If specified, the ListVoices call will only return voices that can be used
to synthesize this language_code. For example, if you specify "en-NZ",
all "en-NZ" voices will be returned. If you specify "no", both
"no-\" (Norwegian) and "nb-\" (Norwegian Bokmal) voices will be
returned.
string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The languageCode. |
getLanguageCodeBytes()
public abstract ByteString getLanguageCodeBytes() Optional. Recommended.
BCP-47 language tag.
If not specified, the API will return all supported voices.
If specified, the ListVoices call will only return voices that can be used
to synthesize this language_code. For example, if you specify "en-NZ",
all "en-NZ" voices will be returned. If you specify "no", both
"no-\" (Norwegian) and "nb-\" (Norwegian Bokmal) voices will be
returned.
string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for languageCode. |