Class SecuritySettings.AudioExportSettings.Builder

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

public static final class SecuritySettings.AudioExportSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecuritySettings.AudioExportSettings.Builder> implements SecuritySettings.AudioExportSettingsOrBuilder
 Settings for exporting audio.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings
  • 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<SecuritySettings.AudioExportSettings.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<SecuritySettings.AudioExportSettings.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<SecuritySettings.AudioExportSettings.Builder>
    • getDefaultInstanceForType

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

      public SecuritySettings.AudioExportSettings.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<SecuritySettings.AudioExportSettings.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<SecuritySettings.AudioExportSettings.Builder>
    • mergeFrom

      public SecuritySettings.AudioExportSettings.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<SecuritySettings.AudioExportSettings.Builder>
      Throws:
      IOException
    • getGcsBucket

      public String getGcsBucket()
       Cloud Storage bucket to export audio record to.
       Setting this field would grant the Storage Object Creator role to
       the Dialogflow Service Agent.
       API caller that tries to modify this field should have the permission of
       storage.buckets.setIamPolicy.
       
      string gcs_bucket = 1;
      Specified by:
      getGcsBucket in interface SecuritySettings.AudioExportSettingsOrBuilder
      Returns:
      The gcsBucket.
    • getGcsBucketBytes

      public com.google.protobuf.ByteString getGcsBucketBytes()
       Cloud Storage bucket to export audio record to.
       Setting this field would grant the Storage Object Creator role to
       the Dialogflow Service Agent.
       API caller that tries to modify this field should have the permission of
       storage.buckets.setIamPolicy.
       
      string gcs_bucket = 1;
      Specified by:
      getGcsBucketBytes in interface SecuritySettings.AudioExportSettingsOrBuilder
      Returns:
      The bytes for gcsBucket.
    • setGcsBucket

       Cloud Storage bucket to export audio record to.
       Setting this field would grant the Storage Object Creator role to
       the Dialogflow Service Agent.
       API caller that tries to modify this field should have the permission of
       storage.buckets.setIamPolicy.
       
      string gcs_bucket = 1;
      Parameters:
      value - The gcsBucket to set.
      Returns:
      This builder for chaining.
    • clearGcsBucket

       Cloud Storage bucket to export audio record to.
       Setting this field would grant the Storage Object Creator role to
       the Dialogflow Service Agent.
       API caller that tries to modify this field should have the permission of
       storage.buckets.setIamPolicy.
       
      string gcs_bucket = 1;
      Returns:
      This builder for chaining.
    • setGcsBucketBytes

      public SecuritySettings.AudioExportSettings.Builder setGcsBucketBytes(com.google.protobuf.ByteString value)
       Cloud Storage bucket to export audio record to.
       Setting this field would grant the Storage Object Creator role to
       the Dialogflow Service Agent.
       API caller that tries to modify this field should have the permission of
       storage.buckets.setIamPolicy.
       
      string gcs_bucket = 1;
      Parameters:
      value - The bytes for gcsBucket to set.
      Returns:
      This builder for chaining.
    • getAudioExportPattern

      public String getAudioExportPattern()
       Filename pattern for exported audio.
       {conversation} and {timestamp} are placeholders that will be replaced
       with the conversation ID and epoch micros of the conversation.
       For example, "{conversation}/recording_{timestamp}.mulaw".
       
      string audio_export_pattern = 2;
      Specified by:
      getAudioExportPattern in interface SecuritySettings.AudioExportSettingsOrBuilder
      Returns:
      The audioExportPattern.
    • getAudioExportPatternBytes

      public com.google.protobuf.ByteString getAudioExportPatternBytes()
       Filename pattern for exported audio.
       {conversation} and {timestamp} are placeholders that will be replaced
       with the conversation ID and epoch micros of the conversation.
       For example, "{conversation}/recording_{timestamp}.mulaw".
       
      string audio_export_pattern = 2;
      Specified by:
      getAudioExportPatternBytes in interface SecuritySettings.AudioExportSettingsOrBuilder
      Returns:
      The bytes for audioExportPattern.
    • setAudioExportPattern

      public SecuritySettings.AudioExportSettings.Builder setAudioExportPattern(String value)
       Filename pattern for exported audio.
       {conversation} and {timestamp} are placeholders that will be replaced
       with the conversation ID and epoch micros of the conversation.
       For example, "{conversation}/recording_{timestamp}.mulaw".
       
      string audio_export_pattern = 2;
      Parameters:
      value - The audioExportPattern to set.
      Returns:
      This builder for chaining.
    • clearAudioExportPattern

      public SecuritySettings.AudioExportSettings.Builder clearAudioExportPattern()
       Filename pattern for exported audio.
       {conversation} and {timestamp} are placeholders that will be replaced
       with the conversation ID and epoch micros of the conversation.
       For example, "{conversation}/recording_{timestamp}.mulaw".
       
      string audio_export_pattern = 2;
      Returns:
      This builder for chaining.
    • setAudioExportPatternBytes

      public SecuritySettings.AudioExportSettings.Builder setAudioExportPatternBytes(com.google.protobuf.ByteString value)
       Filename pattern for exported audio.
       {conversation} and {timestamp} are placeholders that will be replaced
       with the conversation ID and epoch micros of the conversation.
       For example, "{conversation}/recording_{timestamp}.mulaw".
       
      string audio_export_pattern = 2;
      Parameters:
      value - The bytes for audioExportPattern to set.
      Returns:
      This builder for chaining.
    • getEnableAudioRedaction

      public boolean getEnableAudioRedaction()
       Enable audio redaction if it is true.
       Note that this only redacts end-user audio data;
       Synthesised audio from the virtual agent is not redacted.
       
      bool enable_audio_redaction = 3;
      Specified by:
      getEnableAudioRedaction in interface SecuritySettings.AudioExportSettingsOrBuilder
      Returns:
      The enableAudioRedaction.
    • setEnableAudioRedaction

      public SecuritySettings.AudioExportSettings.Builder setEnableAudioRedaction(boolean value)
       Enable audio redaction if it is true.
       Note that this only redacts end-user audio data;
       Synthesised audio from the virtual agent is not redacted.
       
      bool enable_audio_redaction = 3;
      Parameters:
      value - The enableAudioRedaction to set.
      Returns:
      This builder for chaining.
    • clearEnableAudioRedaction

      public SecuritySettings.AudioExportSettings.Builder clearEnableAudioRedaction()
       Enable audio redaction if it is true.
       Note that this only redacts end-user audio data;
       Synthesised audio from the virtual agent is not redacted.
       
      bool enable_audio_redaction = 3;
      Returns:
      This builder for chaining.
    • getAudioFormatValue

      public int getAudioFormatValue()
       File format for exported audio file. Currently only in telephony
       recordings.
       
      .google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat audio_format = 4;
      Specified by:
      getAudioFormatValue in interface SecuritySettings.AudioExportSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for audioFormat.
    • setAudioFormatValue

      public SecuritySettings.AudioExportSettings.Builder setAudioFormatValue(int value)
       File format for exported audio file. Currently only in telephony
       recordings.
       
      .google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat audio_format = 4;
      Parameters:
      value - The enum numeric value on the wire for audioFormat to set.
      Returns:
      This builder for chaining.
    • getAudioFormat

       File format for exported audio file. Currently only in telephony
       recordings.
       
      .google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat audio_format = 4;
      Specified by:
      getAudioFormat in interface SecuritySettings.AudioExportSettingsOrBuilder
      Returns:
      The audioFormat.
    • setAudioFormat

       File format for exported audio file. Currently only in telephony
       recordings.
       
      .google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat audio_format = 4;
      Parameters:
      value - The audioFormat to set.
      Returns:
      This builder for chaining.
    • clearAudioFormat

       File format for exported audio file. Currently only in telephony
       recordings.
       
      .google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat audio_format = 4;
      Returns:
      This builder for chaining.
    • getStoreTtsAudio

      public boolean getStoreTtsAudio()
       Whether to store TTS audio. By default, TTS audio from the virtual agent
       is not exported.
       
      bool store_tts_audio = 6;
      Specified by:
      getStoreTtsAudio in interface SecuritySettings.AudioExportSettingsOrBuilder
      Returns:
      The storeTtsAudio.
    • setStoreTtsAudio

      public SecuritySettings.AudioExportSettings.Builder setStoreTtsAudio(boolean value)
       Whether to store TTS audio. By default, TTS audio from the virtual agent
       is not exported.
       
      bool store_tts_audio = 6;
      Parameters:
      value - The storeTtsAudio to set.
      Returns:
      This builder for chaining.
    • clearStoreTtsAudio

      public SecuritySettings.AudioExportSettings.Builder clearStoreTtsAudio()
       Whether to store TTS audio. By default, TTS audio from the virtual agent
       is not exported.
       
      bool store_tts_audio = 6;
      Returns:
      This builder for chaining.