Class Intent.Message.TelephonyPlayAudio.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.TelephonyPlayAudio.Builder>
      • 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

        public Intent.Message.TelephonyPlayAudio.Builder setAudioUri​(String 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 audioUri to set.
        Returns:
        This builder for chaining.
      • clearAudioUri

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