public static final class QueryInput.Builder extends GeneratedMessageV3.Builder<QueryInput.Builder> 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.v2.QueryInput
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public QueryInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public QueryInput build()
Returns
public QueryInput buildPartial()
Returns
public QueryInput.Builder clear()
Returns
Overrides
public QueryInput.Builder clearAudioConfig()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
Returns
public QueryInput.Builder clearEvent()
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
Returns
public QueryInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public QueryInput.Builder clearInput()
Returns
public QueryInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearText()
public QueryInput.Builder clearText()
The natural language text to be processed. Text length must not exceed
256 character for virtual agent interactions.
.google.cloud.dialogflow.v2.TextInput text = 2;
Returns
public QueryInput.Builder clone()
Returns
Overrides
public InputAudioConfig getAudioConfig()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
Returns
public InputAudioConfig.Builder getAudioConfigBuilder()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
Returns
public InputAudioConfigOrBuilder getAudioConfigOrBuilder()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
Returns
public QueryInput getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public EventInput getEvent()
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
Returns
public EventInput.Builder getEventBuilder()
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
Returns
public EventInputOrBuilder getEventOrBuilder()
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
Returns
public QueryInput.InputCase getInputCase()
Returns
getText()
public TextInput getText()
The natural language text to be processed. Text length must not exceed
256 character for virtual agent interactions.
.google.cloud.dialogflow.v2.TextInput text = 2;
Returns
getTextBuilder()
public TextInput.Builder getTextBuilder()
The natural language text to be processed. Text length must not exceed
256 character for virtual agent interactions.
.google.cloud.dialogflow.v2.TextInput text = 2;
Returns
getTextOrBuilder()
public TextInputOrBuilder getTextOrBuilder()
The natural language text to be processed. Text length must not exceed
256 character for virtual agent interactions.
.google.cloud.dialogflow.v2.TextInput text = 2;
Returns
public boolean hasAudioConfig()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
Returns
Type |
Description |
boolean |
Whether the audioConfig field is set.
|
public boolean hasEvent()
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
Returns
Type |
Description |
boolean |
Whether the event field is set.
|
hasText()
The natural language text to be processed. Text length must not exceed
256 character for virtual agent interactions.
.google.cloud.dialogflow.v2.TextInput text = 2;
Returns
Type |
Description |
boolean |
Whether the text field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public QueryInput.Builder mergeAudioConfig(InputAudioConfig value)
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
Parameter
Returns
public QueryInput.Builder mergeEvent(EventInput value)
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
Parameter
Returns
public QueryInput.Builder mergeFrom(QueryInput other)
Parameter
Returns
public QueryInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public QueryInput.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeText(TextInput value)
public QueryInput.Builder mergeText(TextInput value)
The natural language text to be processed. Text length must not exceed
256 character for virtual agent interactions.
.google.cloud.dialogflow.v2.TextInput text = 2;
Parameter
Returns
public final QueryInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public QueryInput.Builder setAudioConfig(InputAudioConfig value)
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
Parameter
Returns
public QueryInput.Builder setAudioConfig(InputAudioConfig.Builder builderForValue)
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
Parameter
Returns
public QueryInput.Builder setEvent(EventInput value)
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
Parameter
Returns
public QueryInput.Builder setEvent(EventInput.Builder builderForValue)
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
Parameter
Returns
public QueryInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public QueryInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setText(TextInput value)
public QueryInput.Builder setText(TextInput value)
The natural language text to be processed. Text length must not exceed
256 character for virtual agent interactions.
.google.cloud.dialogflow.v2.TextInput text = 2;
Parameter
Returns
setText(TextInput.Builder builderForValue)
public QueryInput.Builder setText(TextInput.Builder builderForValue)
The natural language text to be processed. Text length must not exceed
256 character for virtual agent interactions.
.google.cloud.dialogflow.v2.TextInput text = 2;
Parameter
Returns
public final QueryInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides