google-cloud-dialogflow-v2 0.27.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/agents/client.rb +10 -1
  3. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +10 -1
  4. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +176 -0
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +75 -0
  6. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -1
  7. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +10 -1
  8. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +126 -0
  9. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +36 -0
  10. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
  11. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +10 -1
  12. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +100 -0
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +10 -1
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +10 -1
  15. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +105 -0
  16. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +75 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +10 -1
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +10 -1
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +187 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +75 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +8 -1
  22. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -1
  23. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +10 -1
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +10 -1
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +130 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +75 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +2 -0
  28. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +127 -1
  29. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +230 -0
  30. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +84 -0
  31. data/lib/google/cloud/dialogflow/v2/documents/client.rb +10 -1
  32. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +10 -1
  33. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +174 -0
  34. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +75 -0
  35. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +10 -1
  36. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +10 -1
  37. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +199 -0
  38. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +75 -0
  39. data/lib/google/cloud/dialogflow/v2/environments/client.rb +10 -1
  40. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +104 -0
  41. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +10 -1
  42. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +32 -0
  43. data/lib/google/cloud/dialogflow/v2/intents/client.rb +10 -1
  44. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +10 -1
  45. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +130 -0
  46. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +75 -0
  47. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +10 -1
  48. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +84 -0
  49. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +4 -1
  50. data/lib/google/cloud/dialogflow/v2/participants/client.rb +13 -2
  51. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +135 -1
  52. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +10 -1
  53. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +84 -0
  54. data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -1
  55. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +10 -1
  56. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +16 -0
  57. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  58. data/lib/google/cloud/dialogflow/v2/versions/client.rb +10 -1
  59. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +84 -0
  60. data/proto_docs/google/api/field_behavior.rb +14 -0
  61. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +25 -0
  62. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -0
  63. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +99 -0
  64. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +26 -1
  65. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +53 -1
  66. data/proto_docs/google/cloud/dialogflow/v2/session.rb +4 -1
  67. metadata +5 -5
@@ -19,7 +19,7 @@ require 'google/rpc/status_pb'
19
19
  require 'google/type/latlng_pb'
20
20
 
21
21
 
