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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
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, java.lang.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, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<QueryInput.Builder>
public QueryInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.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 java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<QueryInput.Builder>
java.io.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 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>