Class ResponseMessage.MixedAudio.Segment.Builder

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

public static final class ResponseMessage.MixedAudio.Segment.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResponseMessage.MixedAudio.Segment.Builder> implements ResponseMessage.MixedAudio.SegmentOrBuilder
 Represents one segment of audio.
 
Protobuf type google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment
  • 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.MixedAudio.Segment.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.MixedAudio.Segment.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.MixedAudio.Segment.Builder>
    • getDefaultInstanceForType

      public ResponseMessage.MixedAudio.Segment 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.MixedAudio.Segment buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ResponseMessage.MixedAudio.Segment.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.MixedAudio.Segment.Builder>
      Throws:
      IOException
    • getContentCase

      Specified by:
      getContentCase in interface ResponseMessage.MixedAudio.SegmentOrBuilder
    • clearContent

    • hasAudio

      public boolean hasAudio()
       Raw audio synthesized from the Dialogflow agent's response using
       the output config specified in the request.
       
      bytes audio = 1;
      Specified by:
      hasAudio in interface ResponseMessage.MixedAudio.SegmentOrBuilder
      Returns:
      Whether the audio field is set.
    • getAudio

      public com.google.protobuf.ByteString getAudio()
       Raw audio synthesized from the Dialogflow agent's response using
       the output config specified in the request.
       
      bytes audio = 1;
      Specified by:
      getAudio in interface ResponseMessage.MixedAudio.SegmentOrBuilder
      Returns:
      The audio.
    • setAudio

      public ResponseMessage.MixedAudio.Segment.Builder setAudio(com.google.protobuf.ByteString value)
       Raw audio synthesized from the Dialogflow agent's response using
       the output config specified in the request.
       
      bytes audio = 1;
      Parameters:
      value - The audio to set.
      Returns:
      This builder for chaining.
    • clearAudio

       Raw audio synthesized from the Dialogflow agent's response using
       the output config specified in the request.
       
      bytes audio = 1;
      Returns:
      This builder for chaining.
    • hasUri

      public boolean hasUri()
       Client-specific URI that points to an audio clip accessible to the
       client.
       
      string uri = 2;
      Specified by:
      hasUri in interface ResponseMessage.MixedAudio.SegmentOrBuilder
      Returns:
      Whether the uri field is set.
    • getUri

      public String getUri()
       Client-specific URI that points to an audio clip accessible to the
       client.
       
      string uri = 2;
      Specified by:
      getUri in interface ResponseMessage.MixedAudio.SegmentOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Client-specific URI that points to an audio clip accessible to the
       client.
       
      string uri = 2;
      Specified by:
      getUriBytes in interface ResponseMessage.MixedAudio.SegmentOrBuilder
      Returns:
      The bytes for uri.
    • setUri

       Client-specific URI that points to an audio clip accessible to the
       client.
       
      string uri = 2;
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

       Client-specific URI that points to an audio clip accessible to the
       client.
       
      string uri = 2;
      Returns:
      This builder for chaining.
    • setUriBytes

      public ResponseMessage.MixedAudio.Segment.Builder setUriBytes(com.google.protobuf.ByteString value)
       Client-specific URI that points to an audio clip accessible to the
       client.
       
      string uri = 2;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getAllowPlaybackInterruption

      public boolean getAllowPlaybackInterruption()
       Whether the playback of this segment can be interrupted by the end
       user's speech and the client should then start the next Dialogflow
       request.
       
      bool allow_playback_interruption = 3;
      Specified by:
      getAllowPlaybackInterruption in interface ResponseMessage.MixedAudio.SegmentOrBuilder
      Returns:
      The allowPlaybackInterruption.
    • setAllowPlaybackInterruption

      public ResponseMessage.MixedAudio.Segment.Builder setAllowPlaybackInterruption(boolean value)
       Whether the playback of this segment can be interrupted by the end
       user's speech and the client should then start the next Dialogflow
       request.
       
      bool allow_playback_interruption = 3;
      Parameters:
      value - The allowPlaybackInterruption to set.
      Returns:
      This builder for chaining.
    • clearAllowPlaybackInterruption

      public ResponseMessage.MixedAudio.Segment.Builder clearAllowPlaybackInterruption()
       Whether the playback of this segment can be interrupted by the end
       user's speech and the client should then start the next Dialogflow
       request.
       
      bool allow_playback_interruption = 3;
      Returns:
      This builder for chaining.