Package com.google.cloud.dialogflow.v2
Class CustomPronunciationParams.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomPronunciationParams.Builder>
com.google.cloud.dialogflow.v2.CustomPronunciationParams.Builder
- All Implemented Interfaces:
CustomPronunciationParamsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomPronunciationParams
public static final class CustomPronunciationParams.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomPronunciationParams.Builder>
implements CustomPronunciationParamsOrBuilder
Pronunciation customization for a phrase.Protobuf type
google.cloud.dialogflow.v2.CustomPronunciationParams-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The phonetic encoding of the phrase.The phrase to which the customization is applied.The pronunciation of the phrase.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe 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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The phonetic encoding of the phrase.setPhoneticEncodingValue(int value) The phonetic encoding of the phrase.The phrase to which the customization is applied.setPhraseBytes(com.google.protobuf.ByteString value) The phrase to which the customization is applied.setPronunciation(String value) The pronunciation of the phrase.setPronunciationBytes(com.google.protobuf.ByteString value) The pronunciation of the phrase.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CustomPronunciationParams.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CustomPronunciationParams.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CustomPronunciationParams.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomPronunciationParams.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomPronunciationParams.Builder>
-
mergeFrom
public CustomPronunciationParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomPronunciationParams.Builder>- Throws:
IOException
-
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.
string phrase = 1;- Specified by:
getPhrasein interfaceCustomPronunciationParamsOrBuilder- Returns:
- The phrase.
-
getPhraseBytes
public 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.
string phrase = 1;- Specified by:
getPhraseBytesin interfaceCustomPronunciationParamsOrBuilder- Returns:
- The bytes for phrase.
-
setPhrase
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.
string phrase = 1;- Parameters:
value- The phrase to set.- Returns:
- This builder for chaining.
-
clearPhrase
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.
string phrase = 1;- Returns:
- This builder for chaining.
-
setPhraseBytes
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.
string phrase = 1;- Parameters:
value- The bytes for phrase to set.- Returns:
- This builder for chaining.
-
getPhoneticEncodingValue
public int getPhoneticEncodingValue()The phonetic encoding of the phrase.
.google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;- Specified by:
getPhoneticEncodingValuein interfaceCustomPronunciationParamsOrBuilder- Returns:
- The enum numeric value on the wire for phoneticEncoding.
-
setPhoneticEncodingValue
The phonetic encoding of the phrase.
.google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;- Parameters:
value- The enum numeric value on the wire for phoneticEncoding to set.- Returns:
- This builder for chaining.
-
getPhoneticEncoding
The phonetic encoding of the phrase.
.google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;- Specified by:
getPhoneticEncodingin interfaceCustomPronunciationParamsOrBuilder- Returns:
- The phoneticEncoding.
-
setPhoneticEncoding
public CustomPronunciationParams.Builder setPhoneticEncoding(CustomPronunciationParams.PhoneticEncoding value) The phonetic encoding of the phrase.
.google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;- Parameters:
value- The phoneticEncoding to set.- Returns:
- This builder for chaining.
-
clearPhoneticEncoding
The phonetic encoding of the phrase.
.google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;- Returns:
- This builder for chaining.
-
getPronunciation
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
string pronunciation = 3;- Specified by:
getPronunciationin interfaceCustomPronunciationParamsOrBuilder- Returns:
- The pronunciation.
-
getPronunciationBytes
public com.google.protobuf.ByteString getPronunciationBytes()The pronunciation of the phrase. This must be in the phonetic encoding specified above.
string pronunciation = 3;- Specified by:
getPronunciationBytesin interfaceCustomPronunciationParamsOrBuilder- Returns:
- The bytes for pronunciation.
-
setPronunciation
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
string pronunciation = 3;- Parameters:
value- The pronunciation to set.- Returns:
- This builder for chaining.
-
clearPronunciation
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
string pronunciation = 3;- Returns:
- This builder for chaining.
-
setPronunciationBytes
public CustomPronunciationParams.Builder setPronunciationBytes(com.google.protobuf.ByteString value) The pronunciation of the phrase. This must be in the phonetic encoding specified above.
string pronunciation = 3;- Parameters:
value- The bytes for pronunciation to set.- Returns:
- This builder for chaining.
-