Package com.google.cloud.texttospeech.v1
Interface CustomPronunciationParamsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CustomPronunciationParams,CustomPronunciationParams.Builder
@Generated
public interface CustomPronunciationParamsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe phonetic encoding of the phrase.intThe phonetic encoding of the phrase.The phrase to which the customization is applied.com.google.protobuf.ByteStringThe phrase to which the customization is applied.The pronunciation of the phrase.com.google.protobuf.ByteStringThe pronunciation of the phrase.booleanThe phonetic encoding of the phrase.booleanThe phrase to which the customization is applied.booleanThe pronunciation of the phrase.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasPhrase
boolean hasPhrase()The phrase to which the customization is applied. The phrase can be multiple words, such as proper nouns, but shouldn't span the length of the sentence.
optional string phrase = 1;- Returns:
- Whether the phrase field is set.
-
getPhrase
String getPhrase()The phrase to which the customization is applied. The phrase can be multiple words, such as proper nouns, but shouldn't span the length of the sentence.
optional string phrase = 1;- Returns:
- The phrase.
-
getPhraseBytes
com.google.protobuf.ByteString getPhraseBytes()The phrase to which the customization is applied. The phrase can be multiple words, such as proper nouns, but shouldn't span the length of the sentence.
optional string phrase = 1;- Returns:
- The bytes for phrase.
-
hasPhoneticEncoding
boolean hasPhoneticEncoding()The phonetic encoding of the phrase.
optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;- Returns:
- Whether the phoneticEncoding field is set.
-
getPhoneticEncodingValue
int getPhoneticEncodingValue()The phonetic encoding of the phrase.
optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;- Returns:
- The enum numeric value on the wire for phoneticEncoding.
-
getPhoneticEncoding
CustomPronunciationParams.PhoneticEncoding getPhoneticEncoding()The phonetic encoding of the phrase.
optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;- Returns:
- The phoneticEncoding.
-
hasPronunciation
boolean hasPronunciation()The pronunciation of the phrase. This must be in the phonetic encoding specified above.
optional string pronunciation = 3;- Returns:
- Whether the pronunciation field is set.
-
getPronunciation
String getPronunciation()The pronunciation of the phrase. This must be in the phonetic encoding specified above.
optional string pronunciation = 3;- Returns:
- The pronunciation.
-
getPronunciationBytes
com.google.protobuf.ByteString getPronunciationBytes()The pronunciation of the phrase. This must be in the phonetic encoding specified above.
optional string pronunciation = 3;- Returns:
- The bytes for pronunciation.
-