Interface WebhookRequest.IntentInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
WebhookRequest.IntentInfo,WebhookRequest.IntentInfo.Builder
- Enclosing class:
- WebhookRequest
public static interface WebhookRequest.IntentInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsParameters(String key) Parameters identified as a result of intent matching.floatThe confidence of the matched intent.Always present.com.google.protobuf.ByteStringAlways present.Always present.com.google.protobuf.ByteStringAlways present.Deprecated.intParameters identified as a result of intent matching.Parameters identified as a result of intent matching.getParametersOrDefault(String key, WebhookRequest.IntentInfo.IntentParameterValue defaultValue) Parameters identified as a result of intent matching.Parameters identified as a result of intent matching.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getLastMatchedIntent
String getLastMatchedIntent()Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Returns:
- The lastMatchedIntent.
-
getLastMatchedIntentBytes
com.google.protobuf.ByteString getLastMatchedIntentBytes()Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Returns:
- The bytes for lastMatchedIntent.
-
getDisplayName
String getDisplayName()Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
string display_name = 3;- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
string display_name = 3;- Returns:
- The bytes for displayName.
-
getParametersCount
int getParametersCount()Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; -
containsParameters
Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; -
getParameters
Deprecated.UsegetParametersMap()instead. -
getParametersMap
Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParametersMap()Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; -
getParametersOrDefault
WebhookRequest.IntentInfo.IntentParameterValue getParametersOrDefault(String key, WebhookRequest.IntentInfo.IntentParameterValue defaultValue) Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; -
getParametersOrThrow
Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; -
getConfidence
float getConfidence()The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;- Returns:
- The confidence.
-