Class AudioInput.Builder (0.59.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.59.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  AudioInput . Builder   extends   GeneratedMessageV3 . Builder<AudioInput . Builder >  implements   AudioInputOrBuilder  
   Represents the natural speech audio to be processed.
 Protobuf type google.cloud.dialogflow.cx.v3beta1.AudioInput
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  
    
public   AudioInput . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   AudioInput   build ()  
  
  
    
public   AudioInput   buildPartial ()  
  
  
    
public   AudioInput . Builder   clear ()  
  
  Overrides 
  
  
    
public   AudioInput . Builder   clearAudio ()  
   The natural language speech audio to be processed.
 A single request can contain up to 2 minutes of speech audio data.
 The transcribed
 text  cannot
 contain more than 256 bytes.
 For non-streaming audio detect intent, both config and audio must be
 provided.
 For streaming audio detect intent, config must be provided in
 the first request and audio must be provided in all following requests.
 bytes audio = 2;
    
public   AudioInput . Builder   clearConfig ()  
   Required. Instructs the speech recognizer how to process the speech audio.
 
 .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
public   AudioInput . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  
    
public   AudioInput . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  
    
public   AudioInput . Builder   clone ()  
  
  Overrides 
  
  
    
public   ByteString   getAudio ()  
   The natural language speech audio to be processed.
 A single request can contain up to 2 minutes of speech audio data.
 The transcribed
 text  cannot
 contain more than 256 bytes.
 For non-streaming audio detect intent, both config and audio must be
 provided.
 For streaming audio detect intent, config must be provided in
 the first request and audio must be provided in all following requests.
 bytes audio = 2;
    
public   InputAudioConfig   getConfig ()  
   Required. Instructs the speech recognizer how to process the speech audio.
 
 .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
public   InputAudioConfig . Builder   getConfigBuilder ()  
   Required. Instructs the speech recognizer how to process the speech audio.
 
 .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
public   InputAudioConfigOrBuilder   getConfigOrBuilder ()  
   Required. Instructs the speech recognizer how to process the speech audio.
 
 .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
public   AudioInput   getDefaultInstanceForType ()  
  
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  
    
public   boolean   hasConfig ()  
   Required. Instructs the speech recognizer how to process the speech audio.
 
 .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the config field is set.
 
     
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   AudioInput . Builder   mergeConfig ( InputAudioConfig   value )  
   Required. Instructs the speech recognizer how to process the speech audio.
 
 .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
public   AudioInput . Builder   mergeFrom ( AudioInput   other )  
  
  
  
    
public   AudioInput . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  
    
public   AudioInput . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  
    
public   final   AudioInput . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  
    
public   AudioInput . Builder   setAudio ( ByteString   value )  
   The natural language speech audio to be processed.
 A single request can contain up to 2 minutes of speech audio data.
 The transcribed
 text  cannot
 contain more than 256 bytes.
 For non-streaming audio detect intent, both config and audio must be
 provided.
 For streaming audio detect intent, config must be provided in
 the first request and audio must be provided in all following requests.
 bytes audio = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The audio to set.
 
     
  
  
  
    
public   AudioInput . Builder   setConfig ( InputAudioConfig   value )  
   Required. Instructs the speech recognizer how to process the speech audio.
 
 .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
public   AudioInput . Builder   setConfig ( InputAudioConfig . Builder   builderForValue )  
   Required. Instructs the speech recognizer how to process the speech audio.
 
 .google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
public   AudioInput . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   AudioInput . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  
    
public   final   AudioInput . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]