Class ResponseMessage.PlayAudio.Builder

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

public static final class ResponseMessage.PlayAudio.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResponseMessage.PlayAudio.Builder> implements ResponseMessage.PlayAudioOrBuilder
 Specifies an audio clip to be played by the client as part of the response.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio
  • 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.PlayAudio.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.PlayAudio.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.PlayAudio.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getAudioUri()
       Required. URI of the audio clip. Dialogflow does not impose any
       validation on this value. It is specific to the client that reads it.
       
      string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudioUri in interface ResponseMessage.PlayAudioOrBuilder
      Returns:
      The audioUri.
    • getAudioUriBytes

      public com.google.protobuf.ByteString getAudioUriBytes()
       Required. URI of the audio clip. Dialogflow does not impose any
       validation on this value. It is specific to the client that reads it.
       
      string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudioUriBytes in interface ResponseMessage.PlayAudioOrBuilder
      Returns:
      The bytes for audioUri.
    • setAudioUri

      public ResponseMessage.PlayAudio.Builder setAudioUri(String value)
       Required. URI of the audio clip. Dialogflow does not impose any
       validation on this value. It is specific to the client that reads it.
       
      string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The audioUri to set.
      Returns:
      This builder for chaining.
    • clearAudioUri

      public ResponseMessage.PlayAudio.Builder clearAudioUri()
       Required. URI of the audio clip. Dialogflow does not impose any
       validation on this value. It is specific to the client that reads it.
       
      string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAudioUriBytes

      public ResponseMessage.PlayAudio.Builder setAudioUriBytes(com.google.protobuf.ByteString value)
       Required. URI of the audio clip. Dialogflow does not impose any
       validation on this value. It is specific to the client that reads it.
       
      string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for audioUri 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 = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAllowPlaybackInterruption in interface ResponseMessage.PlayAudioOrBuilder
      Returns:
      The allowPlaybackInterruption.
    • setAllowPlaybackInterruption

      public ResponseMessage.PlayAudio.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 = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The allowPlaybackInterruption to set.
      Returns:
      This builder for chaining.
    • clearAllowPlaybackInterruption

      public ResponseMessage.PlayAudio.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 = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.