Class 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 type google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo
    See Also:
    Serialized Form
    • 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:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getLastMatchedIntent

        public String getLastMatchedIntent()
         Always present. The unique identifier of the last matched
         [intent][google.cloud.dialogflow.cx.v3.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:
        getLastMatchedIntent in interface WebhookRequest.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.v3.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:
        getLastMatchedIntentBytes in interface WebhookRequest.IntentInfoOrBuilder
        Returns:
        The bytes for lastMatchedIntent.
      • getDisplayName

        public String getDisplayName()
         Always present. The display name of the last matched
         [intent][google.cloud.dialogflow.cx.v3.Intent].
         
        string display_name = 3;
        Specified by:
        getDisplayName in interface WebhookRequest.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.v3.Intent].
         
        string display_name = 3;
        Specified by:
        getDisplayNameBytes in interface WebhookRequest.IntentInfoOrBuilder
        Returns:
        The bytes for displayName.
      • getParametersCount

        public int getParametersCount()
        Description copied from interface: WebhookRequest.IntentInfoOrBuilder
         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;
        Specified by:
        getParametersCount in interface WebhookRequest.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
        Specified by:
        containsParameters in interface WebhookRequest.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
        Specified by:
        getParametersMap in interface WebhookRequest.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
        Specified by:
        getParametersOrThrow in interface WebhookRequest.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:
        getConfidence in interface WebhookRequest.IntentInfoOrBuilder
        Returns:
        The confidence.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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
      • newBuilderForType

        public WebhookRequest.IntentInfo.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public WebhookRequest.IntentInfo.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected WebhookRequest.IntentInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<WebhookRequest.IntentInfo> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public WebhookRequest.IntentInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder