Interface WebhookRequest.IntentInfoOrBuilder (0.48.0)

public static interface WebhookRequest.IntentInfoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsParameters(String key)

public abstract boolean containsParameters(String key)

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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getConfidence()

public abstract float getConfidence()

The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).

float confidence = 4;

Returns
TypeDescription
float

The confidence.

getDisplayName()

public abstract String getDisplayName()

Always present. The display name of the last matched intent.

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

Always present. The display name of the last matched intent.

string display_name = 3;

Returns
TypeDescription
ByteString

The bytes for displayName.

getLastMatchedIntent()

public abstract String getLastMatchedIntent()

Always present. The unique identifier of the last matched intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The lastMatchedIntent.

getLastMatchedIntentBytes()

public abstract ByteString getLastMatchedIntentBytes()

Always present. The unique identifier of the last matched intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for lastMatchedIntent.

getParameters() (deprecated)

public abstract Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParameters()

Use #getParametersMap() instead.

Returns
TypeDescription
Map<String,IntentParameterValue>

getParametersCount()

public abstract 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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Returns
TypeDescription
int

getParametersMap()

public abstract 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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Returns
TypeDescription
Map<String,IntentParameterValue>

getParametersOrDefault(String key, WebhookRequest.IntentInfo.IntentParameterValue defaultValue)

public abstract 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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameters
NameDescription
keyString
defaultValueWebhookRequest.IntentInfo.IntentParameterValue
Returns
TypeDescription
WebhookRequest.IntentInfo.IntentParameterValue

getParametersOrThrow(String key)

public abstract WebhookRequest.IntentInfo.IntentParameterValue getParametersOrThrow(String key)

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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
WebhookRequest.IntentInfo.IntentParameterValue