Interface WebhookRequest.IntentInfoOrBuilder (0.47.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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameter
Name Description
key String
Returns
Type Description
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
Type Description
float

The confidence.

getDisplayName()

public abstract String getDisplayName()

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

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

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

string display_name = 3;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for lastMatchedIntent.

getParameters() (deprecated)

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

Use #getParametersMap() instead.

Returns
Type Description
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Returns
Type Description
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Returns
Type Description
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameters
Name Description
key String
defaultValue WebhookRequest.IntentInfo.IntentParameterValue
Returns
Type Description
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameter
Name Description
key String
Returns
Type Description
WebhookRequest.IntentInfo.IntentParameterValue