Class Match.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Match.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Match.Builder
- All Implemented Interfaces:
MatchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Match
public static final class Match.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Match.Builder>
implements MatchOrBuilder
Represents one match result of [MatchIntent][].Protobuf type
google.cloud.dialogflow.cx.v3beta1.Match-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The confidence of this match.The event that matched the query.The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].The collection of parameters extracted from the query.Final text input which was matched during MatchIntent.floatThe confidence of this match.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEvent()The event that matched the query.com.google.protobuf.ByteStringThe event that matched the query.The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].intType of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].com.google.protobuf.StructThe collection of parameters extracted from the query.com.google.protobuf.Struct.BuilderThe collection of parameters extracted from the query.com.google.protobuf.StructOrBuilderThe collection of parameters extracted from the query.Final text input which was matched during MatchIntent.com.google.protobuf.ByteStringFinal text input which was matched during MatchIntent.booleanThe [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.booleanThe collection of parameters extracted from the query.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIntent(Intent value) The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.mergeParameters(com.google.protobuf.Struct value) The collection of parameters extracted from the query.setConfidence(float value) The confidence of this match.The event that matched the query.setEventBytes(com.google.protobuf.ByteString value) The event that matched the query.The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.setIntent(Intent.Builder builderForValue) The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.setMatchType(Match.MatchType value) Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].setMatchTypeValue(int value) Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].setParameters(com.google.protobuf.Struct value) The collection of parameters extracted from the query.setParameters(com.google.protobuf.Struct.Builder builderForValue) The collection of parameters extracted from the query.setResolvedInput(String value) Final text input which was matched during MatchIntent.setResolvedInputBytes(com.google.protobuf.ByteString value) Final text input which was matched during MatchIntent.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Match.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Match.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Match.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Match.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Match.Builder>
-
mergeFrom
public Match.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Match.Builder>- Throws:
IOException
-
hasIntent
public boolean hasIntent()The [Intent][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;- Specified by:
hasIntentin interfaceMatchOrBuilder- Returns:
- Whether the intent field is set.
-
getIntent
The [Intent][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;- Specified by:
getIntentin interfaceMatchOrBuilder- Returns:
- The intent.
-
setIntent
The [Intent][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3beta1.Intent intent = 1; -
setIntent
The [Intent][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3beta1.Intent intent = 1; -
mergeIntent
The [Intent][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3beta1.Intent intent = 1; -
clearIntent
The [Intent][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3beta1.Intent intent = 1; -
getIntentBuilder
The [Intent][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3beta1.Intent intent = 1; -
getIntentOrBuilder
The [Intent][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Match.MatchType] match type.
.google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;- Specified by:
getIntentOrBuilderin interfaceMatchOrBuilder
-
getEvent
The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match types.
string event = 6;- Specified by:
getEventin interfaceMatchOrBuilder- Returns:
- The event.
-
getEventBytes
public com.google.protobuf.ByteString getEventBytes()The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match types.
string event = 6;- Specified by:
getEventBytesin interfaceMatchOrBuilder- Returns:
- The bytes for event.
-
setEvent
The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match types.
string event = 6;- Parameters:
value- The event to set.- Returns:
- This builder for chaining.
-
clearEvent
The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match types.
string event = 6;- Returns:
- This builder for chaining.
-
setEventBytes
The event that matched the query. Filled for [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match types.
string event = 6;- Parameters:
value- The bytes for event to set.- Returns:
- This builder for chaining.
-
hasParameters
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;- Specified by:
hasParametersin interfaceMatchOrBuilder- Returns:
- Whether the parameters field is set.
-
getParameters
public 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;- Specified by:
getParametersin interfaceMatchOrBuilder- Returns:
- The parameters.
-
setParameters
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; -
setParameters
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; -
mergeParameters
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; -
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; -
getParametersBuilder
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; -
getParametersOrBuilder
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;- Specified by:
getParametersOrBuilderin interfaceMatchOrBuilder
-
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;- Specified by:
getResolvedInputin interfaceMatchOrBuilder- Returns:
- The resolvedInput.
-
getResolvedInputBytes
public 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;- Specified by:
getResolvedInputBytesin interfaceMatchOrBuilder- Returns:
- The bytes for resolvedInput.
-
setResolvedInput
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;- Parameters:
value- The resolvedInput to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setResolvedInputBytes
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;- Parameters:
value- The bytes for resolvedInput to set.- Returns:
- This builder for chaining.
-
getMatchTypeValue
public int getMatchTypeValue()Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
.google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;- Specified by:
getMatchTypeValuein interfaceMatchOrBuilder- Returns:
- The enum numeric value on the wire for matchType.
-
setMatchTypeValue
Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
.google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;- Parameters:
value- The enum numeric value on the wire for matchType to set.- Returns:
- This builder for chaining.
-
getMatchType
Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
.google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;- Specified by:
getMatchTypein interfaceMatchOrBuilder- Returns:
- The matchType.
-
setMatchType
Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
.google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;- Parameters:
value- The matchType to set.- Returns:
- This builder for chaining.
-
clearMatchType
Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
.google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;- Returns:
- This builder for chaining.
-
getConfidence
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;- Specified by:
getConfidencein interfaceMatchOrBuilder- Returns:
- The confidence.
-
setConfidence
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;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-