Class WebhookRequest.IntentInfo (0.53.0)

public static final class WebhookRequest.IntentInfo extends GeneratedMessageV3 implements WebhookRequest.IntentInfoOrBuilder

Represents intent information communicated to the webhook.

Protobuf type google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo

Static Fields

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

LAST_MATCHED_INTENT_FIELD_NUMBER

public static final int LAST_MATCHED_INTENT_FIELD_NUMBER
Field Value
Type Description
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WebhookRequest.IntentInfo getDefaultInstance()
Returns
Type Description
WebhookRequest.IntentInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static WebhookRequest.IntentInfo.Builder newBuilder()
Returns
Type Description
WebhookRequest.IntentInfo.Builder

newBuilder(WebhookRequest.IntentInfo prototype)

public static WebhookRequest.IntentInfo.Builder newBuilder(WebhookRequest.IntentInfo prototype)
Parameter
Name Description
prototype WebhookRequest.IntentInfo
Returns
Type Description
WebhookRequest.IntentInfo.Builder

parseDelimitedFrom(InputStream input)

public static WebhookRequest.IntentInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WebhookRequest.IntentInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WebhookRequest.IntentInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WebhookRequest.IntentInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WebhookRequest.IntentInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WebhookRequest.IntentInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WebhookRequest.IntentInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WebhookRequest.IntentInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WebhookRequest.IntentInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WebhookRequest.IntentInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WebhookRequest.IntentInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WebhookRequest.IntentInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookRequest.IntentInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WebhookRequest.IntentInfo> parser()
Returns
Type Description
Parser<IntentInfo>

Methods

containsParameters(String key)

public 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
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConfidence()

public 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.

getDefaultInstanceForType()

public WebhookRequest.IntentInfo getDefaultInstanceForType()
Returns
Type Description
WebhookRequest.IntentInfo

getDisplayName()

public String getDisplayName()

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

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public 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 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 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 Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParameters()

Use #getParametersMap() instead.

Returns
Type Description
Map<String,IntentParameterValue>

getParametersCount()

public 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
Type Description
int

getParametersMap()

public 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
Type Description
Map<String,IntentParameterValue>

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

public 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
Name Description
key String
defaultValue WebhookRequest.IntentInfo.IntentParameterValue
Returns
Type Description
WebhookRequest.IntentInfo.IntentParameterValue

getParametersOrThrow(String key)

public 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
Name Description
key String
Returns
Type Description
WebhookRequest.IntentInfo.IntentParameterValue

getParserForType()

public Parser<WebhookRequest.IntentInfo> getParserForType()
Returns
Type Description
Parser<IntentInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WebhookRequest.IntentInfo.Builder newBuilderForType()
Returns
Type Description
WebhookRequest.IntentInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WebhookRequest.IntentInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WebhookRequest.IntentInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public WebhookRequest.IntentInfo.Builder toBuilder()
Returns
Type Description
WebhookRequest.IntentInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException