Class MatchedQuery (0.21.0)

public final class MatchedQuery extends GeneratedMessage implements MatchedQueryOrBuilder

A matched query message represents the agent having matched one of the example queries supplied in context as being applicable to the current question. It will also contain additional info during the matching process.

Protobuf type google.cloud.geminidataanalytics.v1beta.MatchedQuery

Static Fields

EXAMPLE_QUERY_FIELD_NUMBER

public static final int EXAMPLE_QUERY_FIELD_NUMBER
Field Value
Type Description
int

QUERY_PARAMETER_VALUES_FIELD_NUMBER

public static final int QUERY_PARAMETER_VALUES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MatchedQuery getDefaultInstance()
Returns
Type Description
MatchedQuery

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static MatchedQuery.Builder newBuilder()
Returns
Type Description
MatchedQuery.Builder

newBuilder(MatchedQuery prototype)

public static MatchedQuery.Builder newBuilder(MatchedQuery prototype)
Parameter
Name Description
prototype MatchedQuery
Returns
Type Description
MatchedQuery.Builder

parseDelimitedFrom(InputStream input)

public static MatchedQuery parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MatchedQuery
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchedQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchedQuery
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MatchedQuery parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MatchedQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MatchedQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchedQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MatchedQuery parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MatchedQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MatchedQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchedQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MatchedQuery parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MatchedQuery
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchedQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchedQuery
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MatchedQuery parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MatchedQuery
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchedQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchedQuery
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MatchedQuery parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MatchedQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MatchedQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchedQuery
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MatchedQuery> parser()
Returns
Type Description
Parser<MatchedQuery>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public MatchedQuery getDefaultInstanceForType()
Returns
Type Description
MatchedQuery

getExampleQuery()

public ExampleQuery getExampleQuery()

The query that was matched based on an example query.

.google.cloud.geminidataanalytics.v1beta.ExampleQuery example_query = 1;

Returns
Type Description
ExampleQuery

The exampleQuery.

getExampleQueryOrBuilder()

public ExampleQueryOrBuilder getExampleQueryOrBuilder()

The query that was matched based on an example query.

.google.cloud.geminidataanalytics.v1beta.ExampleQuery example_query = 1;

Returns
Type Description
ExampleQueryOrBuilder

getParserForType()

public Parser<MatchedQuery> getParserForType()
Returns
Type Description
Parser<MatchedQuery>
Overrides

getQueryParameterValues(int index)

public QueryParameterValues getQueryParameterValues(int index)

The extracted values for the query parameters.

repeated .google.cloud.geminidataanalytics.v1beta.QueryParameterValues query_parameter_values = 2;

Parameter
Name Description
index int
Returns
Type Description
QueryParameterValues

getQueryParameterValuesCount()

public int getQueryParameterValuesCount()

The extracted values for the query parameters.

repeated .google.cloud.geminidataanalytics.v1beta.QueryParameterValues query_parameter_values = 2;

Returns
Type Description
int

getQueryParameterValuesList()

public List<QueryParameterValues> getQueryParameterValuesList()

The extracted values for the query parameters.

repeated .google.cloud.geminidataanalytics.v1beta.QueryParameterValues query_parameter_values = 2;

Returns
Type Description
List<QueryParameterValues>

getQueryParameterValuesOrBuilder(int index)

public QueryParameterValuesOrBuilder getQueryParameterValuesOrBuilder(int index)

The extracted values for the query parameters.

repeated .google.cloud.geminidataanalytics.v1beta.QueryParameterValues query_parameter_values = 2;

Parameter
Name Description
index int
Returns
Type Description
QueryParameterValuesOrBuilder

getQueryParameterValuesOrBuilderList()

public List<? extends QueryParameterValuesOrBuilder> getQueryParameterValuesOrBuilderList()

The extracted values for the query parameters.

repeated .google.cloud.geminidataanalytics.v1beta.QueryParameterValues query_parameter_values = 2;

Returns
Type Description
List<? extends com.google.cloud.geminidataanalytics.v1beta.QueryParameterValuesOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasExampleQuery()

public boolean hasExampleQuery()

The query that was matched based on an example query.

.google.cloud.geminidataanalytics.v1beta.ExampleQuery example_query = 1;

Returns
Type Description
boolean

Whether the exampleQuery field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MatchedQuery.Builder newBuilderForType()
Returns
Type Description
MatchedQuery.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected MatchedQuery.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MatchedQuery.Builder
Overrides

toBuilder()

public MatchedQuery.Builder toBuilder()
Returns
Type Description
MatchedQuery.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException