Class WebhookRequest.IntentInfo
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo
-
- All Implemented Interfaces:
WebhookRequest.IntentInfoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- WebhookRequest
public static final class WebhookRequest.IntentInfo extends com.google.protobuf.GeneratedMessageV3 implements WebhookRequest.IntentInfoOrBuilder
Represents intent information communicated to the webhook.
Protobuf typegoogle.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookRequest.IntentInfo.BuilderRepresents intent information communicated to the webhook.static classWebhookRequest.IntentInfo.IntentParameterValueRepresents a value for an intent parameter.static interfaceWebhookRequest.IntentInfo.IntentParameterValueOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONFIDENCE_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intLAST_MATCHED_INTENT_FIELD_NUMBERstatic intPARAMETERS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsParameters(String key)Parameters identified as a result of intent matching.booleanequals(Object obj)floatgetConfidence()The confidence of the matched intent.static WebhookRequest.IntentInfogetDefaultInstance()WebhookRequest.IntentInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Always present.com.google.protobuf.ByteStringgetDisplayNameBytes()Always present.StringgetLastMatchedIntent()Always present.com.google.protobuf.ByteStringgetLastMatchedIntentBytes()Always present.Map<String,WebhookRequest.IntentInfo.IntentParameterValue>getParameters()Deprecated.intgetParametersCount()Parameters identified as a result of intent matching.Map<String,WebhookRequest.IntentInfo.IntentParameterValue>getParametersMap()Parameters identified as a result of intent matching.WebhookRequest.IntentInfo.IntentParameterValuegetParametersOrDefault(String key, WebhookRequest.IntentInfo.IntentParameterValue defaultValue)Parameters identified as a result of intent matching.WebhookRequest.IntentInfo.IntentParameterValuegetParametersOrThrow(String key)Parameters identified as a result of intent matching.com.google.protobuf.Parser<WebhookRequest.IntentInfo>getParserForType()intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static WebhookRequest.IntentInfo.BuildernewBuilder()static WebhookRequest.IntentInfo.BuildernewBuilder(WebhookRequest.IntentInfo prototype)WebhookRequest.IntentInfo.BuildernewBuilderForType()protected WebhookRequest.IntentInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static WebhookRequest.IntentInfoparseDelimitedFrom(InputStream input)static WebhookRequest.IntentInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookRequest.IntentInfoparseFrom(byte[] data)static WebhookRequest.IntentInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookRequest.IntentInfoparseFrom(com.google.protobuf.ByteString data)static WebhookRequest.IntentInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookRequest.IntentInfoparseFrom(com.google.protobuf.CodedInputStream input)static WebhookRequest.IntentInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookRequest.IntentInfoparseFrom(InputStream input)static WebhookRequest.IntentInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookRequest.IntentInfoparseFrom(ByteBuffer data)static WebhookRequest.IntentInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<WebhookRequest.IntentInfo>parser()WebhookRequest.IntentInfo.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LAST_MATCHED_INTENT_FIELD_NUMBER
public static final int LAST_MATCHED_INTENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getLastMatchedIntent
public String getLastMatchedIntent()
Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getLastMatchedIntentin interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The lastMatchedIntent.
-
getLastMatchedIntentBytes
public com.google.protobuf.ByteString getLastMatchedIntentBytes()
Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getLastMatchedIntentBytesin interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The bytes for lastMatchedIntent.
-
getDisplayName
public String getDisplayName()
Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
string display_name = 3;- Specified by:
getDisplayNamein interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public 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;- Specified by:
getDisplayNameBytesin interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The bytes for displayName.
-
getParametersCount
public int getParametersCount()
Description copied from interface:WebhookRequest.IntentInfoOrBuilderParameters 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;- Specified by:
getParametersCountin interfaceWebhookRequest.IntentInfoOrBuilder
-
containsParameters
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
containsParametersin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParameters
@Deprecated public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParameters()
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceWebhookRequest.IntentInfoOrBuilder
-
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersMapin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParametersOrDefault
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersOrDefaultin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParametersOrThrow
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersOrThrowin interfaceWebhookRequest.IntentInfoOrBuilder
-
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;- Specified by:
getConfidencein interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The confidence.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WebhookRequest.IntentInfo parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WebhookRequest.IntentInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookRequest.IntentInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public WebhookRequest.IntentInfo.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static WebhookRequest.IntentInfo.Builder newBuilder()
-
newBuilder
public static WebhookRequest.IntentInfo.Builder newBuilder(WebhookRequest.IntentInfo prototype)
-
toBuilder
public WebhookRequest.IntentInfo.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WebhookRequest.IntentInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static WebhookRequest.IntentInfo getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<WebhookRequest.IntentInfo> parser()
-
getParserForType
public com.google.protobuf.Parser<WebhookRequest.IntentInfo> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WebhookRequest.IntentInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-