Class WebhookRequest.IntentInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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.GeneratedMessage implements WebhookRequest.IntentInfoOrBuilder
 Represents intent information communicated to the webhook.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo
See Also:
  • Field Details

    • LAST_MATCHED_INTENT_FIELD_NUMBER

      public static final int LAST_MATCHED_INTENT_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • PARAMETERS_FIELD_NUMBER

      public static final int PARAMETERS_FIELD_NUMBER
      See Also:
    • CONFIDENCE_FIELD_NUMBER

      public static final int CONFIDENCE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

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

      public String getLastMatchedIntent()
       Always present. The unique identifier of the last matched
       [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      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.v3beta1.Intent].
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
      Specified by:
      containsParameters in interface WebhookRequest.IntentInfoOrBuilder
    • getParameters

      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface WebhookRequest.IntentInfoOrBuilder
    • 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:
      getParametersMap in interface WebhookRequest.IntentInfoOrBuilder
    • getParametersOrDefault

       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:
      getParametersOrDefault 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.v3beta1.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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

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

      public static WebhookRequest.IntentInfo.Builder newBuilder()
    • newBuilder

      public static WebhookRequest.IntentInfo.Builder newBuilder(WebhookRequest.IntentInfo prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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