Class TextToSpeechSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextToSpeechSettings.Builder>
com.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.Builder
All Implemented Interfaces:
TextToSpeechSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TextToSpeechSettings

public static final class TextToSpeechSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<TextToSpeechSettings.Builder> implements TextToSpeechSettingsOrBuilder
 Settings related to speech synthesizing.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TextToSpeechSettings.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TextToSpeechSettings.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TextToSpeechSettings.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<TextToSpeechSettings.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<TextToSpeechSettings.Builder>
    • getDefaultInstanceForType

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

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

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

      public TextToSpeechSettings.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<TextToSpeechSettings.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<TextToSpeechSettings.Builder>
    • mergeFrom

      public TextToSpeechSettings.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<TextToSpeechSettings.Builder>
      Throws:
      IOException
    • getSynthesizeSpeechConfigsCount

      public int getSynthesizeSpeechConfigsCount()
      Description copied from interface: TextToSpeechSettingsOrBuilder
       Configuration of how speech should be synthesized, mapping from language
       (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
       SynthesizeSpeechConfig.
      
       These settings affect:
      
       - The [phone
       gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
       synthesize configuration set via
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings].
      
       - How speech is synthesized when invoking
       [session][google.cloud.dialogflow.cx.v3beta1.Sessions] APIs.
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
       only applies if
       [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config]
       is not specified.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 1;
      Specified by:
      getSynthesizeSpeechConfigsCount in interface TextToSpeechSettingsOrBuilder
    • containsSynthesizeSpeechConfigs

      public boolean containsSynthesizeSpeechConfigs(String key)
       Configuration of how speech should be synthesized, mapping from language
       (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
       SynthesizeSpeechConfig.
      
       These settings affect:
      
       - The [phone
       gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
       synthesize configuration set via
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings].
      
       - How speech is synthesized when invoking
       [session][google.cloud.dialogflow.cx.v3beta1.Sessions] APIs.
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
       only applies if
       [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config]
       is not specified.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 1;
      Specified by:
      containsSynthesizeSpeechConfigs in interface TextToSpeechSettingsOrBuilder
    • getSynthesizeSpeechConfigs

      @Deprecated public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigs()
      Deprecated.
      Specified by:
      getSynthesizeSpeechConfigs in interface TextToSpeechSettingsOrBuilder
    • getSynthesizeSpeechConfigsMap

      public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigsMap()
       Configuration of how speech should be synthesized, mapping from language
       (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
       SynthesizeSpeechConfig.
      
       These settings affect:
      
       - The [phone
       gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
       synthesize configuration set via
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings].
      
       - How speech is synthesized when invoking
       [session][google.cloud.dialogflow.cx.v3beta1.Sessions] APIs.
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
       only applies if
       [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config]
       is not specified.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 1;
      Specified by:
      getSynthesizeSpeechConfigsMap in interface TextToSpeechSettingsOrBuilder
    • getSynthesizeSpeechConfigsOrDefault

      public SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrDefault(String key, SynthesizeSpeechConfig defaultValue)
       Configuration of how speech should be synthesized, mapping from language
       (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
       SynthesizeSpeechConfig.
      
       These settings affect:
      
       - The [phone
       gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
       synthesize configuration set via
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings].
      
       - How speech is synthesized when invoking
       [session][google.cloud.dialogflow.cx.v3beta1.Sessions] APIs.
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
       only applies if
       [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config]
       is not specified.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 1;
      Specified by:
      getSynthesizeSpeechConfigsOrDefault in interface TextToSpeechSettingsOrBuilder
    • getSynthesizeSpeechConfigsOrThrow

      public SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrThrow(String key)
       Configuration of how speech should be synthesized, mapping from language
       (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
       SynthesizeSpeechConfig.
      
       These settings affect:
      
       - The [phone
       gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
       synthesize configuration set via
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings].
      
       - How speech is synthesized when invoking
       [session][google.cloud.dialogflow.cx.v3beta1.Sessions] APIs.
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
       only applies if
       [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config]
       is not specified.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 1;
      Specified by:
      getSynthesizeSpeechConfigsOrThrow in interface TextToSpeechSettingsOrBuilder
    • clearSynthesizeSpeechConfigs

      public TextToSpeechSettings.Builder clearSynthesizeSpeechConfigs()
    • removeSynthesizeSpeechConfigs

      public TextToSpeechSettings.Builder removeSynthesizeSpeechConfigs(String key)
       Configuration of how speech should be synthesized, mapping from language
       (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
       SynthesizeSpeechConfig.
      
       These settings affect:
      
       - The [phone
       gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
       synthesize configuration set via
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings].
      
       - How speech is synthesized when invoking
       [session][google.cloud.dialogflow.cx.v3beta1.Sessions] APIs.
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
       only applies if
       [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config]
       is not specified.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 1;
    • getMutableSynthesizeSpeechConfigs

      @Deprecated public Map<String,SynthesizeSpeechConfig> getMutableSynthesizeSpeechConfigs()
      Deprecated.
      Use alternate mutation accessors instead.
    • putSynthesizeSpeechConfigs

      public TextToSpeechSettings.Builder putSynthesizeSpeechConfigs(String key, SynthesizeSpeechConfig value)
       Configuration of how speech should be synthesized, mapping from language
       (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
       SynthesizeSpeechConfig.
      
       These settings affect:
      
       - The [phone
       gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
       synthesize configuration set via
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings].
      
       - How speech is synthesized when invoking
       [session][google.cloud.dialogflow.cx.v3beta1.Sessions] APIs.
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
       only applies if
       [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config]
       is not specified.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 1;
    • putAllSynthesizeSpeechConfigs

      public TextToSpeechSettings.Builder putAllSynthesizeSpeechConfigs(Map<String,SynthesizeSpeechConfig> values)
       Configuration of how speech should be synthesized, mapping from language
       (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
       SynthesizeSpeechConfig.
      
       These settings affect:
      
       - The [phone
       gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
       synthesize configuration set via
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings].
      
       - How speech is synthesized when invoking
       [session][google.cloud.dialogflow.cx.v3beta1.Sessions] APIs.
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
       only applies if
       [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config]
       is not specified.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 1;
    • putSynthesizeSpeechConfigsBuilderIfAbsent

      public SynthesizeSpeechConfig.Builder putSynthesizeSpeechConfigsBuilderIfAbsent(String key)
       Configuration of how speech should be synthesized, mapping from language
       (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
       SynthesizeSpeechConfig.
      
       These settings affect:
      
       - The [phone
       gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
       synthesize configuration set via
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings].
      
       - How speech is synthesized when invoking
       [session][google.cloud.dialogflow.cx.v3beta1.Sessions] APIs.
       [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
       only applies if
       [OutputAudioConfig.synthesize_speech_config][google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesize_speech_config]
       is not specified.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 1;