22
- descriptor_data = "\n(google/cloud/dialogflow/v2/session.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-google/cloud/dialogflow/v2/audio_config.proto\x1a(google/cloud/dialogflow/v2/context.proto\x1a\'google/cloud/dialogflow/v2/intent.proto\x1a\x34google/cloud/dialogflow/v2/session_entity_type.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\x1a\x18google/type/latlng.proto\"\xf5\x02\n\x13\x44\x65tectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x41\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12J\n\x13output_audio_config\x18\x04 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x05 \x01(\x0c\"\xf8\x01\n\x14\x44\x65tectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12=\n\x0cquery_result\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x04 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\"\x9f\x04\n\x0fQueryParameters\x12\x11\n\ttime_zone\x18\x01 \x01(\t\x12)\n\x0cgeo_location\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\x12\x35\n\x08\x63ontexts\x18\x03 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x16\n\x0ereset_contexts\x18\x04 \x01(\x08\x12K\n\x14session_entity_types\x18\x05 \x03(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityType\x12(\n\x07payload\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x65\n!sentiment_analysis_request_config\x18\n \x01(\x0b\x32:.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig\x12X\n\x0fwebhook_headers\x18\x0e \x03(\x0b\x32?.google.cloud.dialogflow.v2.QueryParameters.WebhookHeadersEntry\x12\x10\n\x08platform\x18\x12 \x01(\t\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcb\x01\n\nQueryInput\x12\x44\n\x0c\x61udio_config\x18\x01 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigH\x00\x12\x35\n\x04text\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputH\x00\x12\x37\n\x05\x65vent\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EventInputH\x00\x42\x07\n\x05input\"\xae\x05\n\x0bQueryResult\x12\x12\n\nquery_text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12%\n\x1dspeech_recognition_confidence\x18\x02 \x01(\x02\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t\x12+\n\nparameters\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12#\n\x1b\x61ll_required_params_present\x18\x05 \x01(\x08\x12\x1c\n\x14\x63\x61ncels_slot_filling\x18\x15 \x01(\x08\x12\x18\n\x10\x66ulfillment_text\x18\x06 \x01(\t\x12H\n\x14\x66ulfillment_messages\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.Message\x12\x16\n\x0ewebhook_source\x18\x08 \x01(\t\x12\x30\n\x0fwebhook_payload\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12<\n\x0foutput_contexts\x18\n \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x32\n\x06intent\x18\x0b \x01(\x0b\x32\".google.cloud.dialogflow.v2.Intent\x12#\n\x1bintent_detection_confidence\x18\x0c \x01(\x02\x12\x30\n\x0f\x64iagnostic_info\x18\x0e \x01(\x0b\x32\x17.google.protobuf.Struct\x12V\n\x19sentiment_analysis_result\x18\x11 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SentimentAnalysisResult\"\xbb\x03\n\x1cStreamingDetectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x41\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12\x1c\n\x10single_utterance\x18\x04 \x01(\x08\x42\x02\x18\x01\x12J\n\x13output_audio_config\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x06 \x01(\x0c\x12\x1d\n\x15\x65nable_debugging_info\x18\x08 \x01(\x08\"\xf8\x06\n\x1e\x43loudConversationDebuggingInfo\x12\x19\n\x11\x61udio_data_chunks\x18\x01 \x01(\x05\x12\x39\n\x16result_end_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14\x66irst_audio_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10single_utterance\x18\x05 \x01(\x08\x12\x43\n speech_partial_results_end_times\x18\x06 \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1espeech_final_results_end_times\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x19\n\x11partial_responses\x18\x08 \x01(\x05\x12,\n$speaker_id_passive_latency_ms_offset\x18\t \x01(\x05\x12\x1f\n\x17\x62\x61rgein_event_triggered\x18\n \x01(\x08\x12\x1f\n\x17speech_single_utterance\x18\x0b \x01(\x08\x12=\n\x1a\x64tmf_partial_results_times\x18\x0c \x03(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18\x64tmf_final_results_times\x18\r \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x43\n single_utterance_end_time_offset\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11no_speech_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\ris_input_text\x18\x10 \x01(\x08\x12@\n\x1d\x63lient_half_close_time_offset\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12J\n\'client_half_close_streaming_time_offset\x18\x12 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xa9\x03\n\x1dStreamingDetectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12R\n\x12recognition_result\x18\x02 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResult\x12=\n\x0cquery_result\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x05 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12R\n\x0e\x64\x65\x62ugging_info\x18\x08 \x01(\x0b\x32:.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo\"\x9d\x03\n\x1aStreamingRecognitionResult\x12X\n\x0cmessage_type\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType\x12\x12\n\ntranscript\x18\x02 \x01(\t\x12\x10\n\x08is_final\x18\x03 \x01(\x08\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x44\n\x10speech_word_info\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.SpeechWordInfo\x12\x34\n\x11speech_end_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rlanguage_code\x18\n \x01(\t\"X\n\x0bMessageType\x12\x1c\n\x18MESSAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTRANSCRIPT\x10\x01\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x02\":\n\tTextInput\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"h\n\nEventInput\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\nparameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\"F\n\x1eSentimentAnalysisRequestConfig\x12$\n\x1c\x61nalyze_query_text_sentiment\x18\x01 \x01(\x08\"^\n\x17SentimentAnalysisResult\x12\x43\n\x14query_text_sentiment\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.v2.Sentiment\"-\n\tSentiment\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x32\xe5\x05\n\x08Sessions\x12\xc9\x03\n\x0c\x44\x65tectIntent\x12/.google.cloud.dialogflow.v2.DetectIntentRequest\x1a\x30.google.cloud.dialogflow.v2.DetectIntentResponse\"\xd5\x02\x82\xd3\xe4\x93\x02\xb8\x02\"6/v2/{session=projects/*/agent/sessions/*}:detectIntent:\x01*ZR\"M/v2/{session=projects/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*ZG\"B/v2/{session=projects/*/locations/*/agent/sessions/*}:detectIntent:\x01*Z^\"Y/v2/{session=projects/*/locations/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*\xda\x41\x13session,query_input\x12\x92\x01\n\x15StreamingDetectIntent\x12\x38.google.cloud.dialogflow.v2.StreamingDetectIntentRequest\x1a\x39.google.cloud.dialogflow.v2.StreamingDetectIntentResponse\"\x00(\x01\x30\x01\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xea\x03\n\x1e\x63om.google.cloud.dialogflow.v2B\x0cSessionProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41\xd1\x02\n!dialogflow.googleapis.com/Session\x12+projects/{project}/agent/sessions/{session}\x12Sprojects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}\x12@projects/{project}/locations/{location}/agent/sessions/{session}\x12hprojects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}b\x06proto3"
22
+ descriptor_data = "\n(google/cloud/dialogflow/v2/session.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-google/cloud/dialogflow/v2/audio_config.proto\x1a(google/cloud/dialogflow/v2/context.proto\x1a\'google/cloud/dialogflow/v2/intent.proto\x1a\x34google/cloud/dialogflow/v2/session_entity_type.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\x1a\x18google/type/latlng.proto\"\xf5\x02\n\x13\x44\x65tectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x41\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12J\n\x13output_audio_config\x18\x04 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x05 \x01(\x0c\"\xf8\x01\n\x14\x44\x65tectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12=\n\x0cquery_result\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x04 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\"\x9f\x04\n\x0fQueryParameters\x12\x11\n\ttime_zone\x18\x01 \x01(\t\x12)\n\x0cgeo_location\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\x12\x35\n\x08\x63ontexts\x18\x03 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x16\n\x0ereset_contexts\x18\x04 \x01(\x08\x12K\n\x14session_entity_types\x18\x05 \x03(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityType\x12(\n\x07payload\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x65\n!sentiment_analysis_request_config\x18\n \x01(\x0b\x32:.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig\x12X\n\x0fwebhook_headers\x18\x0e \x03(\x0b\x32?.google.cloud.dialogflow.v2.QueryParameters.WebhookHeadersEntry\x12\x10\n\x08platform\x18\x12 \x01(\t\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcb\x01\n\nQueryInput\x12\x44\n\x0c\x61udio_config\x18\x01 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigH\x00\x12\x35\n\x04text\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputH\x00\x12\x37\n\x05\x65vent\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EventInputH\x00\x42\x07\n\x05input\"\xae\x05\n\x0bQueryResult\x12\x12\n\nquery_text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12%\n\x1dspeech_recognition_confidence\x18\x02 \x01(\x02\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t\x12+\n\nparameters\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12#\n\x1b\x61ll_required_params_present\x18\x05 \x01(\x08\x12\x1c\n\x14\x63\x61ncels_slot_filling\x18\x15 \x01(\x08\x12\x18\n\x10\x66ulfillment_text\x18\x06 \x01(\t\x12H\n\x14\x66ulfillment_messages\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.Message\x12\x16\n\x0ewebhook_source\x18\x08 \x01(\t\x12\x30\n\x0fwebhook_payload\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12<\n\x0foutput_contexts\x18\n \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x32\n\x06intent\x18\x0b \x01(\x0b\x32\".google.cloud.dialogflow.v2.Intent\x12#\n\x1bintent_detection_confidence\x18\x0c \x01(\x02\x12\x30\n\x0f\x64iagnostic_info\x18\x0e \x01(\x0b\x32\x17.google.protobuf.Struct\x12V\n\x19sentiment_analysis_result\x18\x11 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SentimentAnalysisResult\"\xbb\x03\n\x1cStreamingDetectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x41\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12\x1c\n\x10single_utterance\x18\x04 \x01(\x08\x42\x02\x18\x01\x12J\n\x13output_audio_config\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x06 \x01(\x0c\x12\x1d\n\x15\x65nable_debugging_info\x18\x08 \x01(\x08\"\xb0\x07\n\x1e\x43loudConversationDebuggingInfo\x12\x19\n\x11\x61udio_data_chunks\x18\x01 \x01(\x05\x12\x39\n\x16result_end_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14\x66irst_audio_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10single_utterance\x18\x05 \x01(\x08\x12\x43\n speech_partial_results_end_times\x18\x06 \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1espeech_final_results_end_times\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x19\n\x11partial_responses\x18\x08 \x01(\x05\x12,\n$speaker_id_passive_latency_ms_offset\x18\t \x01(\x05\x12\x1f\n\x17\x62\x61rgein_event_triggered\x18\n \x01(\x08\x12\x1f\n\x17speech_single_utterance\x18\x0b \x01(\x08\x12=\n\x1a\x64tmf_partial_results_times\x18\x0c \x03(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18\x64tmf_final_results_times\x18\r \x03(\x0b\x32\x19.google.protobuf.Duration\x12\x43\n single_utterance_end_time_offset\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11no_speech_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x13\x65ndpointing_timeout\x18\x13 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\ris_input_text\x18\x10 \x01(\x08\x12@\n\x1d\x63lient_half_close_time_offset\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12J\n\'client_half_close_streaming_time_offset\x18\x12 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xa9\x03\n\x1dStreamingDetectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12R\n\x12recognition_result\x18\x02 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResult\x12=\n\x0cquery_result\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x05 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12R\n\x0e\x64\x65\x62ugging_info\x18\x08 \x01(\x0b\x32:.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo\"\x9d\x03\n\x1aStreamingRecognitionResult\x12X\n\x0cmessage_type\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType\x12\x12\n\ntranscript\x18\x02 \x01(\t\x12\x10\n\x08is_final\x18\x03 \x01(\x08\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x44\n\x10speech_word_info\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.SpeechWordInfo\x12\x34\n\x11speech_end_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rlanguage_code\x18\n \x01(\t\"X\n\x0bMessageType\x12\x1c\n\x18MESSAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTRANSCRIPT\x10\x01\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x02\":\n\tTextInput\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"h\n\nEventInput\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\nparameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\"F\n\x1eSentimentAnalysisRequestConfig\x12$\n\x1c\x61nalyze_query_text_sentiment\x18\x01 \x01(\x08\"^\n\x17SentimentAnalysisResult\x12\x43\n\x14query_text_sentiment\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.v2.Sentiment\"-\n\tSentiment\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x32\xe5\x05\n\x08Sessions\x12\xc9\x03\n\x0c\x44\x65tectIntent\x12/.google.cloud.dialogflow.v2.DetectIntentRequest\x1a\x30.google.cloud.dialogflow.v2.DetectIntentResponse\"\xd5\x02\x82\xd3\xe4\x93\x02\xb8\x02\"6/v2/{session=projects/*/agent/sessions/*}:detectIntent:\x01*ZR\"M/v2/{session=projects/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*ZG\"B/v2/{session=projects/*/locations/*/agent/sessions/*}:detectIntent:\x01*Z^\"Y/v2/{session=projects/*/locations/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*\xda\x41\x13session,query_input\x12\x92\x01\n\x15StreamingDetectIntent\x12\x38.google.cloud.dialogflow.v2.StreamingDetectIntentRequest\x1a\x39.google.cloud.dialogflow.v2.StreamingDetectIntentResponse\"\x00(\x01\x30\x01\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xea\x03\n\x1e\x63om.google.cloud.dialogflow.v2B\x0cSessionProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41\xd1\x02\n!dialogflow.googleapis.com/Session\x12+projects/{project}/agent/sessions/{session}\x12Sprojects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}\x12@projects/{project}/locations/{location}/agent/sessions/{session}\x12hprojects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}b\x06proto3"
23
23
 
24
24
  pool = Google::Protobuf::DescriptorPool.generated_pool
25
25
 
@@ -160,7 +160,8 @@ module Google
160
160
  credentials: credentials,
161
161
  endpoint: @config.endpoint,
162
162
  channel_args: @config.channel_args,
163
- interceptors: @config.interceptors
163
+ interceptors: @config.interceptors,
164
+ channel_pool_config: @config.channel_pool
164
165
  )
165
166
  end
166
167
 
@@ -526,6 +527,14 @@ module Google
526
527
  end
527
528
  end
528
529
 
530
+ ##
531
+ # Configuration for the channel pool
532
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
533
+ #
534
+ def channel_pool
535
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
536
+ end
537
+
529
538
  ##
530
539
  # Configuration RPC class for the Sessions API.
531
540
  #
@@ -248,6 +248,22 @@ module Google
248
248
  # @return [::Google::Cloud::Dialogflow::V2::DetectIntentResponse]
249
249
  #
250
250
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
251
+ #
252
+ # @example Basic example
253
+ # require "google/cloud/dialogflow/v2"
254
+ #
255
+ # # Create a client object. The client can be reused for multiple calls.
256
+ # client = Google::Cloud::Dialogflow::V2::Sessions::Rest::Client.new
257
+ #
258
+ # # Create a request. To set request fields, pass in keyword arguments.
259
+ # request = Google::Cloud::Dialogflow::V2::DetectIntentRequest.new
260
+ #
261
+ # # Call the detect_intent method.
262
+ # result = client.detect_intent request
263
+ #
264
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::DetectIntentResponse.
265
+ # p result
266
+ #
251
267
  def detect_intent request, options = nil
252
268
  raise ::ArgumentError, "request must be provided" if request.nil?
253
269
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.27.0"
24
+ VERSION = "0.29.0"
25
25
  end
26
26
  end
27
27
  end
@@ -150,7 +150,8 @@ module Google
150
150
  credentials: credentials,
151
151
  endpoint: @config.endpoint,
152
152
  channel_args: @config.channel_args,
153
- interceptors: @config.interceptors
153
+ interceptors: @config.interceptors,
154
+ channel_pool_config: @config.channel_pool
154
155
  )
155
156
  end
156
157
 
@@ -750,6 +751,14 @@ module Google
750
751
  end
751
752
  end
752
753
 
754
+ ##
755
+ # Configuration for the channel pool
756
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
757
+ #
758
+ def channel_pool
759
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
760
+ end
761
+
753
762
  ##
754
763
  # Configuration RPC class for the Versions API.
755
764
  #
@@ -191,6 +191,26 @@ module Google
191
191
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Version>]
192
192
  #
193
193
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
194
+ #
195
+ # @example Basic example
196
+ # require "google/cloud/dialogflow/v2"
197
+ #
198
+ # # Create a client object. The client can be reused for multiple calls.
199
+ # client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
200
+ #
201
+ # # Create a request. To set request fields, pass in keyword arguments.
202
+ # request = Google::Cloud::Dialogflow::V2::ListVersionsRequest.new
203
+ #
204
+ # # Call the list_versions method.
205
+ # result = client.list_versions request
206
+ #
207
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
208
+ # # over elements, and API calls will be issued to fetch pages as needed.
209
+ # result.each do |item|
210
+ # # Each element is of type ::Google::Cloud::Dialogflow::V2::Version.
211
+ # p item
212
+ # end
213
+ #
194
214
  def list_versions request, options = nil
195
215
  raise ::ArgumentError, "request must be provided" if request.nil?
196
216
 
@@ -259,6 +279,22 @@ module Google
259
279
  # @return [::Google::Cloud::Dialogflow::V2::Version]
260
280
  #
261
281
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
282
+ #
283
+ # @example Basic example
284
+ # require "google/cloud/dialogflow/v2"
285
+ #
286
+ # # Create a client object. The client can be reused for multiple calls.
287
+ # client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
288
+ #
289
+ # # Create a request. To set request fields, pass in keyword arguments.
290
+ # request = Google::Cloud::Dialogflow::V2::GetVersionRequest.new
291
+ #
292
+ # # Call the get_version method.
293
+ # result = client.get_version request
294
+ #
295
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::Version.
296
+ # p result
297
+ #
262
298
  def get_version request, options = nil
263
299
  raise ::ArgumentError, "request must be provided" if request.nil?
264
300
 
@@ -329,6 +365,22 @@ module Google
329
365
  # @return [::Google::Cloud::Dialogflow::V2::Version]
330
366
  #
331
367
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
368
+ #
369
+ # @example Basic example
370
+ # require "google/cloud/dialogflow/v2"
371
+ #
372
+ # # Create a client object. The client can be reused for multiple calls.
373
+ # client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
374
+ #
375
+ # # Create a request. To set request fields, pass in keyword arguments.
376
+ # request = Google::Cloud::Dialogflow::V2::CreateVersionRequest.new
377
+ #
378
+ # # Call the create_version method.
379
+ # result = client.create_version request
380
+ #
381
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::Version.
382
+ # p result
383
+ #
332
384
  def create_version request, options = nil
333
385
  raise ::ArgumentError, "request must be provided" if request.nil?
334
386
 
@@ -402,6 +454,22 @@ module Google
402
454
  # @return [::Google::Cloud::Dialogflow::V2::Version]
403
455
  #
404
456
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
457
+ #
458
+ # @example Basic example
459
+ # require "google/cloud/dialogflow/v2"
460
+ #
461
+ # # Create a client object. The client can be reused for multiple calls.
462
+ # client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
463
+ #
464
+ # # Create a request. To set request fields, pass in keyword arguments.
465
+ # request = Google::Cloud::Dialogflow::V2::UpdateVersionRequest.new
466
+ #
467
+ # # Call the update_version method.
468
+ # result = client.update_version request
469
+ #
470
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::Version.
471
+ # p result
472
+ #
405
473
  def update_version request, options = nil
406
474
  raise ::ArgumentError, "request must be provided" if request.nil?
407
475
 
@@ -469,6 +537,22 @@ module Google
469
537
  # @return [::Google::Protobuf::Empty]
470
538
  #
471
539
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
540
+ #
541
+ # @example Basic example
542
+ # require "google/cloud/dialogflow/v2"
543
+ #
544
+ # # Create a client object. The client can be reused for multiple calls.
545
+ # client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
546
+ #
547
+ # # Create a request. To set request fields, pass in keyword arguments.
548
+ # request = Google::Cloud::Dialogflow::V2::DeleteVersionRequest.new
549
+ #
550
+ # # Call the delete_version method.
551
+ # result = client.delete_version request
552
+ #
553
+ # # The returned object is of type Google::Protobuf::Empty.
554
+ # p result
555
+ #
472
556
  def delete_version request, options = nil
473
557
  raise ::ArgumentError, "request must be provided" if request.nil?
474
558
 
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -206,6 +206,9 @@ module Google
206
206
  # @!attribute [rw] summarization_feedback
207
207
  # @return [::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::SummarizationFeedback]
208
208
  # Optional. Feedback for conversation summarization.
209
+ # @!attribute [rw] knowledge_search_feedback
210
+ # @return [::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::KnowledgeSearchFeedback]
211
+ # Optional. Feedback for knowledge search.
209
212
  class AgentAssistantFeedback
210
213
  include ::Google::Protobuf::MessageExts
211
214
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -225,6 +228,25 @@ module Google
225
228
  extend ::Google::Protobuf::MessageExts::ClassMethods
226
229
  end
227
230
 
231
+ # Feedback for knowledge search.
232
+ # @!attribute [rw] answer_copied
233
+ # @return [::Boolean]
234
+ # Whether the answer was copied by the human agent or not.
235
+ # If the value is set to be true,
236
+ # {::Google::Cloud::Dialogflow::V2::AnswerFeedback#clicked AnswerFeedback.clicked}
237
+ # will be updated to be true.
238
+ # @!attribute [rw] clicked_uris
239
+ # @return [::Array<::String>]
240
+ # The URIs clicked by the human agent. The value is appended for each
241
+ # {::Google::Cloud::Dialogflow::V2::UpdateAnswerRecordRequest UpdateAnswerRecordRequest}.
242
+ # If the value is not empty,
243
+ # {::Google::Cloud::Dialogflow::V2::AnswerFeedback#clicked AnswerFeedback.clicked}
244
+ # will be updated to be true.
245
+ class KnowledgeSearchFeedback
246
+ include ::Google::Protobuf::MessageExts
247
+ extend ::Google::Protobuf::MessageExts::ClassMethods
248
+ end
249
+
228
250
  # Relevance of an answer.
229
251
  module AnswerRelevance
230
252
  # Answer relevance unspecified.
@@ -269,6 +291,9 @@ module Google
269
291
  # @!attribute [r] faq_answer
270
292
  # @return [::Google::Cloud::Dialogflow::V2::FaqAnswer]
271
293
  # Output only. The FAQ answer.
294
+ # @!attribute [r] dialogflow_assist_answer
295
+ # @return [::Google::Cloud::Dialogflow::V2::DialogflowAssistAnswer]
296
+ # Output only. Dialogflow assist answer.
272
297
  class AgentAssistantRecord
273
298
  include ::Google::Protobuf::MessageExts
274
299
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -283,6 +283,10 @@ module Google
283
283
  # [Cloud Speech API
284
284
  # documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
285
285
  # for more details.
286
+ # @!attribute [rw] use_timeout_based_endpointing
287
+ # @return [::Boolean]
288
+ # Use timeout based endpointing, interpreting endpointer sensitivy as
289
+ # seconds of timeout value.
286
290
  class SpeechToTextConfig
287
291
  include ::Google::Protobuf::MessageExts
288
292
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -432,6 +432,105 @@ module Google
432
432
  end
433
433
  end
434
434
  end
435
+
436
+ # The request message for
437
+ # {::Google::Cloud::Dialogflow::V2::Conversations::Client#search_knowledge Conversations.SearchKnowledge}.
438
+ # @!attribute [rw] parent
439
+ # @return [::String]
440
+ # The parent resource contains the conversation profile
441
+ # Format: 'projects/<Project ID>' or `projects/<Project
442
+ # ID>/locations/<Location ID>`.
443
+ # @!attribute [rw] query
444
+ # @return [::Google::Cloud::Dialogflow::V2::TextInput]
445
+ # Required. The natural language text query for knowledge search.
446
+ # @!attribute [rw] conversation_profile
447
+ # @return [::String]
448
+ # Required. The conversation profile used to configure the search.
449
+ # Format: `projects/<Project ID>/locations/<Location
450
+ # ID>/conversationProfiles/<Conversation Profile ID>`.
451
+ # @!attribute [rw] session_id
452
+ # @return [::String]
453
+ # The ID of the search session.
454
+ # The session_id can be combined with Dialogflow V3 Agent ID retrieved from
455
+ # conversation profile or on its own to identify a search session. The search
456
+ # history of the same session will impact the search result. It's up to the
457
+ # API caller to choose an appropriate `Session ID`. It can be a random number
458
+ # or some type of session identifiers (preferably hashed). The length must
459
+ # not exceed 36 characters.
460
+ # @!attribute [rw] conversation
461
+ # @return [::String]
462
+ # The conversation (between human agent and end user) where the search
463
+ # request is triggered. Format: `projects/<Project ID>/locations/<Location
464
+ # ID>/conversations/<Conversation ID>`.
465
+ # @!attribute [rw] latest_message
466
+ # @return [::String]
467
+ # The name of the latest conversation message when the request is
468
+ # triggered.
469
+ # Format: `projects/<Project ID>/locations/<Location
470
+ # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
471
+ class SearchKnowledgeRequest
472
+ include ::Google::Protobuf::MessageExts
473
+ extend ::Google::Protobuf::MessageExts::ClassMethods
474
+ end
475
+
476
+ # The response message for
477
+ # {::Google::Cloud::Dialogflow::V2::Conversations::Client#search_knowledge Conversations.SearchKnowledge}.
478
+ # @!attribute [rw] answers
479
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer>]
480
+ # Most relevant snippets extracted from articles in the given knowledge base,
481
+ # ordered by confidence.
482
+ class SearchKnowledgeResponse
483
+ include ::Google::Protobuf::MessageExts
484
+ extend ::Google::Protobuf::MessageExts::ClassMethods
485
+ end
486
+
487
+ # Represents a SearchKnowledge answer.
488
+ # @!attribute [rw] answer
489
+ # @return [::String]
490
+ # The piece of text from the knowledge base documents that answers
491
+ # the search query
492
+ # @!attribute [rw] answer_type
493
+ # @return [::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType]
494
+ # The type of the answer.
495
+ # @!attribute [rw] answer_sources
496
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerSource>]
497
+ # All sources used to generate the answer.
498
+ # @!attribute [rw] answer_record
499
+ # @return [::String]
500
+ # The name of the answer record.
501
+ # Format: `projects/<Project ID>/locations/<location ID>/answer
502
+ # Records/<Answer Record ID>`
503
+ class SearchKnowledgeAnswer
504
+ include ::Google::Protobuf::MessageExts
505
+ extend ::Google::Protobuf::MessageExts::ClassMethods
506
+
507
+ # The sources of the answers.
508
+ # @!attribute [rw] title
509
+ # @return [::String]
510
+ # The title of the article.
511
+ # @!attribute [rw] uri
512
+ # @return [::String]
513
+ # The URI of the article.
514
+ # @!attribute [rw] snippet
515
+ # @return [::String]
516
+ # The relevant snippet of the article.
517
+ class AnswerSource
518
+ include ::Google::Protobuf::MessageExts
519
+ extend ::Google::Protobuf::MessageExts::ClassMethods
520
+ end
521
+
522
+ # The type of the answer.
523
+ module AnswerType
524
+ # The answer has a unspecified type.
525
+ ANSWER_TYPE_UNSPECIFIED = 0
526
+
527
+ # The answer is from FAQ doucments.
528
+ FAQ = 1
529
+
530
+ # The answer is from generative model.
531
+ GENERATIVE = 2
532
+ end
533
+ end
435
534
  end
436
535
  end
437
536
  end
@@ -249,7 +249,14 @@ module Google
249
249
  # Automatically iterates all participants and tries to compile
250
250
  # suggestions.
251
251
  #
252
- # Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST.
252
+ # Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST,
253
+ # KNOWLEDGE_ASSIST.
254
+ # @!attribute [rw] disable_agent_query_logging
255
+ # @return [::Boolean]
256
+ # Optional. Disable the logging of search queries sent by human agents. It
257
+ # can prevent those queries from being stored at answer records.
258
+ #
259
+ # Supported features: KNOWLEDGE_SEARCH.
253
260
  # @!attribute [rw] suggestion_trigger_settings
254
261
  # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionTriggerSettings]
255
262
  # Settings of suggestion trigger.
@@ -374,9 +381,24 @@ module Google
374
381
  # intent detection and suggestion. Format: `projects/<Project
375
382
  # ID>/locations/<Location ID>/agent`. When multiple agents are allowed in
376
383
  # the same Dialogflow project.
384
+ # @!attribute [rw] human_agent_side_config
385
+ # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource::HumanAgentSideConfig]
386
+ # Optional. The Dialogflow assist configuration for human agent.
377
387
  class DialogflowQuerySource
378
388
  include ::Google::Protobuf::MessageExts
379
389
  extend ::Google::Protobuf::MessageExts::ClassMethods
390
+
391
+ # The configuration used for human agent side Dialogflow assist
392
+ # suggestion.
393
+ # @!attribute [rw] agent
394
+ # @return [::String]
395
+ # Optional. The name of a dialogflow virtual agent used for intent
396
+ # detection and suggestion triggered by human agent.
397
+ # Format: `projects/<Project ID>/locations/<Location ID>/agent`.
398
+ class HumanAgentSideConfig
399
+ include ::Google::Protobuf::MessageExts
400
+ extend ::Google::Protobuf::MessageExts::ClassMethods
401
+ end
380
402
  end
381
403
 
382
404
  # Settings that determine how to filter recent conversation context when
@@ -588,6 +610,9 @@ module Google
588
610
 
589
611
  # Run smart reply model for chat.
590
612
  SMART_REPLY = 3
613
+
614
+ # Run knowledge search with text input from agent or text generated query.
615
+ KNOWLEDGE_SEARCH = 14
591
616
  end
592
617
  end
593
618
 
@@ -244,6 +244,9 @@ module Google
244
244
  # @!attribute [rw] event_input
245
245
  # @return [::Google::Cloud::Dialogflow::V2::EventInput]
246
246
  # An input event to send to Dialogflow.
247
+ # @!attribute [rw] suggestion_input
248
+ # @return [::Google::Cloud::Dialogflow::V2::SuggestionInput]
249
+ # An input representing the selection of a suggestion.
247
250
  # @!attribute [rw] reply_audio_config
248
251
  # @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
249
252
  # Speech synthesis configuration.
@@ -412,7 +415,7 @@ module Google
412
415
  # The UTF-8 encoded natural language text to be processed. Must be sent if
413
416
  # `text_config` is set in the first message. Text length must not exceed
414
417
  # 256 bytes for virtual agent interactions. The `input_text` field can be
415
- # only sent once.
418
+ # only sent once, and would cancel the speech recognition if any ongoing.
416
419
  # @!attribute [rw] input_dtmf
417
420
  # @return [::Google::Cloud::Dialogflow::V2::TelephonyDtmfEvents]
418
421
  # The DTMF digits used to invoke intent and fill in parameter value.
@@ -837,6 +840,41 @@ module Google
837
840
  extend ::Google::Protobuf::MessageExts::ClassMethods
838
841
  end
839
842
 
843
+ # Represents an intent suggestion.
844
+ # @!attribute [rw] display_name
845
+ # @return [::String]
846
+ # The display name of the intent.
847
+ # @!attribute [rw] intent_v2
848
+ # @return [::String]
849
+ # The unique identifier of this
850
+ # {::Google::Cloud::Dialogflow::V2::Intent intent}. Format: `projects/<Project
851
+ # ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
852
+ # @!attribute [rw] description
853
+ # @return [::String]
854
+ # Human readable description for better understanding an intent like its
855
+ # scope, content, result etc. Maximum character limit: 140 characters.
856
+ class IntentSuggestion
857
+ include ::Google::Protobuf::MessageExts
858
+ extend ::Google::Protobuf::MessageExts::ClassMethods
859
+ end
860
+
861
+ # Represents a Dialogflow assist answer.
862
+ # @!attribute [rw] query_result
863
+ # @return [::Google::Cloud::Dialogflow::V2::QueryResult]
864
+ # Result from v2 agent.
865
+ # @!attribute [rw] intent_suggestion
866
+ # @return [::Google::Cloud::Dialogflow::V2::IntentSuggestion]
867
+ # An intent suggestion generated from conversation.
868
+ # @!attribute [rw] answer_record
869
+ # @return [::String]
870
+ # The name of answer record, in the format of
871
+ # "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
872
+ # ID>"
873
+ class DialogflowAssistAnswer
874
+ include ::Google::Protobuf::MessageExts
875
+ extend ::Google::Protobuf::MessageExts::ClassMethods
876
+ end
877
+
840
878
  # One response of different type of suggestion response which is used in
841
879
  # the response of
842
880
  # {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}
@@ -915,6 +953,20 @@ module Google
915
953
  extend ::Google::Protobuf::MessageExts::ClassMethods
916
954
  end
917
955
 
956
+ # Represents the selection of a suggestion.
957
+ # @!attribute [rw] answer_record
958
+ # @return [::String]
959
+ # Required. The ID of a suggestion selected by the human agent.
960
+ # The suggestion(s) were generated in a previous call to
961
+ # request Dialogflow assist.
962
+ # The format is:
963
+ # `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
964
+ # ID>` where <Answer Record ID> is an alphanumeric string.
965
+ class SuggestionInput
966
+ include ::Google::Protobuf::MessageExts
967
+ extend ::Google::Protobuf::MessageExts::ClassMethods
968
+ end
969
+
918
970
  # Represents the parameters of human assist query.
919
971
  # @!attribute [rw] documents_metadata_filters
920
972
  # @return [::Google::Protobuf::Map{::String => ::String}]
@@ -473,7 +473,10 @@ module Google
473
473
  # beginning of the stream.
474
474
  # @!attribute [rw] no_speech_timeout
475
475
  # @return [::Google::Protobuf::Duration]
476
- # No speech timeout settings observed at runtime.
476
+ # No speech timeout settings for the stream.
477
+ # @!attribute [rw] endpointing_timeout
478
+ # @return [::Google::Protobuf::Duration]
479
+ # Speech endpointing timeout settings for the stream.
477
480
  # @!attribute [rw] is_input_text
478
481
  # @return [::Boolean]
479
482
  # Whether the streaming terminates with an injected text query.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-16 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -427,7 +427,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
427
427
  - !ruby/object:Gem::Version
428
428
  version: '0'
429
429
  requirements: []
430
- rubygems_version: 3.4.2
430
+ rubygems_version: 3.4.19
431
431
  signing_key:
432
432
  specification_version: 4
433
433
  summary: Builds conversational interfaces (for example, chatbots, and voice-powered