Class ResponseMessage.OutputAudioText.Builder

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

public static final class ResponseMessage.OutputAudioText.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResponseMessage.OutputAudioText.Builder> implements ResponseMessage.OutputAudioTextOrBuilder
 A text or ssml response that is preferentially used for TTS output audio
 synthesis, as described in the comment on the ResponseMessage message.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText
  • 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<ResponseMessage.OutputAudioText.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<ResponseMessage.OutputAudioText.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<ResponseMessage.OutputAudioText.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ResponseMessage.OutputAudioText.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<ResponseMessage.OutputAudioText.Builder>
      Throws:
      IOException
    • getSourceCase

      Specified by:
      getSourceCase in interface ResponseMessage.OutputAudioTextOrBuilder
    • clearSource

    • hasText

      public boolean hasText()
       The raw text to be synthesized.
       
      string text = 1;
      Specified by:
      hasText in interface ResponseMessage.OutputAudioTextOrBuilder
      Returns:
      Whether the text field is set.
    • getText

      public String getText()
       The raw text to be synthesized.
       
      string text = 1;
      Specified by:
      getText in interface ResponseMessage.OutputAudioTextOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       The raw text to be synthesized.
       
      string text = 1;
      Specified by:
      getTextBytes in interface ResponseMessage.OutputAudioTextOrBuilder
      Returns:
      The bytes for text.
    • setText

       The raw text to be synthesized.
       
      string text = 1;
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

       The raw text to be synthesized.
       
      string text = 1;
      Returns:
      This builder for chaining.
    • setTextBytes

      public ResponseMessage.OutputAudioText.Builder setTextBytes(com.google.protobuf.ByteString value)
       The raw text to be synthesized.
       
      string text = 1;
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.
    • hasSsml

      public boolean hasSsml()
       The SSML text to be synthesized. For more information, see
       [SSML](/speech/text-to-speech/docs/ssml).
       
      string ssml = 2;
      Specified by:
      hasSsml in interface ResponseMessage.OutputAudioTextOrBuilder
      Returns:
      Whether the ssml field is set.
    • getSsml

      public String getSsml()
       The SSML text to be synthesized. For more information, see
       [SSML](/speech/text-to-speech/docs/ssml).
       
      string ssml = 2;
      Specified by:
      getSsml in interface ResponseMessage.OutputAudioTextOrBuilder
      Returns:
      The ssml.
    • getSsmlBytes

      public com.google.protobuf.ByteString getSsmlBytes()
       The SSML text to be synthesized. For more information, see
       [SSML](/speech/text-to-speech/docs/ssml).
       
      string ssml = 2;
      Specified by:
      getSsmlBytes in interface ResponseMessage.OutputAudioTextOrBuilder
      Returns:
      The bytes for ssml.
    • setSsml

       The SSML text to be synthesized. For more information, see
       [SSML](/speech/text-to-speech/docs/ssml).
       
      string ssml = 2;
      Parameters:
      value - The ssml to set.
      Returns:
      This builder for chaining.
    • clearSsml

       The SSML text to be synthesized. For more information, see
       [SSML](/speech/text-to-speech/docs/ssml).
       
      string ssml = 2;
      Returns:
      This builder for chaining.
    • setSsmlBytes

      public ResponseMessage.OutputAudioText.Builder setSsmlBytes(com.google.protobuf.ByteString value)
       The SSML text to be synthesized. For more information, see
       [SSML](/speech/text-to-speech/docs/ssml).
       
      string ssml = 2;
      Parameters:
      value - The bytes for ssml to set.
      Returns:
      This builder for chaining.
    • getAllowPlaybackInterruption

      public boolean getAllowPlaybackInterruption()
       Output only. Whether the playback of this message can be interrupted by
       the end user's speech and the client can then starts the next Dialogflow
       request.
       
      bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAllowPlaybackInterruption in interface ResponseMessage.OutputAudioTextOrBuilder
      Returns:
      The allowPlaybackInterruption.
    • setAllowPlaybackInterruption

      public ResponseMessage.OutputAudioText.Builder setAllowPlaybackInterruption(boolean value)
       Output only. Whether the playback of this message can be interrupted by
       the end user's speech and the client can then starts the next Dialogflow
       request.
       
      bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The allowPlaybackInterruption to set.
      Returns:
      This builder for chaining.
    • clearAllowPlaybackInterruption

      public ResponseMessage.OutputAudioText.Builder clearAllowPlaybackInterruption()
       Output only. Whether the playback of this message can be interrupted by
       the end user's speech and the client can then starts the next Dialogflow
       request.
       
      bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.