public static final class QueryInput.Builder extends GeneratedMessageV3.Builder<QueryInput.Builder> implements QueryInputOrBuilder
Represents the query input. It can contain either: 1. An audio config which instructs the speech recognizer how to process the speech audio. 2. A conversational query in the form of text. 3. An event that specifies which intent to trigger.Protobuf type
google.cloud.dialogflow.v2beta1.QueryInput
Modifier and Type | Method and Description |
---|---|
QueryInput.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
QueryInput |
build() |
QueryInput |
buildPartial() |
QueryInput.Builder |
clear() |
QueryInput.Builder |
clearAudioConfig()
Instructs the speech recognizer how to process the speech audio.
|
QueryInput.Builder |
clearDtmf()
The DTMF digits used to invoke intent and fill in parameter value.
|
QueryInput.Builder |
clearEvent()
The event to be processed.
|
QueryInput.Builder |
clearField(Descriptors.FieldDescriptor field) |
QueryInput.Builder |
clearInput() |
QueryInput.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
QueryInput.Builder |
clearText()
The natural language text to be processed.
|
QueryInput.Builder |
clone() |
InputAudioConfig |
getAudioConfig()
Instructs the speech recognizer how to process the speech audio.
|
InputAudioConfig.Builder |
getAudioConfigBuilder()
Instructs the speech recognizer how to process the speech audio.
|
InputAudioConfigOrBuilder |
getAudioConfigOrBuilder()
Instructs the speech recognizer how to process the speech audio.
|
QueryInput |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
TelephonyDtmfEvents |
getDtmf()
The DTMF digits used to invoke intent and fill in parameter value.
|
TelephonyDtmfEvents.Builder |
getDtmfBuilder()
The DTMF digits used to invoke intent and fill in parameter value.
|
TelephonyDtmfEventsOrBuilder |
getDtmfOrBuilder()
The DTMF digits used to invoke intent and fill in parameter value.
|
EventInput |
getEvent()
The event to be processed.
|
EventInput.Builder |
getEventBuilder()
The event to be processed.
|
EventInputOrBuilder |
getEventOrBuilder()
The event to be processed.
|
QueryInput.InputCase |
getInputCase() |
TextInput |
getText()
The natural language text to be processed.
|
TextInput.Builder |
getTextBuilder()
The natural language text to be processed.
|
TextInputOrBuilder |
getTextOrBuilder()
The natural language text to be processed.
|
boolean |
hasAudioConfig()
Instructs the speech recognizer how to process the speech audio.
|
boolean |
hasDtmf()
The DTMF digits used to invoke intent and fill in parameter value.
|
boolean |
hasEvent()
The event to be processed.
|
boolean |
hasText()
The natural language text to be processed.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
QueryInput.Builder |
mergeAudioConfig(InputAudioConfig value)
Instructs the speech recognizer how to process the speech audio.
|
QueryInput.Builder |
mergeDtmf(TelephonyDtmfEvents value)
The DTMF digits used to invoke intent and fill in parameter value.
|
QueryInput.Builder |
mergeEvent(EventInput value)
The event to be processed.
|
QueryInput.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
QueryInput.Builder |
mergeFrom(Message other) |
QueryInput.Builder |
mergeFrom(QueryInput other) |
QueryInput.Builder |
mergeText(TextInput value)
The natural language text to be processed.
|
QueryInput.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
QueryInput.Builder |
setAudioConfig(InputAudioConfig.Builder builderForValue)
Instructs the speech recognizer how to process the speech audio.
|
QueryInput.Builder |
setAudioConfig(InputAudioConfig value)
Instructs the speech recognizer how to process the speech audio.
|
QueryInput.Builder |
setDtmf(TelephonyDtmfEvents.Builder builderForValue)
The DTMF digits used to invoke intent and fill in parameter value.
|
QueryInput.Builder |
setDtmf(TelephonyDtmfEvents value)
The DTMF digits used to invoke intent and fill in parameter value.
|
QueryInput.Builder |
setEvent(EventInput.Builder builderForValue)
The event to be processed.
|
QueryInput.Builder |
setEvent(EventInput value)
The event to be processed.
|
QueryInput.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
QueryInput.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
QueryInput.Builder |
setText(TextInput.Builder builderForValue)
The natural language text to be processed.
|
QueryInput.Builder |
setText(TextInput value)
The natural language text to be processed.
|
QueryInput.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public QueryInput build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public QueryInput buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public QueryInput.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<QueryInput.Builder>
public QueryInput.Builder mergeFrom(QueryInput other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<QueryInput.Builder>
IOException
public QueryInput.InputCase getInputCase()
getInputCase
in interface QueryInputOrBuilder
public QueryInput.Builder clearInput()
public boolean hasAudioConfig()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
hasAudioConfig
in interface QueryInputOrBuilder
public InputAudioConfig getAudioConfig()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
getAudioConfig
in interface QueryInputOrBuilder
public QueryInput.Builder setAudioConfig(InputAudioConfig value)
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
public QueryInput.Builder setAudioConfig(InputAudioConfig.Builder builderForValue)
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
public QueryInput.Builder mergeAudioConfig(InputAudioConfig value)
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
public QueryInput.Builder clearAudioConfig()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
public InputAudioConfig.Builder getAudioConfigBuilder()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
public InputAudioConfigOrBuilder getAudioConfigOrBuilder()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig audio_config = 1;
getAudioConfigOrBuilder
in interface QueryInputOrBuilder
public boolean hasText()
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
hasText
in interface QueryInputOrBuilder
public TextInput getText()
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
getText
in interface QueryInputOrBuilder
public QueryInput.Builder setText(TextInput value)
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
public QueryInput.Builder setText(TextInput.Builder builderForValue)
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
public QueryInput.Builder mergeText(TextInput value)
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
public QueryInput.Builder clearText()
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
public TextInput.Builder getTextBuilder()
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
public TextInputOrBuilder getTextOrBuilder()
The natural language text to be processed.
.google.cloud.dialogflow.v2beta1.TextInput text = 2;
getTextOrBuilder
in interface QueryInputOrBuilder
public boolean hasEvent()
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
hasEvent
in interface QueryInputOrBuilder
public EventInput getEvent()
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
getEvent
in interface QueryInputOrBuilder
public QueryInput.Builder setEvent(EventInput value)
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
public QueryInput.Builder setEvent(EventInput.Builder builderForValue)
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
public QueryInput.Builder mergeEvent(EventInput value)
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
public QueryInput.Builder clearEvent()
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
public EventInput.Builder getEventBuilder()
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
public EventInputOrBuilder getEventOrBuilder()
The event to be processed.
.google.cloud.dialogflow.v2beta1.EventInput event = 3;
getEventOrBuilder
in interface QueryInputOrBuilder
public boolean hasDtmf()
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
hasDtmf
in interface QueryInputOrBuilder
public TelephonyDtmfEvents getDtmf()
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
getDtmf
in interface QueryInputOrBuilder
public QueryInput.Builder setDtmf(TelephonyDtmfEvents value)
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
public QueryInput.Builder setDtmf(TelephonyDtmfEvents.Builder builderForValue)
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
public QueryInput.Builder mergeDtmf(TelephonyDtmfEvents value)
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
public QueryInput.Builder clearDtmf()
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
public TelephonyDtmfEvents.Builder getDtmfBuilder()
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
public TelephonyDtmfEventsOrBuilder getDtmfOrBuilder()
The DTMF digits used to invoke intent and fill in parameter value.
.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 4;
getDtmfOrBuilder
in interface QueryInputOrBuilder
public final QueryInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public final QueryInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<QueryInput.Builder>
Copyright © 2022 Google LLC. All rights reserved.