google-cloud-dialogflow-v2 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c7780adc802e471f28a8c6209a8e560e7b5b81cb0f8ad4b5942befe8c327b87
4
- data.tar.gz: afa27e11bd5872f5f716797fa06693d614a29c370e4c7f13d5b721172843b76f
3
+ metadata.gz: 9cea2fe8da22ccfcf2e715b29a7c81901d743a24706898e18c5a52af16f55158
4
+ data.tar.gz: 36cfa8593169804d3982ba54628bfdd2e360f385f2c924ef45aa3b423332e35b
5
5
  SHA512:
6
- metadata.gz: b24d5643db0759e7add4e04bc08243a477abadaba964917bf618438652bf559be1cfca3137d13077e10490bfa7851936e90345c63b8321046e16215fc959704a
7
- data.tar.gz: 5723f6d65293d74b80188a9b13430c69b93c5994e9f8626d35e832e71bc05e07d03361f657c37caaec2e13ccc48682cc34af364c6085c255fdb7a5fa544c3ece
6
+ metadata.gz: 3c3c61d6f852236b58116348c1e2ecff3251e0a2e267627bd2b3d227f2a67a7efab98d86d6aa0338eb9499d7d6fd370d9679f4e04610212d87be54cbcd848f3d
7
+ data.tar.gz: f0ea1f2b3ce062afb13e18b93508803cd23076e3f724b585d1e96e4fe17cc229052e3ea2e7cbd91fde8086ea1c811428effc17a5a5f44ad66f2f9bd1708d6dd0
@@ -12,10 +12,11 @@ require 'google/cloud/dialogflow/v2/conversation_profile_pb'
12
12
  require 'google/cloud/dialogflow/v2/generator_pb'
13
13
  require 'google/cloud/dialogflow/v2/participant_pb'
14
14
  require 'google/cloud/dialogflow/v2/session_pb'
15
+ require 'google/protobuf/struct_pb'
15
16
  require 'google/protobuf/timestamp_pb'
16
17
 
17
18
 
18
- descriptor_data = "\n-google/cloud/dialogflow/v2/conversation.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/v2/conversation_profile.proto\x1a*google/cloud/dialogflow/v2/generator.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a(google/cloud/dialogflow/v2/session.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe5\x06\n\x0c\x43onversation\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x08\x12U\n\x0flifecycle_state\x18\x02 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.Conversation.LifecycleStateB\x03\xe0\x41\x03\x12S\n\x14\x63onversation_profile\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\x12N\n\x0cphone_number\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.ConversationPhoneNumberB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12[\n\x12\x63onversation_stage\x18\x07 \x01(\x0e\x32:.google.cloud.dialogflow.v2.Conversation.ConversationStageB\x03\xe0\x41\x01\"Q\n\x0eLifecycleState\x12\x1f\n\x1bLIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\r\n\tCOMPLETED\x10\x02\"h\n\x11\x43onversationStage\x12\"\n\x1e\x43ONVERSATION_STAGE_UNSPECIFIED\x10\x00\x12\x17\n\x13VIRTUAL_AGENT_STAGE\x10\x01\x12\x16\n\x12HUMAN_ASSIST_STAGE\x10\x02:\xc0\x01\xea\x41\xbc\x01\n&dialogflow.googleapis.com/Conversation\x12/projects/{project}/conversations/{conversation}\x12\x44projects/{project}/locations/{location}/conversations/{conversation}*\rconversations2\x0c\x63onversation\"\xbe\x01\n\x19\x43reateConversationRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/Conversation\x12\x43\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32(.google.cloud.dialogflow.v2.ConversationB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63onversation_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x01\n\x18ListConversationsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"u\n\x19ListConversationsResponse\x12?\n\rconversations\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x16GetConversationRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\"[\n\x1b\x43ompleteConversationRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\"\x96\x01\n\x13ListMessagesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Message\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"f\n\x14ListMessagesResponse\x12\x35\n\x08messages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"4\n\x17\x43onversationPhoneNumber\x12\x19\n\x0cphone_number\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\x9c\x02\n!SuggestConversationSummaryRequest\x12\x44\n\x0c\x63onversation\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\x12\x41\n\x0elatest_message\x18\x03 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12S\n\x13\x61ssist_query_params\x18\x05 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParametersB\x03\xe0\x41\x01\"\xf7\x03\n\"SuggestConversationSummaryResponse\x12W\n\x07summary\x18\x01 \x01(\x0b\x32\x46.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x1a\xa1\x02\n\x07Summary\x12\x0c\n\x04text\x18\x01 \x01(\t\x12o\n\rtext_sections\x18\x04 \x03(\x0b\x32X.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.TextSectionsEntry\x12\x42\n\ranswer_record\x18\x03 \x01(\tB+\xfa\x41(\n&dialogflow.googleapis.com/AnswerRecord\x12\x1e\n\x16\x62\x61seline_model_version\x18\x05 \x01(\t\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xdc\x03\n\x1fGenerateStatelessSummaryRequest\x12t\n\x16stateless_conversation\x18\x01 \x01(\x0b\x32O.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversationB\x03\xe0\x41\x02\x12R\n\x14\x63onversation_profile\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfileB\x03\xe0\x41\x02\x12\x41\n\x0elatest_message\x18\x03 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x1d\n\x10max_context_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x1a\x8c\x01\n\x13MinimalConversation\x12:\n\x08messages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.MessageB\x03\xe0\x41\x02\x12\x39\n\x06parent\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"\xad\x03\n GenerateStatelessSummaryResponse\x12U\n\x07summary\x18\x01 \x01(\x0b\x32\x44.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x1a\xdb\x01\n\x07Summary\x12\x0c\n\x04text\x18\x01 \x01(\t\x12m\n\rtext_sections\x18\x02 \x03(\x0b\x32V.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary.TextSectionsEntry\x12\x1e\n\x16\x62\x61seline_model_version\x18\x04 \x01(\t\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe6\x02\n\"GenerateStatelessSuggestionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\tgenerator\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.v2.GeneratorH\x00\x12\x18\n\x0egenerator_name\x18\x03 \x01(\tH\x00\x12R\n\x14\x63onversation_context\x18\x05 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationContextB\x03\xe0\x41\x01\x12\x45\n\x0etrigger_events\x18\x06 \x03(\x0e\x32(.google.cloud.dialogflow.v2.TriggerEventB\x03\xe0\x41\x01\x42\x14\n\x12generator_resource\"y\n#GenerateStatelessSuggestionResponse\x12R\n\x14generator_suggestion\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.v2.GeneratorSuggestionB\x03\xe0\x41\x02\"\xdf\x02\n\x16SearchKnowledgeRequest\x12\x13\n\x06parent\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x05query\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputB\x03\xe0\x41\x02\x12S\n\x14\x63onversation_profile\x18\x02 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\x12\x17\n\nsession_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x0c\x63onversation\x18\x04 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&dialogflow.googleapis.com/Conversation\x12\x41\n\x0elatest_message\x18\x05 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\"v\n\x17SearchKnowledgeResponse\x12\x42\n\x07\x61nswers\x18\x02 \x03(\x0b\x32\x31.google.cloud.dialogflow.v2.SearchKnowledgeAnswer\x12\x17\n\x0frewritten_query\x18\x03 \x01(\t\"\xf6\x02\n\x15SearchKnowledgeAnswer\x12\x0e\n\x06\x61nswer\x18\x01 \x01(\t\x12Q\n\x0b\x61nswer_type\x18\x02 \x01(\x0e\x32<.google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerType\x12V\n\x0e\x61nswer_sources\x18\x03 \x03(\x0b\x32>.google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource\x12\x15\n\ranswer_record\x18\x05 \x01(\t\x1a;\n\x0c\x41nswerSource\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x0f\n\x07snippet\x18\x03 \x01(\t\"N\n\nAnswerType\x12\x1b\n\x17\x41NSWER_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x46\x41Q\x10\x01\x12\x0e\n\nGENERATIVE\x10\x02\x12\n\n\x06INTENT\x10\x03\x32\xd3\x15\n\rConversations\x12\x8c\x02\n\x12\x43reateConversation\x12\x35.google.cloud.dialogflow.v2.CreateConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"\x94\x01\xda\x41\x13parent,conversation\x82\xd3\xe4\x93\x02x\"%/v2/{parent=projects/*}/conversations:\x0c\x63onversationZA\"1/v2/{parent=projects/*/locations/*}/conversations:\x0c\x63onversation\x12\xed\x01\n\x11ListConversations\x12\x34.google.cloud.dialogflow.v2.ListConversationsRequest\x1a\x35.google.cloud.dialogflow.v2.ListConversationsResponse\"k\xda\x41\x06parent\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/conversationsZ3\x12\x31/v2/{parent=projects/*/locations/*}/conversations\x12\xda\x01\n\x0fGetConversation\x12\x32.google.cloud.dialogflow.v2.GetConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"i\xda\x41\x04name\x82\xd3\xe4\x93\x02\\\x12%/v2/{name=projects/*/conversations/*}Z3\x12\x31/v2/{name=projects/*/locations/*/conversations/*}\x12\xfd\x01\n\x14\x43ompleteConversation\x12\x37.google.cloud.dialogflow.v2.CompleteConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"\x81\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02t\"./v2/{name=projects/*/conversations/*}:complete:\x01*Z?\":/v2/{name=projects/*/locations/*/conversations/*}:complete:\x01*\x12\xf5\x01\n\x0cListMessages\x12/.google.cloud.dialogflow.v2.ListMessagesRequest\x1a\x30.google.cloud.dialogflow.v2.ListMessagesResponse\"\x81\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02r\x12\x30/v2/{parent=projects/*/conversations/*}/messagesZ>\x12</v2/{parent=projects/*/locations/*/conversations/*}/messages\x12\xf4\x02\n\x1aSuggestConversationSummary\x12=.google.cloud.dialogflow.v2.SuggestConversationSummaryRequest\x1a>.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse\"\xd6\x01\xda\x41\x0c\x63onversation\x82\xd3\xe4\x93\x02\xc0\x01\"T/v2/{conversation=projects/*/conversations/*}/suggestions:suggestConversationSummary:\x01*Ze\"`/v2/{conversation=projects/*/locations/*/conversations/*}/suggestions:suggestConversationSummary:\x01*\x12\xdd\x02\n\x18GenerateStatelessSummary\x12;.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest\x1a<.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse\"\xc5\x01\x82\xd3\xe4\x93\x02\xbe\x01\"S/v2/{stateless_conversation.parent=projects/*}/suggestions:generateStatelessSummary:\x01*Zd\"_/v2/{stateless_conversation.parent=projects/*/locations/*}/suggestions:generateStatelessSummary:\x01*\x12\xeb\x01\n\x1bGenerateStatelessSuggestion\x12>.google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest\x1a?.google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse\"K\x82\xd3\xe4\x93\x02\x45\"@/v2/{parent=projects/*/locations/*}/statelessSuggestion:generate:\x01*\x12\xae\x03\n\x0fSearchKnowledge\x12\x32.google.cloud.dialogflow.v2.SearchKnowledgeRequest\x1a\x33.google.cloud.dialogflow.v2.SearchKnowledgeResponse\"\xb1\x02\x82\xd3\xe4\x93\x02\xaa\x02\"3/v2/{parent=projects/*}/suggestions:searchKnowledge:\x01*ZD\"?/v2/{parent=projects/*/locations/*}/suggestions:searchKnowledge:\x01*ZN\"I/v2/{conversation=projects/*/conversations/*}/suggestions:searchKnowledge:\x01*ZZ\"U/v2/{conversation=projects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9a\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x11\x43onversationProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
19
+ descriptor_data = "\n-google/cloud/dialogflow/v2/conversation.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/v2/conversation_profile.proto\x1a*google/cloud/dialogflow/v2/generator.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a(google/cloud/dialogflow/v2/session.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe5\x06\n\x0c\x43onversation\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x08\x12U\n\x0flifecycle_state\x18\x02 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.Conversation.LifecycleStateB\x03\xe0\x41\x03\x12S\n\x14\x63onversation_profile\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\x12N\n\x0cphone_number\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.ConversationPhoneNumberB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12[\n\x12\x63onversation_stage\x18\x07 \x01(\x0e\x32:.google.cloud.dialogflow.v2.Conversation.ConversationStageB\x03\xe0\x41\x01\"Q\n\x0eLifecycleState\x12\x1f\n\x1bLIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\r\n\tCOMPLETED\x10\x02\"h\n\x11\x43onversationStage\x12\"\n\x1e\x43ONVERSATION_STAGE_UNSPECIFIED\x10\x00\x12\x17\n\x13VIRTUAL_AGENT_STAGE\x10\x01\x12\x16\n\x12HUMAN_ASSIST_STAGE\x10\x02:\xc0\x01\xea\x41\xbc\x01\n&dialogflow.googleapis.com/Conversation\x12/projects/{project}/conversations/{conversation}\x12\x44projects/{project}/locations/{location}/conversations/{conversation}*\rconversations2\x0c\x63onversation\"\xbe\x01\n\x19\x43reateConversationRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/Conversation\x12\x43\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32(.google.cloud.dialogflow.v2.ConversationB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63onversation_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x01\n\x18ListConversationsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"u\n\x19ListConversationsResponse\x12?\n\rconversations\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x16GetConversationRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\"[\n\x1b\x43ompleteConversationRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\"\x96\x01\n\x13ListMessagesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Message\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"f\n\x14ListMessagesResponse\x12\x35\n\x08messages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"4\n\x17\x43onversationPhoneNumber\x12\x19\n\x0cphone_number\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\x9c\x02\n!SuggestConversationSummaryRequest\x12\x44\n\x0c\x63onversation\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\x12\x41\n\x0elatest_message\x18\x03 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12S\n\x13\x61ssist_query_params\x18\x05 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParametersB\x03\xe0\x41\x01\"\xf7\x03\n\"SuggestConversationSummaryResponse\x12W\n\x07summary\x18\x01 \x01(\x0b\x32\x46.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x1a\xa1\x02\n\x07Summary\x12\x0c\n\x04text\x18\x01 \x01(\t\x12o\n\rtext_sections\x18\x04 \x03(\x0b\x32X.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.TextSectionsEntry\x12\x42\n\ranswer_record\x18\x03 \x01(\tB+\xfa\x41(\n&dialogflow.googleapis.com/AnswerRecord\x12\x1e\n\x16\x62\x61seline_model_version\x18\x05 \x01(\t\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xdc\x03\n\x1fGenerateStatelessSummaryRequest\x12t\n\x16stateless_conversation\x18\x01 \x01(\x0b\x32O.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversationB\x03\xe0\x41\x02\x12R\n\x14\x63onversation_profile\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfileB\x03\xe0\x41\x02\x12\x41\n\x0elatest_message\x18\x03 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x1d\n\x10max_context_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x1a\x8c\x01\n\x13MinimalConversation\x12:\n\x08messages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.MessageB\x03\xe0\x41\x02\x12\x39\n\x06parent\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"\xad\x03\n GenerateStatelessSummaryResponse\x12U\n\x07summary\x18\x01 \x01(\x0b\x32\x44.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x1a\xdb\x01\n\x07Summary\x12\x0c\n\x04text\x18\x01 \x01(\t\x12m\n\rtext_sections\x18\x02 \x03(\x0b\x32V.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary.TextSectionsEntry\x12\x1e\n\x16\x62\x61seline_model_version\x18\x04 \x01(\t\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe6\x02\n\"GenerateStatelessSuggestionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\tgenerator\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.v2.GeneratorH\x00\x12\x18\n\x0egenerator_name\x18\x03 \x01(\tH\x00\x12R\n\x14\x63onversation_context\x18\x05 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationContextB\x03\xe0\x41\x01\x12\x45\n\x0etrigger_events\x18\x06 \x03(\x0e\x32(.google.cloud.dialogflow.v2.TriggerEventB\x03\xe0\x41\x01\x42\x14\n\x12generator_resource\"y\n#GenerateStatelessSuggestionResponse\x12R\n\x14generator_suggestion\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.v2.GeneratorSuggestionB\x03\xe0\x41\x02\"\xe3\x11\n\x16SearchKnowledgeRequest\x12\x13\n\x06parent\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x05query\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputB\x03\xe0\x41\x02\x12S\n\x14\x63onversation_profile\x18\x02 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\x12\x17\n\nsession_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x0c\x63onversation\x18\x04 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&dialogflow.googleapis.com/Conversation\x12\x41\n\x0elatest_message\x18\x05 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12Y\n\x0cquery_source\x18\x07 \x01(\x0e\x32>.google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySourceB\x03\xe0\x41\x01\x12\x37\n\x11\x65nd_user_metadata\x18\t \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12[\n\rsearch_config\x18\x0b \x01(\x0b\x32?.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfigB\x03\xe0\x41\x01\x12\x19\n\x0c\x65xact_search\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x1a\xa2\x0c\n\x0cSearchConfig\x12\x64\n\x0b\x62oost_specs\x18\x01 \x03(\x0b\x32J.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecsB\x03\xe0\x41\x01\x12\x66\n\x0c\x66ilter_specs\x18\x02 \x03(\x0b\x32K.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecsB\x03\xe0\x41\x01\x1a\x85\n\n\nBoostSpecs\x12\x45\n\x0b\x64\x61ta_stores\x18\x01 \x03(\tB0\xe0\x41\x01\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12g\n\x04spec\x18\x02 \x03(\x0b\x32T.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\x03\xe0\x41\x01\x1a\xc6\x08\n\tBoostSpec\x12\x8b\x01\n\x15\x63ondition_boost_specs\x18\x01 \x03(\x0b\x32g.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\x03\xe0\x41\x01\x1a\xaa\x07\n\x12\x43onditionBoostSpec\x12\x16\n\tcondition\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x62oost\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x99\x01\n\x12\x62oost_control_spec\x18\x04 \x01(\x0b\x32x.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpecB\x03\xe0\x41\x01\x1a\xcb\x05\n\x10\x42oostControlSpec\x12\x17\n\nfield_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\xa4\x01\n\x0e\x61ttribute_type\x18\x02 \x01(\x0e\x32\x86\x01.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeTypeB\x03\xe0\x41\x01\x12\xac\x01\n\x12interpolation_type\x18\x03 \x01(\x0e\x32\x8a\x01.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationTypeB\x03\xe0\x41\x01\x12\xa3\x01\n\x0e\x63ontrol_points\x18\x04 \x03(\x0b\x32\x85\x01.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPointB\x03\xe0\x41\x01\x1a\x0e\n\x0c\x43ontrolPoint\"M\n\rAttributeType\x12\x1e\n\x1a\x41TTRIBUTE_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tNUMERICAL\x10\x01\x12\r\n\tFRESHNESS\x10\x02\"C\n\x11InterpolationType\x12\"\n\x1eINTERPOLATION_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06LINEAR\x10\x01\x1a<\n\x0b\x46ilterSpecs\x12\x18\n\x0b\x64\x61ta_stores\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\"Q\n\x0bQuerySource\x12\x1c\n\x18QUERY_SOURCE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x41GENT_QUERY\x10\x01\x12\x13\n\x0fSUGGESTED_QUERY\x10\x02\"v\n\x17SearchKnowledgeResponse\x12\x42\n\x07\x61nswers\x18\x02 \x03(\x0b\x32\x31.google.cloud.dialogflow.v2.SearchKnowledgeAnswer\x12\x17\n\x0frewritten_query\x18\x03 \x01(\t\"\xa1\x03\n\x15SearchKnowledgeAnswer\x12\x0e\n\x06\x61nswer\x18\x01 \x01(\t\x12Q\n\x0b\x61nswer_type\x18\x02 \x01(\x0e\x32<.google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerType\x12V\n\x0e\x61nswer_sources\x18\x03 \x03(\x0b\x32>.google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource\x12\x15\n\ranswer_record\x18\x05 \x01(\t\x1a\x66\n\x0c\x41nswerSource\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x0f\n\x07snippet\x18\x03 \x01(\t\x12)\n\x08metadata\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\"N\n\nAnswerType\x12\x1b\n\x17\x41NSWER_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x46\x41Q\x10\x01\x12\x0e\n\nGENERATIVE\x10\x02\x12\n\n\x06INTENT\x10\x03\x32\xd3\x15\n\rConversations\x12\x8c\x02\n\x12\x43reateConversation\x12\x35.google.cloud.dialogflow.v2.CreateConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"\x94\x01\xda\x41\x13parent,conversation\x82\xd3\xe4\x93\x02x\"%/v2/{parent=projects/*}/conversations:\x0c\x63onversationZA\"1/v2/{parent=projects/*/locations/*}/conversations:\x0c\x63onversation\x12\xed\x01\n\x11ListConversations\x12\x34.google.cloud.dialogflow.v2.ListConversationsRequest\x1a\x35.google.cloud.dialogflow.v2.ListConversationsResponse\"k\xda\x41\x06parent\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/conversationsZ3\x12\x31/v2/{parent=projects/*/locations/*}/conversations\x12\xda\x01\n\x0fGetConversation\x12\x32.google.cloud.dialogflow.v2.GetConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"i\xda\x41\x04name\x82\xd3\xe4\x93\x02\\\x12%/v2/{name=projects/*/conversations/*}Z3\x12\x31/v2/{name=projects/*/locations/*/conversations/*}\x12\xfd\x01\n\x14\x43ompleteConversation\x12\x37.google.cloud.dialogflow.v2.CompleteConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"\x81\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02t\"./v2/{name=projects/*/conversations/*}:complete:\x01*Z?\":/v2/{name=projects/*/locations/*/conversations/*}:complete:\x01*\x12\xf5\x01\n\x0cListMessages\x12/.google.cloud.dialogflow.v2.ListMessagesRequest\x1a\x30.google.cloud.dialogflow.v2.ListMessagesResponse\"\x81\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02r\x12\x30/v2/{parent=projects/*/conversations/*}/messagesZ>\x12</v2/{parent=projects/*/locations/*/conversations/*}/messages\x12\xf4\x02\n\x1aSuggestConversationSummary\x12=.google.cloud.dialogflow.v2.SuggestConversationSummaryRequest\x1a>.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse\"\xd6\x01\xda\x41\x0c\x63onversation\x82\xd3\xe4\x93\x02\xc0\x01\"T/v2/{conversation=projects/*/conversations/*}/suggestions:suggestConversationSummary:\x01*Ze\"`/v2/{conversation=projects/*/locations/*/conversations/*}/suggestions:suggestConversationSummary:\x01*\x12\xdd\x02\n\x18GenerateStatelessSummary\x12;.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest\x1a<.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse\"\xc5\x01\x82\xd3\xe4\x93\x02\xbe\x01\"S/v2/{stateless_conversation.parent=projects/*}/suggestions:generateStatelessSummary:\x01*Zd\"_/v2/{stateless_conversation.parent=projects/*/locations/*}/suggestions:generateStatelessSummary:\x01*\x12\xeb\x01\n\x1bGenerateStatelessSuggestion\x12>.google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest\x1a?.google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse\"K\x82\xd3\xe4\x93\x02\x45\"@/v2/{parent=projects/*/locations/*}/statelessSuggestion:generate:\x01*\x12\xae\x03\n\x0fSearchKnowledge\x12\x32.google.cloud.dialogflow.v2.SearchKnowledgeRequest\x1a\x33.google.cloud.dialogflow.v2.SearchKnowledgeResponse\"\xb1\x02\x82\xd3\xe4\x93\x02\xaa\x02\"3/v2/{parent=projects/*}/suggestions:searchKnowledge:\x01*ZD\"?/v2/{parent=projects/*/locations/*}/suggestions:searchKnowledge:\x01*ZN\"I/v2/{conversation=projects/*/conversations/*}/suggestions:searchKnowledge:\x01*ZZ\"U/v2/{conversation=projects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xe0\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x11\x43onversationProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41\xc5\x01\n(discoveryengine.googleapis.com/DataStore\x12Xprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}\x12?projects/{project}/locations/{location}/dataStores/{data_store}b\x06proto3"
19
20
 
20
21
  pool = Google::Protobuf::DescriptorPool.generated_pool
21
22
 
@@ -35,6 +36,7 @@ rescue TypeError
35
36
  ["google.cloud.dialogflow.v2.ConversationProfile", "google/cloud/dialogflow/v2/conversation_profile.proto"],
36
37
  ["google.cloud.dialogflow.v2.Generator", "google/cloud/dialogflow/v2/generator.proto"],
37
38
  ["google.cloud.dialogflow.v2.TextInput", "google/cloud/dialogflow/v2/session.proto"],
39
+ ["google.protobuf.Struct", "google/protobuf/struct.proto"],
38
40
  ]
39
41
  imports.each do |type_name, expected_filename|
40
42
  import_file = pool.lookup(type_name).file_descriptor
@@ -71,6 +73,16 @@ module Google
71
73
  GenerateStatelessSuggestionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest").msgclass
72
74
  GenerateStatelessSuggestionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse").msgclass
73
75
  SearchKnowledgeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest").msgclass
76
+ SearchKnowledgeRequest::SearchConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig").msgclass
77
+ SearchKnowledgeRequest::SearchConfig::BoostSpecs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs").msgclass
78
+ SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec").msgclass
79
+ SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec").msgclass
80
+ SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec").msgclass
81
+ SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint").msgclass
82
+ SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec::AttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType").enummodule
83
+ SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec::InterpolationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType").enummodule
84
+ SearchKnowledgeRequest::SearchConfig::FilterSpecs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecs").msgclass
85
+ SearchKnowledgeRequest::QuerySource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource").enummodule
74
86
  SearchKnowledgeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeResponse").msgclass
75
87
  SearchKnowledgeAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeAnswer").msgclass
76
88
  SearchKnowledgeAnswer::AnswerSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource").msgclass
@@ -232,9 +232,9 @@ module Google
232
232
  # Google. Only set it if you cannot wait for the response to return a
233
233
  # auto-generated one to you.
234
234
  #
235
- # The conversation ID must be compliant with the regression fomula
235
+ # The conversation ID must be compliant with the regression formula
236
236
  # `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
237
- # If the field is provided, the caller is resposible for
237
+ # If the field is provided, the caller is responsible for
238
238
  # 1. the uniqueness of the ID, otherwise the request will be rejected.
239
239
  # 2. the consistency for whether to use custom ID or not under a project to
240
240
  # better ensure uniqueness.
@@ -1015,7 +1015,7 @@ module Google
1015
1015
  # @param options [::Gapic::CallOptions, ::Hash]
1016
1016
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1017
1017
  #
1018
- # @overload search_knowledge(parent: nil, query: nil, conversation_profile: nil, session_id: nil, conversation: nil, latest_message: nil)
1018
+ # @overload search_knowledge(parent: nil, query: nil, conversation_profile: nil, session_id: nil, conversation: nil, latest_message: nil, query_source: nil, end_user_metadata: nil, search_config: nil, exact_search: nil)
1019
1019
  # Pass arguments to `search_knowledge` via keyword arguments. Note that at
1020
1020
  # least one keyword argument is required. To specify no parameters, or to keep all
1021
1021
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1047,6 +1047,30 @@ module Google
1047
1047
  # triggered.
1048
1048
  # Format: `projects/<Project ID>/locations/<Location
1049
1049
  # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
1050
+ # @param query_source [::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::QuerySource]
1051
+ # Optional. The source of the query in the request.
1052
+ # @param end_user_metadata [::Google::Protobuf::Struct, ::Hash]
1053
+ # Optional. Information about the end-user to improve the relevance and
1054
+ # accuracy of generative answers.
1055
+ #
1056
+ # This will be interpreted and used by a language model, so, for good
1057
+ # results, the data should be self-descriptive, and in a simple structure.
1058
+ #
1059
+ # Example:
1060
+ #
1061
+ # ```json
1062
+ # {
1063
+ # "subscription plan": "Business Premium Plus",
1064
+ # "devices owned": [
1065
+ # \\{"model": "Google Pixel 7"},
1066
+ # \\{"model": "Google Pixel Tablet"}
1067
+ # ]
1068
+ # }
1069
+ # ```
1070
+ # @param search_config [::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig, ::Hash]
1071
+ # Optional. Configuration specific to search queries with data stores.
1072
+ # @param exact_search [::Boolean]
1073
+ # Optional. Whether to search the query exactly without query rewrite.
1050
1074
  #
1051
1075
  # @yield [response, operation] Access the result along with the RPC operation
1052
1076
  # @yieldparam response [::Google::Cloud::Dialogflow::V2::SearchKnowledgeResponse]
@@ -202,6 +202,51 @@ module Google
202
202
  resource.call(**args)
203
203
  end
204
204
 
205
+ ##
206
+ # Create a fully-qualified DataStore resource string.
207
+ #
208
+ # @overload data_store_path(project:, location:, collection:, data_store:)
209
+ # The resource will be in the following format:
210
+ #
211
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
212
+ #
213
+ # @param project [String]
214
+ # @param location [String]
215
+ # @param collection [String]
216
+ # @param data_store [String]
217
+ #
218
+ # @overload data_store_path(project:, location:, data_store:)
219
+ # The resource will be in the following format:
220
+ #
221
+ # `projects/{project}/locations/{location}/dataStores/{data_store}`
222
+ #
223
+ # @param project [String]
224
+ # @param location [String]
225
+ # @param data_store [String]
226
+ #
227
+ # @return [::String]
228
+ def data_store_path **args
229
+ resources = {
230
+ "collection:data_store:location:project" => (proc do |project:, location:, collection:, data_store:|
231
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
232
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
233
+ raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
234
+
235
+ "projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}"
236
+ end),
237
+ "data_store:location:project" => (proc do |project:, location:, data_store:|
238
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
239
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
240
+
241
+ "projects/#{project}/locations/#{location}/dataStores/#{data_store}"
242
+ end)
243
+ }
244
+
245
+ resource = resources[args.keys.sort.join(":")]
246
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
247
+ resource.call(**args)
248
+ end
249
+
205
250
  ##
206
251
  # Create a fully-qualified Document resource string.
207
252
  #
@@ -226,9 +226,9 @@ module Google
226
226
  # Google. Only set it if you cannot wait for the response to return a
227
227
  # auto-generated one to you.
228
228
  #
229
- # The conversation ID must be compliant with the regression fomula
229
+ # The conversation ID must be compliant with the regression formula
230
230
  # `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
231
- # If the field is provided, the caller is resposible for
231
+ # If the field is provided, the caller is responsible for
232
232
  # 1. the uniqueness of the ID, otherwise the request will be rejected.
233
233
  # 2. the consistency for whether to use custom ID or not under a project to
234
234
  # better ensure uniqueness.
@@ -953,7 +953,7 @@ module Google
953
953
  # @param options [::Gapic::CallOptions, ::Hash]
954
954
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
955
955
  #
956
- # @overload search_knowledge(parent: nil, query: nil, conversation_profile: nil, session_id: nil, conversation: nil, latest_message: nil)
956
+ # @overload search_knowledge(parent: nil, query: nil, conversation_profile: nil, session_id: nil, conversation: nil, latest_message: nil, query_source: nil, end_user_metadata: nil, search_config: nil, exact_search: nil)
957
957
  # Pass arguments to `search_knowledge` via keyword arguments. Note that at
958
958
  # least one keyword argument is required. To specify no parameters, or to keep all
959
959
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -985,6 +985,30 @@ module Google
985
985
  # triggered.
986
986
  # Format: `projects/<Project ID>/locations/<Location
987
987
  # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
988
+ # @param query_source [::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::QuerySource]
989
+ # Optional. The source of the query in the request.
990
+ # @param end_user_metadata [::Google::Protobuf::Struct, ::Hash]
991
+ # Optional. Information about the end-user to improve the relevance and
992
+ # accuracy of generative answers.
993
+ #
994
+ # This will be interpreted and used by a language model, so, for good
995
+ # results, the data should be self-descriptive, and in a simple structure.
996
+ #
997
+ # Example:
998
+ #
999
+ # ```json
1000
+ # {
1001
+ # "subscription plan": "Business Premium Plus",
1002
+ # "devices owned": [
1003
+ # \\{"model": "Google Pixel 7"},
1004
+ # \\{"model": "Google Pixel Tablet"}
1005
+ # ]
1006
+ # }
1007
+ # ```
1008
+ # @param search_config [::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig, ::Hash]
1009
+ # Optional. Configuration specific to search queries with data stores.
1010
+ # @param exact_search [::Boolean]
1011
+ # Optional. Whether to search the query exactly without query rewrite.
988
1012
  # @yield [result, operation] Access the result along with the TransportOperation object
989
1013
  # @yieldparam result [::Google::Cloud::Dialogflow::V2::SearchKnowledgeResponse]
990
1014
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "1.3.0"
24
+ VERSION = "1.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -116,9 +116,9 @@ module Google
116
116
  # Google. Only set it if you cannot wait for the response to return a
117
117
  # auto-generated one to you.
118
118
  #
119
- # The conversation ID must be compliant with the regression fomula
119
+ # The conversation ID must be compliant with the regression formula
120
120
  # `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
121
- # If the field is provided, the caller is resposible for
121
+ # If the field is provided, the caller is responsible for
122
122
  # 1. the uniqueness of the ID, otherwise the request will be rejected.
123
123
  # 2. the consistency for whether to use custom ID or not under a project to
124
124
  # better ensure uniqueness.
@@ -496,9 +496,223 @@ module Google
496
496
  # triggered.
497
497
  # Format: `projects/<Project ID>/locations/<Location
498
498
  # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
499
+ # @!attribute [rw] query_source
500
+ # @return [::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::QuerySource]
501
+ # Optional. The source of the query in the request.
502
+ # @!attribute [rw] end_user_metadata
503
+ # @return [::Google::Protobuf::Struct]
504
+ # Optional. Information about the end-user to improve the relevance and
505
+ # accuracy of generative answers.
506
+ #
507
+ # This will be interpreted and used by a language model, so, for good
508
+ # results, the data should be self-descriptive, and in a simple structure.
509
+ #
510
+ # Example:
511
+ #
512
+ # ```json
513
+ # {
514
+ # "subscription plan": "Business Premium Plus",
515
+ # "devices owned": [
516
+ # \\{"model": "Google Pixel 7"},
517
+ # \\{"model": "Google Pixel Tablet"}
518
+ # ]
519
+ # }
520
+ # ```
521
+ # @!attribute [rw] search_config
522
+ # @return [::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig]
523
+ # Optional. Configuration specific to search queries with data stores.
524
+ # @!attribute [rw] exact_search
525
+ # @return [::Boolean]
526
+ # Optional. Whether to search the query exactly without query rewrite.
499
527
  class SearchKnowledgeRequest
500
528
  include ::Google::Protobuf::MessageExts
501
529
  extend ::Google::Protobuf::MessageExts::ClassMethods
530
+
531
+ # Configuration specific to search queries with data stores.
532
+ # @!attribute [rw] boost_specs
533
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::BoostSpecs>]
534
+ # Optional. Boost specifications for data stores.
535
+ # @!attribute [rw] filter_specs
536
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::FilterSpecs>]
537
+ # Optional. Filter specification for data store queries.
538
+ class SearchConfig
539
+ include ::Google::Protobuf::MessageExts
540
+ extend ::Google::Protobuf::MessageExts::ClassMethods
541
+
542
+ # Boost specifications for data stores.
543
+ # @!attribute [rw] data_stores
544
+ # @return [::Array<::String>]
545
+ # Optional. Data Stores where the boosting configuration is applied. The
546
+ # full names of the referenced data stores. Formats:
547
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
548
+ # `projects/{project}/locations/{location}/dataStores/{data_store}`
549
+ # @!attribute [rw] spec
550
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec>]
551
+ # Optional. A list of boosting specifications.
552
+ class BoostSpecs
553
+ include ::Google::Protobuf::MessageExts
554
+ extend ::Google::Protobuf::MessageExts::ClassMethods
555
+
556
+ # Boost specification to boost certain documents.
557
+ # A copy of google.cloud.discoveryengine.v1main.BoostSpec, field
558
+ # documentation is available at
559
+ # https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/BoostSpec
560
+ # @!attribute [rw] condition_boost_specs
561
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec>]
562
+ # Optional. Condition boost specifications. If a document matches
563
+ # multiple conditions in the specifictions, boost scores from these
564
+ # specifications are all applied and combined in a non-linear way.
565
+ # Maximum number of specifications is 20.
566
+ class BoostSpec
567
+ include ::Google::Protobuf::MessageExts
568
+ extend ::Google::Protobuf::MessageExts::ClassMethods
569
+
570
+ # Boost applies to documents which match a condition.
571
+ # @!attribute [rw] condition
572
+ # @return [::String]
573
+ # Optional. An expression which specifies a boost condition. The
574
+ # syntax and supported fields are the same as a filter expression.
575
+ # Examples:
576
+ #
577
+ # * To boost documents with document ID "doc_1" or "doc_2", and
578
+ # color
579
+ # "Red" or "Blue":
580
+ # * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
581
+ # @!attribute [rw] boost
582
+ # @return [::Float]
583
+ # Optional. Strength of the condition boost, which should be in [-1,
584
+ # 1]. Negative boost means demotion. Default is 0.0.
585
+ #
586
+ # Setting to 1.0 gives the document a big promotion. However, it does
587
+ # not necessarily mean that the boosted document will be the top
588
+ # result at all times, nor that other documents will be excluded.
589
+ # Results could still be shown even when none of them matches the
590
+ # condition. And results that are significantly more relevant to the
591
+ # search query can still trump your heavily favored but irrelevant
592
+ # documents.
593
+ #
594
+ # Setting to -1.0 gives the document a big demotion. However, results
595
+ # that are deeply relevant might still be shown. The document will
596
+ # have an upstream battle to get a fairly high ranking, but it is not
597
+ # blocked out completely.
598
+ #
599
+ # Setting to 0.0 means no boost applied. The boosting condition is
600
+ # ignored.
601
+ # @!attribute [rw] boost_control_spec
602
+ # @return [::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec]
603
+ # Optional. Complex specification for custom ranking based on
604
+ # customer defined attribute value.
605
+ class ConditionBoostSpec
606
+ include ::Google::Protobuf::MessageExts
607
+ extend ::Google::Protobuf::MessageExts::ClassMethods
608
+
609
+ # Specification for custom ranking based on customer specified
610
+ # attribute
611
+ # value. It provides more controls for customized ranking than the
612
+ # simple (condition, boost) combination above.
613
+ # @!attribute [rw] field_name
614
+ # @return [::String]
615
+ # Optional. The name of the field whose value will be used to
616
+ # determine the boost amount.
617
+ # @!attribute [rw] attribute_type
618
+ # @return [::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec::AttributeType]
619
+ # Optional. The attribute type to be used to determine the boost
620
+ # amount. The attribute value can be derived from the field value
621
+ # of the specified field_name. In the case of numerical it is
622
+ # straightforward i.e. attribute_value = numerical_field_value. In
623
+ # the case of freshness however, attribute_value = (time.now() -
624
+ # datetime_field_value).
625
+ # @!attribute [rw] interpolation_type
626
+ # @return [::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec::InterpolationType]
627
+ # Optional. The interpolation type to be applied to connect the
628
+ # control points listed below.
629
+ # @!attribute [rw] control_points
630
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint>]
631
+ # Optional. The control points used to define the curve. The
632
+ # monotonic function (defined through the interpolation_type above)
633
+ # passes through the control points listed here.
634
+ class BoostControlSpec
635
+ include ::Google::Protobuf::MessageExts
636
+ extend ::Google::Protobuf::MessageExts::ClassMethods
637
+
638
+ # The control points used to define the curve. The curve defined
639
+ # through these control points can only be monotonically increasing
640
+ # or decreasing(constant values are acceptable).
641
+ class ControlPoint
642
+ include ::Google::Protobuf::MessageExts
643
+ extend ::Google::Protobuf::MessageExts::ClassMethods
644
+ end
645
+
646
+ # The attribute(or function) for which the custom ranking is to be
647
+ # applied.
648
+ module AttributeType
649
+ # Unspecified AttributeType.
650
+ ATTRIBUTE_TYPE_UNSPECIFIED = 0
651
+
652
+ # The value of the numerical field will be used to dynamically
653
+ # update the boost amount. In this case, the attribute_value (the
654
+ # x value) of the control point will be the actual value of the
655
+ # numerical field for which the boost_amount is specified.
656
+ NUMERICAL = 1
657
+
658
+ # For the freshness use case the attribute value will be the
659
+ # duration between the current time and the date in the datetime
660
+ # field specified. The value must be formatted as an XSD
661
+ # `dayTimeDuration` value (a restricted subset of an ISO 8601
662
+ # duration value). The pattern for this is:
663
+ # `[nD][T[nH][nM][nS]]`. E.g. `5D`, `3DT12H30M`, `T24H`.
664
+ FRESHNESS = 2
665
+ end
666
+
667
+ # The interpolation type to be applied. Default will be linear
668
+ # (Piecewise Linear).
669
+ module InterpolationType
670
+ # Interpolation type is unspecified. In this case, it defaults to
671
+ # Linear.
672
+ INTERPOLATION_TYPE_UNSPECIFIED = 0
673
+
674
+ # Piecewise linear interpolation will be applied.
675
+ LINEAR = 1
676
+ end
677
+ end
678
+ end
679
+ end
680
+ end
681
+
682
+ # Filter specification for data store queries.
683
+ # @!attribute [rw] data_stores
684
+ # @return [::Array<::String>]
685
+ # Optional. The data store where the filter configuration is applied.
686
+ # Full resource name of data store, such as
687
+ # projects/\\{project}/locations/\\{location}/collections/\\{collectionId}/
688
+ # dataStores/\\{dataStoreId}.
689
+ # @!attribute [rw] filter
690
+ # @return [::String]
691
+ # Optional. The filter expression to be applied.
692
+ # Expression syntax is documented at
693
+ # https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
694
+ class FilterSpecs
695
+ include ::Google::Protobuf::MessageExts
696
+ extend ::Google::Protobuf::MessageExts::ClassMethods
697
+ end
698
+ end
699
+
700
+ # The source of the query. We use QuerySource to distinguish queries directly
701
+ # entered by agents and suggested queries from
702
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_knowledge_assist Participants.SuggestKnowledgeAssist}.
703
+ # If SUGGESTED_QUERY source is specified, we will treat it as a continuation
704
+ # of a SuggestKnowledgeAssist call.
705
+ module QuerySource
706
+ # Unknown query source.
707
+ QUERY_SOURCE_UNSPECIFIED = 0
708
+
709
+ # The query is from agents.
710
+ AGENT_QUERY = 1
711
+
712
+ # The query is a suggested query from
713
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_knowledge_assist Participants.SuggestKnowledgeAssist}.
714
+ SUGGESTED_QUERY = 2
715
+ end
502
716
  end
503
717
 
504
718
  # The response message for
@@ -545,6 +759,9 @@ module Google
545
759
  # @!attribute [rw] snippet
546
760
  # @return [::String]
547
761
  # The relevant snippet of the article.
762
+ # @!attribute [rw] metadata
763
+ # @return [::Google::Protobuf::Struct]
764
+ # Metadata associated with the article.
548
765
  class AnswerSource
549
766
  include ::Google::Protobuf::MessageExts
550
767
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -165,7 +165,6 @@ module Google
165
165
 
166
166
  # Providing examples in the generator (i.e. building a few-shot generator)
167
167
  # helps convey the desired format of the LLM response.
168
- # NEXT_ID: 10
169
168
  # @!attribute [rw] conversation_context
170
169
  # @return [::Google::Cloud::Dialogflow::V2::ConversationContext]
171
170
  # Optional. Conversation transcripts.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC