Send feedback
  
   
 
  
    
      Class QueryInput (0.89.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  QueryInput   extends   GeneratedMessageV3   implements   QueryInputOrBuilder  
   Represents the query input. It can contain one of:
A conversational query in the form of text.
An intent query that specifies which intent to trigger.
Natural language speech audio to be processed.
An event to be triggered.
DTMF digits to invoke an intent and fill in parameter value.
The results of a tool executed by the client.
 
 Protobuf type google.cloud.dialogflow.cx.v3.QueryInput
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   AUDIO_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   DTMF_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   EVENT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   INTENT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   LANGUAGE_CODE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TEXT_FIELD_NUMBER 
  
    
public   static   final   int   TEXT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   QueryInput   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   QueryInput . Builder   newBuilder ()  
  
  
    
public   static   QueryInput . Builder   newBuilder ( QueryInput   prototype )  
  
  
  
    
public   static   QueryInput   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   QueryInput   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   QueryInput   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   QueryInput   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   QueryInput   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   QueryInput   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   QueryInput   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   QueryInput   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   QueryInput   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   QueryInput   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   QueryInput   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   QueryInput   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<QueryInput>   parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   AudioInput   getAudio ()  
   The natural language speech audio to be processed.
 .google.cloud.dialogflow.cx.v3.AudioInput audio = 5;
    
public   AudioInputOrBuilder   getAudioOrBuilder ()  
   The natural language speech audio to be processed.
 .google.cloud.dialogflow.cx.v3.AudioInput audio = 5;
    
public   QueryInput   getDefaultInstanceForType ()  
  
  
    
public   DtmfInput   getDtmf ()  
   The DTMF event to be handled.
 .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;
    
public   DtmfInputOrBuilder   getDtmfOrBuilder ()  
   The DTMF event to be handled.
 .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;
    
public   EventInput   getEvent ()  
   The event to be triggered.
 .google.cloud.dialogflow.cx.v3.EventInput event = 6;
    
public   EventInputOrBuilder   getEventOrBuilder ()  
   The event to be triggered.
 .google.cloud.dialogflow.cx.v3.EventInput event = 6;
    
public   QueryInput . InputCase   getInputCase ()  
  
  
    
public   IntentInput   getIntent ()  
   The intent to be triggered.
 .google.cloud.dialogflow.cx.v3.IntentInput intent = 3;
    
public   IntentInputOrBuilder   getIntentOrBuilder ()  
   The intent to be triggered.
 .google.cloud.dialogflow.cx.v3.IntentInput intent = 3;
    
public   String   getLanguageCode ()  
   Required. The language of the input. See Language
 Support 
 for a list of the currently supported language codes. Note that queries in
 the same session do not necessarily need to specify the same language.
 string language_code = 4 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        String The languageCode.
 
     
  
  
    
public   ByteString   getLanguageCodeBytes ()  
   Required. The language of the input. See Language
 Support 
 for a list of the currently supported language codes. Note that queries in
 the same session do not necessarily need to specify the same language.
 string language_code = 4 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for languageCode.
 
     
  
  
    
public   Parser<QueryInput>   getParserForType ()  
  
  Overrides 
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getText() 
  
    
public   TextInput   getText ()  
   The natural language text to be processed.
 .google.cloud.dialogflow.cx.v3.TextInput text = 2;
getTextOrBuilder() 
  
    
public   TextInputOrBuilder   getTextOrBuilder ()  
   The natural language text to be processed.
 .google.cloud.dialogflow.cx.v3.TextInput text = 2;
    
public   boolean   hasAudio ()  
   The natural language speech audio to be processed.
 .google.cloud.dialogflow.cx.v3.AudioInput audio = 5;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the audio field is set.
 
     
  
   The DTMF event to be handled.
 .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the dtmf field is set.
 
     
  
  
    
public   boolean   hasEvent ()  
   The event to be triggered.
 .google.cloud.dialogflow.cx.v3.EventInput event = 6;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the event field is set.
 
     
  
  
    
public   boolean   hasIntent ()  
   The intent to be triggered.
 .google.cloud.dialogflow.cx.v3.IntentInput intent = 3;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the intent field is set.
 
     
  
  hasText() 
  
   The natural language text to be processed.
 .google.cloud.dialogflow.cx.v3.TextInput text = 2;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the text field is set.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   QueryInput . Builder   newBuilderForType ()  
  
  
    
protected   QueryInput . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   QueryInput . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]