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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public QueryInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public QueryInput build()
public QueryInput buildPartial()
public QueryInput.Builder clear()
Overrides
public QueryInput.Builder clearAudioConfig()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
public QueryInput.Builder clearEvent()
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
public QueryInput.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public QueryInput.Builder clearInput()
public QueryInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
public QueryInput.Builder clone()
Overrides
public InputAudioConfig getAudioConfig()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
public InputAudioConfig.Builder getAudioConfigBuilder()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
public InputAudioConfigOrBuilder getAudioConfigOrBuilder()
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;
public QueryInput getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public EventInput getEvent()
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
public EventInput.Builder getEventBuilder()
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
public EventInputOrBuilder getEventOrBuilder()
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
public QueryInput.InputCase getInputCase()
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;
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;
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;
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()
Overrides
public final boolean isInitialized()
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;
public QueryInput.Builder mergeEvent(EventInput value)
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
public QueryInput.Builder mergeFrom(QueryInput other)
public QueryInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public QueryInput.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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;
public final QueryInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
public QueryInput.Builder setEvent(EventInput value)
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
public QueryInput.Builder setEvent(EventInput.Builder builderForValue)
The event to be processed.
.google.cloud.dialogflow.v2.EventInput event = 3;
public QueryInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public QueryInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
public final QueryInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides