Class Intent.Message.TelephonyPlayAudio.Builder

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

public static final class Intent.Message.TelephonyPlayAudio.Builder extends com.google.protobuf.GeneratedMessage.Builder<Intent.Message.TelephonyPlayAudio.Builder> implements Intent.Message.TelephonyPlayAudioOrBuilder
 Plays audio from a file in Telephony Gateway.
 
Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
  • 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<Intent.Message.TelephonyPlayAudio.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<Intent.Message.TelephonyPlayAudio.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<Intent.Message.TelephonyPlayAudio.Builder>
    • getDefaultInstanceForType

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

      public Intent.Message.TelephonyPlayAudio.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<Intent.Message.TelephonyPlayAudio.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<Intent.Message.TelephonyPlayAudio.Builder>
    • mergeFrom

      public Intent.Message.TelephonyPlayAudio.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<Intent.Message.TelephonyPlayAudio.Builder>
      Throws:
      IOException
    • getAudioUri

      public String getAudioUri()
       Required. URI to a Google Cloud Storage object containing the audio to
       play, e.g., "gs://bucket/object". The object must contain a single
       channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
      
       This object must be readable by the `service-<Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
       where <Project Number> is the number of the Telephony Gateway project
       (usually the same as the Dialogflow agent project). If the Google Cloud
       Storage bucket is in the Telephony Gateway project, this permission is
       added by default when enabling the Dialogflow V2 API.
      
       For audio from other sources, consider using the
       `TelephonySynthesizeSpeech` message with SSML.
       
      string audio_uri = 1;
      Specified by:
      getAudioUri in interface Intent.Message.TelephonyPlayAudioOrBuilder
      Returns:
      The audioUri.
    • getAudioUriBytes

      public com.google.protobuf.ByteString getAudioUriBytes()
       Required. URI to a Google Cloud Storage object containing the audio to
       play, e.g., "gs://bucket/object". The object must contain a single
       channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
      
       This object must be readable by the `service-<Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
       where <Project Number> is the number of the Telephony Gateway project
       (usually the same as the Dialogflow agent project). If the Google Cloud
       Storage bucket is in the Telephony Gateway project, this permission is
       added by default when enabling the Dialogflow V2 API.
      
       For audio from other sources, consider using the
       `TelephonySynthesizeSpeech` message with SSML.
       
      string audio_uri = 1;
      Specified by:
      getAudioUriBytes in interface Intent.Message.TelephonyPlayAudioOrBuilder
      Returns:
      The bytes for audioUri.
    • setAudioUri

       Required. URI to a Google Cloud Storage object containing the audio to
       play, e.g., "gs://bucket/object". The object must contain a single
       channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
      
       This object must be readable by the `service-<Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
       where <Project Number> is the number of the Telephony Gateway project
       (usually the same as the Dialogflow agent project). If the Google Cloud
       Storage bucket is in the Telephony Gateway project, this permission is
       added by default when enabling the Dialogflow V2 API.
      
       For audio from other sources, consider using the
       `TelephonySynthesizeSpeech` message with SSML.
       
      string audio_uri = 1;
      Parameters:
      value - The audioUri to set.
      Returns:
      This builder for chaining.
    • clearAudioUri

       Required. URI to a Google Cloud Storage object containing the audio to
       play, e.g., "gs://bucket/object". The object must contain a single
       channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
      
       This object must be readable by the `service-<Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
       where <Project Number> is the number of the Telephony Gateway project
       (usually the same as the Dialogflow agent project). If the Google Cloud
       Storage bucket is in the Telephony Gateway project, this permission is
       added by default when enabling the Dialogflow V2 API.
      
       For audio from other sources, consider using the
       `TelephonySynthesizeSpeech` message with SSML.
       
      string audio_uri = 1;
      Returns:
      This builder for chaining.
    • setAudioUriBytes

      public Intent.Message.TelephonyPlayAudio.Builder setAudioUriBytes(com.google.protobuf.ByteString value)
       Required. URI to a Google Cloud Storage object containing the audio to
       play, e.g., "gs://bucket/object". The object must contain a single
       channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
      
       This object must be readable by the `service-<Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
       where <Project Number> is the number of the Telephony Gateway project
       (usually the same as the Dialogflow agent project). If the Google Cloud
       Storage bucket is in the Telephony Gateway project, this permission is
       added by default when enabling the Dialogflow V2 API.
      
       For audio from other sources, consider using the
       `TelephonySynthesizeSpeech` message with SSML.
       
      string audio_uri = 1;
      Parameters:
      value - The bytes for audioUri to set.
      Returns:
      This builder for chaining.