Send feedback
Class QueryInput (4.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.7.0 keyboard_arrow_down
public final class QueryInput extends GeneratedMessageV3 implements QueryInputOrBuilder
Represents the query input. It can contain either:
An audio config which
instructs the speech recognizer how to process the speech audio.
A conversational query in the form of text.
An event that specifies which intent to trigger.
Protobuf type google.cloud.dialogflow.v2beta1.QueryInput
Static Fields
public static final int AUDIO_CONFIG_FIELD_NUMBER
Field Value
public static final int DTMF_FIELD_NUMBER
Field Value
public static final int EVENT_FIELD_NUMBER
Field Value
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value
Static Methods
public static QueryInput getDefaultInstance ()
Returns
public static final Descriptors . Descriptor getDescriptor ()
Returns
public static QueryInput . Builder newBuilder ()
Returns
public static QueryInput . Builder newBuilder ( QueryInput prototype )
Parameter
Returns
public static QueryInput parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static QueryInput parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static QueryInput parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
public static QueryInput parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static QueryInput parseFrom ( ByteString data )
Parameter
Returns
Exceptions
public static QueryInput parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static QueryInput parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static QueryInput parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static QueryInput parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static QueryInput parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static QueryInput parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
public static QueryInput parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Parser<QueryInput> parser ()
Returns
Methods
public boolean equals ( Object obj )
Parameter
Returns
Overrides
public InputAudioConfig getAudioConfig ()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
Returns
public InputAudioConfigOrBuilder getAudioConfigOrBuilder ()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
Returns
public QueryInput getDefaultInstanceForType ()
Returns
public TelephonyDtmfEvents getDtmf ()
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
Returns
public TelephonyDtmfEventsOrBuilder getDtmfOrBuilder ()
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
Returns
public EventInput getEvent ()
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
Returns
public EventInputOrBuilder getEventOrBuilder ()
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
Returns
public QueryInput . InputCase getInputCase ()
Returns
public Parser<QueryInput> getParserForType ()
Returns
Overrides
public int getSerializedSize ()
Returns
Overrides
getText()
public TextInput getText ()
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
Returns
getTextOrBuilder()
public TextInputOrBuilder getTextOrBuilder ()
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
Returns
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
public boolean hasAudioConfig ()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
Returns
Type Description boolean Whether the audioConfig field is set.
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
Returns
Type Description boolean Whether the dtmf field is set.
public boolean hasEvent ()
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
Returns
Type Description boolean Whether the event field is set.
hasText()
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
Returns
Type Description boolean Whether the text field is set.
Returns
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public QueryInput . Builder newBuilderForType ()
Returns
protected QueryInput . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public QueryInput . Builder toBuilder ()
Returns
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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-01-27 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-01-27 UTC."],[],[]]