Class QueryInput (4.3.1)

public final class QueryInput extends GeneratedMessageV3 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.v2.QueryInput

Implements

QueryInputOrBuilder

Fields

AUDIO_CONFIG_FIELD_NUMBER

public static final int AUDIO_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

EVENT_FIELD_NUMBER

public static final int EVENT_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAudioConfig()

public InputAudioConfig getAudioConfig()

Instructs the speech recognizer how to process the speech audio.

.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;

Returns
TypeDescription
InputAudioConfig

The audioConfig.

getAudioConfigOrBuilder()

public InputAudioConfigOrBuilder getAudioConfigOrBuilder()

Instructs the speech recognizer how to process the speech audio.

.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;

Returns
TypeDescription
InputAudioConfigOrBuilder

getDefaultInstance()

public static QueryInput getDefaultInstance()
Returns
TypeDescription
QueryInput

getDefaultInstanceForType()

public QueryInput getDefaultInstanceForType()
Returns
TypeDescription
QueryInput

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getEvent()

public EventInput getEvent()

The event to be processed.

.google.cloud.dialogflow.v2.EventInput event = 3;

Returns
TypeDescription
EventInput

The event.

getEventOrBuilder()

public EventInputOrBuilder getEventOrBuilder()

The event to be processed.

.google.cloud.dialogflow.v2.EventInput event = 3;

Returns
TypeDescription
EventInputOrBuilder

getInputCase()

public QueryInput.InputCase getInputCase()
Returns
TypeDescription
QueryInput.InputCase

getParserForType()

public Parser<QueryInput> getParserForType()
Returns
TypeDescription
Parser<QueryInput>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getText()

public TextInput getText()

The natural language text to be processed.

.google.cloud.dialogflow.v2.TextInput text = 2;

Returns
TypeDescription
TextInput

The text.

getTextOrBuilder()

public TextInputOrBuilder getTextOrBuilder()

The natural language text to be processed.

.google.cloud.dialogflow.v2.TextInput text = 2;

Returns
TypeDescription
TextInputOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAudioConfig()

public boolean hasAudioConfig()

Instructs the speech recognizer how to process the speech audio.

.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1;

Returns
TypeDescription
boolean

Whether the audioConfig field is set.

hasEvent()

public boolean hasEvent()

The event to be processed.

.google.cloud.dialogflow.v2.EventInput event = 3;

Returns
TypeDescription
boolean

Whether the event field is set.

hasText()

public boolean hasText()

The natural language text to be processed.

.google.cloud.dialogflow.v2.TextInput text = 2;

Returns
TypeDescription
boolean

Whether the text field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static QueryInput.Builder newBuilder()
Returns
TypeDescription
QueryInput.Builder

newBuilder(QueryInput prototype)

public static QueryInput.Builder newBuilder(QueryInput prototype)
Parameter
NameDescription
prototypeQueryInput
Returns
TypeDescription
QueryInput.Builder

newBuilderForType()

public QueryInput.Builder newBuilderForType()
Returns
TypeDescription
QueryInput.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QueryInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
QueryInput.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static QueryInput parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static QueryInput parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QueryInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QueryInput parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QueryInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QueryInput parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static QueryInput parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static QueryInput parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QueryInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<QueryInput> parser()
Returns
TypeDescription
Parser<QueryInput>

toBuilder()

public QueryInput.Builder toBuilder()
Returns
TypeDescription
QueryInput.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException