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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CustomPronunciationParams.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CustomPronunciationParams.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CustomPronunciationParams.Builder>
    • getDefaultInstanceForType

      public CustomPronunciationParams getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CustomPronunciationParams build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CustomPronunciationParams buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CustomPronunciationParams.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomPronunciationParams.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomPronunciationParams.Builder>
      Throws:
      IOException
    • getPhrase

      public 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.
       
      string phrase = 1;
      Specified by:
      getPhrase in interface CustomPronunciationParamsOrBuilder
      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:
      getPhraseBytes in interface CustomPronunciationParamsOrBuilder
      Returns:
      The bytes for phrase.
    • setPhrase

      public CustomPronunciationParams.Builder setPhrase(String value)
       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

      public CustomPronunciationParams.Builder 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

      public CustomPronunciationParams.Builder setPhraseBytes(com.google.protobuf.ByteString value)
       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:
      getPhoneticEncodingValue in interface CustomPronunciationParamsOrBuilder
      Returns:
      The enum numeric value on the wire for phoneticEncoding.
    • setPhoneticEncodingValue

      public CustomPronunciationParams.Builder setPhoneticEncodingValue(int value)
       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

      public CustomPronunciationParams.PhoneticEncoding getPhoneticEncoding()
       The phonetic encoding of the phrase.
       
      .google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;
      Specified by:
      getPhoneticEncoding in interface CustomPronunciationParamsOrBuilder
      Returns:
      The phoneticEncoding.
    • setPhoneticEncoding

       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

      public CustomPronunciationParams.Builder clearPhoneticEncoding()
       The phonetic encoding of the phrase.
       
      .google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;
      Returns:
      This builder for chaining.
    • getPronunciation

      public String getPronunciation()
       The pronunciation of the phrase. This must be in the phonetic encoding
       specified above.
       
      string pronunciation = 3;
      Specified by:
      getPronunciation in interface CustomPronunciationParamsOrBuilder
      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:
      getPronunciationBytes in interface CustomPronunciationParamsOrBuilder
      Returns:
      The bytes for pronunciation.
    • setPronunciation

      public CustomPronunciationParams.Builder setPronunciation(String value)
       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

      public CustomPronunciationParams.Builder 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.