Class OutputAudio.Builder

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

public static final class OutputAudio.Builder extends com.google.protobuf.GeneratedMessage.Builder<OutputAudio.Builder> implements OutputAudioOrBuilder
 Represents the natural language speech audio to be played to the end user.
 
Protobuf type google.cloud.dialogflow.v2beta1.OutputAudio
  • 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<OutputAudio.Builder>
    • clear

      public OutputAudio.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<OutputAudio.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<OutputAudio.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public OutputAudio.Builder mergeFrom(OutputAudio other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OutputAudio.Builder>
    • mergeFrom

      public OutputAudio.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<OutputAudio.Builder>
      Throws:
      IOException
    • hasConfig

      public boolean hasConfig()
       Required. Instructs the speech synthesizer how to generate the speech
       audio.
       
      .google.cloud.dialogflow.v2beta1.OutputAudioConfig config = 1;
      Specified by:
      hasConfig in interface OutputAudioOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public OutputAudioConfig getConfig()
       Required. Instructs the speech synthesizer how to generate the speech
       audio.
       
      .google.cloud.dialogflow.v2beta1.OutputAudioConfig config = 1;
      Specified by:
      getConfig in interface OutputAudioOrBuilder
      Returns:
      The config.
    • setConfig

      public OutputAudio.Builder setConfig(OutputAudioConfig value)
       Required. Instructs the speech synthesizer how to generate the speech
       audio.
       
      .google.cloud.dialogflow.v2beta1.OutputAudioConfig config = 1;
    • setConfig

      public OutputAudio.Builder setConfig(OutputAudioConfig.Builder builderForValue)
       Required. Instructs the speech synthesizer how to generate the speech
       audio.
       
      .google.cloud.dialogflow.v2beta1.OutputAudioConfig config = 1;
    • mergeConfig

      public OutputAudio.Builder mergeConfig(OutputAudioConfig value)
       Required. Instructs the speech synthesizer how to generate the speech
       audio.
       
      .google.cloud.dialogflow.v2beta1.OutputAudioConfig config = 1;
    • clearConfig

      public OutputAudio.Builder clearConfig()
       Required. Instructs the speech synthesizer how to generate the speech
       audio.
       
      .google.cloud.dialogflow.v2beta1.OutputAudioConfig config = 1;
    • getConfigBuilder

      public OutputAudioConfig.Builder getConfigBuilder()
       Required. Instructs the speech synthesizer how to generate the speech
       audio.
       
      .google.cloud.dialogflow.v2beta1.OutputAudioConfig config = 1;
    • getConfigOrBuilder

      public OutputAudioConfigOrBuilder getConfigOrBuilder()
       Required. Instructs the speech synthesizer how to generate the speech
       audio.
       
      .google.cloud.dialogflow.v2beta1.OutputAudioConfig config = 1;
      Specified by:
      getConfigOrBuilder in interface OutputAudioOrBuilder
    • getAudio

      public com.google.protobuf.ByteString getAudio()
       Required. The natural language speech audio.
       
      bytes audio = 2;
      Specified by:
      getAudio in interface OutputAudioOrBuilder
      Returns:
      The audio.
    • setAudio

      public OutputAudio.Builder setAudio(com.google.protobuf.ByteString value)
       Required. The natural language speech audio.
       
      bytes audio = 2;
      Parameters:
      value - The audio to set.
      Returns:
      This builder for chaining.
    • clearAudio

      public OutputAudio.Builder clearAudio()
       Required. The natural language speech audio.
       
      bytes audio = 2;
      Returns:
      This builder for chaining.