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.
Protobuf type google.cloud.dialogflow.cx.v3.QueryInput
Static Fields
public static final int AUDIO_FIELD_NUMBER
Field Value
public static final int DTMF_FIELD_NUMBER
Field Value
public static final int EVENT_FIELD_NUMBER
Field Value
public static final int INTENT_FIELD_NUMBER
Field Value
public static final int LANGUAGE_CODE_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 AudioInput getAudio()
The natural language speech audio to be processed.
.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;
Returns
public AudioInputOrBuilder getAudioOrBuilder()
The natural language speech audio to be processed.
.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;
Returns
public QueryInput getDefaultInstanceForType()
Returns
public DtmfInput getDtmf()
The DTMF event to be handled.
.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;
Returns
public DtmfInputOrBuilder getDtmfOrBuilder()
The DTMF event to be handled.
.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;
Returns
public EventInput getEvent()
The event to be triggered.
.google.cloud.dialogflow.cx.v3.EventInput event = 6;
Returns
public EventInputOrBuilder getEventOrBuilder()
The event to be triggered.
.google.cloud.dialogflow.cx.v3.EventInput event = 6;
Returns
public QueryInput.InputCase getInputCase()
Returns
public IntentInput getIntent()
The intent to be triggered.
.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;
Returns
public IntentInputOrBuilder getIntentOrBuilder()
The intent to be triggered.
.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;
Returns
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()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
getText()
public TextInput getText()
The natural language text to be processed.
.google.cloud.dialogflow.cx.v3.TextInput text = 2;
Returns
getTextOrBuilder()
public TextInputOrBuilder getTextOrBuilder()
The natural language text to be processed.
.google.cloud.dialogflow.cx.v3.TextInput text = 2;
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
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