public static final class Match.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder> implements MatchOrBuilder
Represents one match result of [MatchIntent][].Protobuf type
google.cloud.dialogflow.cx.v3.Match| Modifier and Type | Method and Description |
|---|---|
Match.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Match |
build() |
Match |
buildPartial() |
Match.Builder |
clear() |
Match.Builder |
clearConfidence()
The confidence of this match.
|
Match.Builder |
clearEvent()
The event that matched the query.
|
Match.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Match.Builder |
clearIntent()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
|
Match.Builder |
clearMatchType()
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
|
Match.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Match.Builder |
clearParameters()
The collection of parameters extracted from the query.
|
Match.Builder |
clearResolvedInput()
Final text input which was matched during MatchIntent.
|
Match.Builder |
clone() |
float |
getConfidence()
The confidence of this match.
|
Match |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEvent()
The event that matched the query.
|
com.google.protobuf.ByteString |
getEventBytes()
The event that matched the query.
|
Intent |
getIntent()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
|
Intent.Builder |
getIntentBuilder()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
|
IntentOrBuilder |
getIntentOrBuilder()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
|
Match.MatchType |
getMatchType()
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
|
int |
getMatchTypeValue()
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
|
com.google.protobuf.Struct |
getParameters()
The collection of parameters extracted from the query.
|
com.google.protobuf.Struct.Builder |
getParametersBuilder()
The collection of parameters extracted from the query.
|
com.google.protobuf.StructOrBuilder |
getParametersOrBuilder()
The collection of parameters extracted from the query.
|
String |
getResolvedInput()
Final text input which was matched during MatchIntent.
|
com.google.protobuf.ByteString |
getResolvedInputBytes()
Final text input which was matched during MatchIntent.
|
boolean |
hasIntent()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
|
boolean |
hasParameters()
The collection of parameters extracted from the query.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Match.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Match.Builder |
mergeFrom(Match other) |
Match.Builder |
mergeFrom(com.google.protobuf.Message other) |
Match.Builder |
mergeIntent(Intent value)
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
|
Match.Builder |
mergeParameters(com.google.protobuf.Struct value)
The collection of parameters extracted from the query.
|
Match.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Match.Builder |
setConfidence(float value)
The confidence of this match.
|
Match.Builder |
setEvent(String value)
The event that matched the query.
|
Match.Builder |
setEventBytes(com.google.protobuf.ByteString value)
The event that matched the query.
|
Match.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Match.Builder |
setIntent(Intent.Builder builderForValue)
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
|
Match.Builder |
setIntent(Intent value)
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
|
Match.Builder |
setMatchType(Match.MatchType value)
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
|
Match.Builder |
setMatchTypeValue(int value)
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
|
Match.Builder |
setParameters(com.google.protobuf.Struct.Builder builderForValue)
The collection of parameters extracted from the query.
|
Match.Builder |
setParameters(com.google.protobuf.Struct value)
The collection of parameters extracted from the query.
|
Match.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Match.Builder |
setResolvedInput(String value)
Final text input which was matched during MatchIntent.
|
Match.Builder |
setResolvedInputBytes(com.google.protobuf.ByteString value)
Final text input which was matched during MatchIntent.
|
Match.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public Match.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public Match getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Match build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Match buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Match.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public Match.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public Match.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public Match.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public Match.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public Match.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public Match.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Match.Builder>public Match.Builder mergeFrom(Match other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public Match.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Match.Builder>IOExceptionpublic boolean hasIntent()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. Only filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3.Intent intent = 1;hasIntent in interface MatchOrBuilderpublic Intent getIntent()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. Only filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3.Intent intent = 1;getIntent in interface MatchOrBuilderpublic Match.Builder setIntent(Intent value)
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. Only filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3.Intent intent = 1;public Match.Builder setIntent(Intent.Builder builderForValue)
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. Only filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3.Intent intent = 1;public Match.Builder mergeIntent(Intent value)
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. Only filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3.Intent intent = 1;public Match.Builder clearIntent()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. Only filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3.Intent intent = 1;public Intent.Builder getIntentBuilder()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. Only filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3.Intent intent = 1;public IntentOrBuilder getIntentOrBuilder()
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. Only filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3.Intent intent = 1;getIntentOrBuilder in interface MatchOrBuilderpublic String getEvent()
The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
string event = 6;getEvent in interface MatchOrBuilderpublic com.google.protobuf.ByteString getEventBytes()
The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
string event = 6;getEventBytes in interface MatchOrBuilderpublic Match.Builder setEvent(String value)
The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
string event = 6;value - The event to set.public Match.Builder clearEvent()
The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
string event = 6;public Match.Builder setEventBytes(com.google.protobuf.ByteString value)
The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
string event = 6;value - The bytes for event to set.public boolean hasParameters()
The collection of parameters extracted from the query. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 2;hasParameters in interface MatchOrBuilderpublic com.google.protobuf.Struct getParameters()
The collection of parameters extracted from the query. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 2;getParameters in interface MatchOrBuilderpublic Match.Builder setParameters(com.google.protobuf.Struct value)
The collection of parameters extracted from the query. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 2;public Match.Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
The collection of parameters extracted from the query. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 2;public Match.Builder mergeParameters(com.google.protobuf.Struct value)
The collection of parameters extracted from the query. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 2;public Match.Builder clearParameters()
The collection of parameters extracted from the query. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 2;public com.google.protobuf.Struct.Builder getParametersBuilder()
The collection of parameters extracted from the query. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 2;public com.google.protobuf.StructOrBuilder getParametersOrBuilder()
The collection of parameters extracted from the query. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 2;getParametersOrBuilder in interface MatchOrBuilderpublic String getResolvedInput()
Final text input which was matched during MatchIntent. This value can be different from original input sent in request because of spelling correction or other processing.
string resolved_input = 3;getResolvedInput in interface MatchOrBuilderpublic com.google.protobuf.ByteString getResolvedInputBytes()
Final text input which was matched during MatchIntent. This value can be different from original input sent in request because of spelling correction or other processing.
string resolved_input = 3;getResolvedInputBytes in interface MatchOrBuilderpublic Match.Builder setResolvedInput(String value)
Final text input which was matched during MatchIntent. This value can be different from original input sent in request because of spelling correction or other processing.
string resolved_input = 3;value - The resolvedInput to set.public Match.Builder clearResolvedInput()
Final text input which was matched during MatchIntent. This value can be different from original input sent in request because of spelling correction or other processing.
string resolved_input = 3;public Match.Builder setResolvedInputBytes(com.google.protobuf.ByteString value)
Final text input which was matched during MatchIntent. This value can be different from original input sent in request because of spelling correction or other processing.
string resolved_input = 3;value - The bytes for resolvedInput to set.public int getMatchTypeValue()
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
.google.cloud.dialogflow.cx.v3.Match.MatchType match_type = 4;getMatchTypeValue in interface MatchOrBuilderpublic Match.Builder setMatchTypeValue(int value)
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
.google.cloud.dialogflow.cx.v3.Match.MatchType match_type = 4;value - The enum numeric value on the wire for matchType to set.public Match.MatchType getMatchType()
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
.google.cloud.dialogflow.cx.v3.Match.MatchType match_type = 4;getMatchType in interface MatchOrBuilderpublic Match.Builder setMatchType(Match.MatchType value)
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
.google.cloud.dialogflow.cx.v3.Match.MatchType match_type = 4;value - The matchType to set.public Match.Builder clearMatchType()
Type of this [Match][google.cloud.dialogflow.cx.v3.Match].
.google.cloud.dialogflow.cx.v3.Match.MatchType match_type = 4;public float getConfidence()
The confidence of this match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation.
float confidence = 5;getConfidence in interface MatchOrBuilderpublic Match.Builder setConfidence(float value)
The confidence of this match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation.
float confidence = 5;value - The confidence to set.public Match.Builder clearConfidence()
The confidence of this match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation.
float confidence = 5;public final Match.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>public final Match.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>Copyright © 2025 Google LLC. All rights reserved.