google-cloud-dialogflow-v2 1.8.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +8 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +7 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +214 -3
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +199 -2
- data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +132 -0
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/operations.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/operations.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/generator_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/generators/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/generators/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +5 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/rest.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +2 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +154 -0
- data/proto_docs/google/cloud/dialogflow/v2/generator.rb +53 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +46 -5
- metadata +3 -3
@@ -9,6 +9,7 @@ require 'google/api/client_pb'
|
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
10
|
require 'google/api/resource_pb'
|
11
11
|
require 'google/cloud/dialogflow/v2/audio_config_pb'
|
12
|
+
require 'google/cloud/dialogflow/v2/generator_pb'
|
12
13
|
require 'google/cloud/dialogflow/v2/session_pb'
|
13
14
|
require 'google/protobuf/field_mask_pb'
|
14
15
|
require 'google/protobuf/struct_pb'
|
@@ -16,7 +17,7 @@ require 'google/protobuf/timestamp_pb'
|
|
16
17
|
require 'google/rpc/status_pb'
|
17
18
|
|
18
19
|
|
19
|
-
descriptor_data = "\n,google/cloud/dialogflow/v2/participant.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/session.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x91\x05\n\x0bParticipant\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12?\n\x04role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x05\x12&\n\x19sip_recording_media_label\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12(\n\x1bobfuscated_external_user_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12n\n\x1a\x64ocuments_metadata_filters\x18\x08 \x03(\x0b\x32\x45.google.cloud.dialogflow.v2.Participant.DocumentsMetadataFiltersEntryB\x03\xe0\x41\x01\x1a?\n\x1d\x44ocumentsMetadataFiltersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"P\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bHUMAN_AGENT\x10\x01\x12\x13\n\x0f\x41UTOMATED_AGENT\x10\x02\x12\x0c\n\x08\x45ND_USER\x10\x03:\xd8\x01\xea\x41\xd4\x01\n%dialogflow.googleapis.com/Participant\x12Jprojects/{project}/conversations/{conversation}/participants/{participant}\x12_projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}\"\x8c\x05\n\x07Message\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07\x63ontent\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bparticipant\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12K\n\x10participant_role\x18\x05 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x32\n\tsend_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12N\n\x12message_annotation\x18\x07 \x01(\x0b\x32-.google.cloud.dialogflow.v2.MessageAnnotationB\x03\xe0\x41\x03\x12T\n\x12sentiment_analysis\x18\x08 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SentimentAnalysisResultB\x03\xe0\x41\x03:\xc4\x01\xea\x41\xc0\x01\n!dialogflow.googleapis.com/Message\x12\x42projects/{project}/conversations/{conversation}/messages/{message}\x12Wprojects/{project}/locations/{location}/conversations/{conversation}/messages/{message}\"\x9c\x01\n\x18\x43reateParticipantRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Participant\x12\x41\n\x0bparticipant\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.ParticipantB\x03\xe0\x41\x02\"T\n\x15GetParticipantRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\"\x89\x01\n\x17ListParticipantsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Participant\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\"r\n\x18ListParticipantsResponse\x12=\n\x0cparticipants\x18\x01 \x03(\x0b\x32\'.google.cloud.dialogflow.v2.Participant\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x93\x01\n\x18UpdateParticipantRequest\x12\x41\n\x0bparticipant\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.ParticipantB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x8a\x05\n\x15\x41nalyzeContentRequest\x12\x42\n\x0bparticipant\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12;\n\ntext_input\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputH\x00\x12=\n\x0b\x61udio_input\x18\x07 \x01(\x0b\x32&.google.cloud.dialogflow.v2.AudioInputH\x00\x12=\n\x0b\x65vent_input\x18\x08 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EventInputH\x00\x12G\n\x10suggestion_input\x18\x0c \x01(\x0b\x32+.google.cloud.dialogflow.v2.SuggestionInputH\x00\x12I\n\x12reply_audio_config\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12\x41\n\x0cquery_params\x18\t \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12N\n\x13\x61ssist_query_params\x18\x0e \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\x12.\n\rcx_parameters\x18\x12 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nrequest_id\x18\x0b \x01(\tB\x07\n\x05input\",\n\x0e\x44tmfParameters\x12\x1a\n\x12\x61\x63\x63\x65pts_dtmf_input\x18\x01 \x01(\x08\"\xde\x03\n\x16\x41nalyzeContentResponse\x12\x12\n\nreply_text\x18\x01 \x01(\t\x12<\n\x0breply_audio\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.OutputAudio\x12N\n\x15\x61utomated_agent_reply\x18\x03 \x01(\x0b\x32/.google.cloud.dialogflow.v2.AutomatedAgentReply\x12\x34\n\x07message\x18\x05 \x01(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12T\n\x1ehuman_agent_suggestion_results\x18\x06 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12Q\n\x1b\x65nd_user_suggestion_results\x18\x07 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12\x43\n\x0f\x64tmf_parameters\x18\t \x01(\x0b\x32*.google.cloud.dialogflow.v2.DtmfParameters\"\xfd\x05\n\x1eStreamingAnalyzeContentRequest\x12\x42\n\x0bparticipant\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x44\n\x0c\x61udio_config\x18\x02 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigH\x00\x12\x42\n\x0btext_config\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2.InputTextConfigH\x00\x12I\n\x12reply_audio_config\x18\x04 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12\x15\n\x0binput_audio\x18\x05 \x01(\x0cH\x01\x12\x14\n\ninput_text\x18\x06 \x01(\tH\x01\x12\x45\n\ninput_dtmf\x18\t \x01(\x0b\x32/.google.cloud.dialogflow.v2.TelephonyDtmfEventsH\x01\x12\x41\n\x0cquery_params\x18\x07 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12N\n\x13\x61ssist_query_params\x18\x08 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\x12.\n\rcx_parameters\x18\r \x01(\x0b\x32\x17.google.protobuf.Struct\x12&\n\x19\x65nable_extended_streaming\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\x12\x31\n$enable_partial_automated_agent_reply\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x1d\n\x15\x65nable_debugging_info\x18\x13 \x01(\x08\x42\x08\n\x06\x63onfigB\x07\n\x05input\"\xa5\x05\n\x1fStreamingAnalyzeContentResponse\x12R\n\x12recognition_result\x18\x01 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResult\x12\x12\n\nreply_text\x18\x02 \x01(\t\x12<\n\x0breply_audio\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.OutputAudio\x12N\n\x15\x61utomated_agent_reply\x18\x04 \x01(\x0b\x32/.google.cloud.dialogflow.v2.AutomatedAgentReply\x12\x34\n\x07message\x18\x06 \x01(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12T\n\x1ehuman_agent_suggestion_results\x18\x07 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12Q\n\x1b\x65nd_user_suggestion_results\x18\x08 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12\x43\n\x0f\x64tmf_parameters\x18\n \x01(\x0b\x32*.google.cloud.dialogflow.v2.DtmfParameters\x12R\n\x0e\x64\x65\x62ugging_info\x18\x0b \x01(\x0b\x32:.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo\x12\x14\n\x0cspeech_model\x18\r \x01(\t\"\x85\x02\n\x16SuggestArticlesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x0elatest_message\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12N\n\x13\x61ssist_query_params\x18\x04 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\"\x8b\x01\n\x17SuggestArticlesResponse\x12\x42\n\x0f\x61rticle_answers\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswer\x12\x16\n\x0elatest_message\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"\x87\x02\n\x18SuggestFaqAnswersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x0elatest_message\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12N\n\x13\x61ssist_query_params\x18\x04 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\"\x85\x01\n\x19SuggestFaqAnswersResponse\x12:\n\x0b\x66\x61q_answers\x18\x01 \x03(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswer\x12\x16\n\x0elatest_message\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"\xf4\x01\n\x1aSuggestSmartRepliesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x12\x63urrent_text_input\x18\x04 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInput\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\"\xc3\x01\n\x1bSuggestSmartRepliesResponse\x12N\n\x13smart_reply_answers\x18\x01 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SmartReplyAnswerB\x03\xe0\x41\x03\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\"c\n\nAudioInput\x12\x41\n\x06\x63onfig\x18\x01 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigB\x03\xe0\x41\x02\x12\x12\n\x05\x61udio\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"[\n\x0bOutputAudio\x12=\n\x06\x63onfig\x18\x01 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12\r\n\x05\x61udio\x18\x02 \x01(\x0c\"\xe8\x02\n\x13\x41utomatedAgentReply\x12P\n\x16\x64\x65tect_intent_response\x18\x01 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.DetectIntentResponse\x12k\n\x1a\x61utomated_agent_reply_type\x18\x07 \x01(\x0e\x32G.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType\x12\x1a\n\x12\x61llow_cancellation\x18\x08 \x01(\x08\x12\x17\n\x0f\x63x_current_page\x18\x0b \x01(\t\"]\n\x17\x41utomatedAgentReplyType\x12*\n&AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARTIAL\x10\x01\x12\t\n\x05\x46INAL\x10\x02\"\xe4\x01\n\rArticleAnswer\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x10\n\x08snippets\x18\x03 \x03(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12I\n\x08metadata\x18\x05 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.ArticleAnswer.MetadataEntry\x12\x15\n\ranswer_record\x18\x06 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe0\x01\n\tFaqAnswer\x12\x0e\n\x06\x61nswer\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x10\n\x08question\x18\x03 \x01(\t\x12\x0e\n\x06source\x18\x04 \x01(\t\x12\x45\n\x08metadata\x18\x05 \x03(\x0b\x32\x33.google.cloud.dialogflow.v2.FaqAnswer.MetadataEntry\x12\x15\n\ranswer_record\x18\x06 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x10SmartReplyAnswer\x12\r\n\x05reply\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x42\n\ranswer_record\x18\x03 \x01(\tB+\xfa\x41(\n&dialogflow.googleapis.com/AnswerRecord\"\\\n\x10IntentSuggestion\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\tintent_v2\x18\x02 \x01(\tH\x00\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x08\n\x06intent\"\xc5\x01\n\x16\x44ialogflowAssistAnswer\x12?\n\x0cquery_result\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResultH\x00\x12I\n\x11intent_suggestion\x18\x05 \x01(\x0b\x32,.google.cloud.dialogflow.v2.IntentSuggestionH\x00\x12\x15\n\ranswer_record\x18\x02 \x01(\tB\x08\n\x06result\"\xd3\x03\n\x10SuggestionResult\x12#\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12X\n\x19suggest_articles_response\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SuggestArticlesResponseH\x00\x12g\n!suggest_knowledge_assist_response\x18\x08 \x01(\x0b\x32:.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponseH\x00\x12]\n\x1csuggest_faq_answers_response\x18\x03 \x01(\x0b\x32\x35.google.cloud.dialogflow.v2.SuggestFaqAnswersResponseH\x00\x12\x61\n\x1esuggest_smart_replies_response\x18\x04 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.SuggestSmartRepliesResponseH\x00\x42\x15\n\x13suggestion_response\"-\n\x0fInputTextConfig\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\"j\n\x14\x41nnotatedMessagePart\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x13\n\x0b\x65ntity_type\x18\x02 \x01(\t\x12/\n\x0f\x66ormatted_value\x18\x03 \x01(\x0b\x32\x16.google.protobuf.Value\"n\n\x11MessageAnnotation\x12?\n\x05parts\x18\x01 \x03(\x0b\x32\x30.google.cloud.dialogflow.v2.AnnotatedMessagePart\x12\x18\n\x10\x63ontain_entities\x18\x02 \x01(\x08\"-\n\x0fSuggestionInput\x12\x1a\n\ranswer_record\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xcd\x01\n\x15\x41ssistQueryParameters\x12s\n\x1a\x64ocuments_metadata_filters\x18\x01 \x03(\x0b\x32O.google.cloud.dialogflow.v2.AssistQueryParameters.DocumentsMetadataFiltersEntry\x1a?\n\x1d\x44ocumentsMetadataFiltersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe3\x01\n\x1dSuggestKnowledgeAssistRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x0elatest_message\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12%\n\x18previous_suggested_query\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xa7\x01\n\x1eSuggestKnowledgeAssistResponse\x12W\n\x17knowledge_assist_answer\x18\x01 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.KnowledgeAssistAnswerB\x03\xe0\x41\x03\x12\x16\n\x0elatest_message\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"\x9b\x06\n\x15KnowledgeAssistAnswer\x12Y\n\x0fsuggested_query\x18\x01 \x01(\x0b\x32@.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\x12\x61\n\x16suggested_query_answer\x18\x02 \x01(\x0b\x32\x41.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer\x12\x15\n\ranswer_record\x18\x03 \x01(\t\x1a$\n\x0eSuggestedQuery\x12\x12\n\nquery_text\x18\x01 \x01(\t\x1a\x86\x04\n\x0fKnowledgeAnswer\x12\x13\n\x0b\x61nswer_text\x18\x01 \x01(\t\x12\x61\n\nfaq_source\x18\x03 \x01(\x0b\x32K.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\x00\x12o\n\x11generative_source\x18\x04 \x01(\x0b\x32R.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\x00\x1a\x1d\n\tFaqSource\x12\x10\n\x08question\x18\x02 \x01(\t\x1a\xe0\x01\n\x10GenerativeSource\x12l\n\x08snippets\x18\x01 \x03(\x0b\x32Z.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\x1a^\n\x07Snippet\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\r\n\x05title\x18\x04 \x01(\t\x12)\n\x08metadata\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x08\n\x06source2\xfa\x18\n\x0cParticipants\x12\xa5\x02\n\x11\x43reateParticipant\x12\x34.google.cloud.dialogflow.v2.CreateParticipantRequest\x1a\'.google.cloud.dialogflow.v2.Participant\"\xb0\x01\xda\x41\x12parent,participant\x82\xd3\xe4\x93\x02\x94\x01\"4/v2/{parent=projects/*/conversations/*}/participants:\x0bparticipantZO\"@/v2/{parent=projects/*/locations/*/conversations/*}/participants:\x0bparticipant\x12\xf6\x01\n\x0eGetParticipant\x12\x31.google.cloud.dialogflow.v2.GetParticipantRequest\x1a\'.google.cloud.dialogflow.v2.Participant\"\x87\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02z\x12\x34/v2/{name=projects/*/conversations/*/participants/*}ZB\x12@/v2/{name=projects/*/locations/*/conversations/*/participants/*}\x12\x89\x02\n\x10ListParticipants\x12\x33.google.cloud.dialogflow.v2.ListParticipantsRequest\x1a\x34.google.cloud.dialogflow.v2.ListParticipantsResponse\"\x89\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02z\x12\x34/v2/{parent=projects/*/conversations/*}/participantsZB\x12@/v2/{parent=projects/*/locations/*/conversations/*}/participants\x12\xc2\x02\n\x11UpdateParticipant\x12\x34.google.cloud.dialogflow.v2.UpdateParticipantRequest\x1a\'.google.cloud.dialogflow.v2.Participant\"\xcd\x01\xda\x41\x17participant,update_mask\x82\xd3\xe4\x93\x02\xac\x01\x32@/v2/{participant.name=projects/*/conversations/*/participants/*}:\x0bparticipantZ[2L/v2/{participant.name=projects/*/locations/*/conversations/*/participants/*}:\x0bparticipant\x12\xfa\x02\n\x0e\x41nalyzeContent\x12\x31.google.cloud.dialogflow.v2.AnalyzeContentRequest\x1a\x32.google.cloud.dialogflow.v2.AnalyzeContentResponse\"\x80\x02\xda\x41\x16participant,text_input\xda\x41\x17participant,event_input\xda\x41\x17participant,audio_input\x82\xd3\xe4\x93\x02\xac\x01\"J/v2/{participant=projects/*/conversations/*/participants/*}:analyzeContent:\x01*Z[\"V/v2/{participant=projects/*/locations/*/conversations/*/participants/*}:analyzeContent:\x01*\x12\x98\x01\n\x17StreamingAnalyzeContent\x12:.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest\x1a;.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse\"\x00(\x01\x30\x01\x12\xc9\x02\n\x0fSuggestArticles\x12\x32.google.cloud.dialogflow.v2.SuggestArticlesRequest\x1a\x33.google.cloud.dialogflow.v2.SuggestArticlesResponse\"\xcc\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xbc\x01\"R/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestArticles:\x01*Zc\"^/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestArticles:\x01*\x12\xd3\x02\n\x11SuggestFaqAnswers\x12\x34.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest\x1a\x35.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse\"\xd0\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xc0\x01\"T/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\x01*Ze\"`/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\x01*\x12\xdd\x02\n\x13SuggestSmartReplies\x12\x36.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest\x1a\x37.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse\"\xd4\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xc4\x01\"V/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\x01*Zg\"b/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\x01*\x12\xe3\x02\n\x16SuggestKnowledgeAssist\x12\x39.google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest\x1a:.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse\"\xd1\x01\x82\xd3\xe4\x93\x02\xca\x01\"Y/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\x01*Zj\"e/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x96\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10ParticipantProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
20
|
+
descriptor_data = "\n,google/cloud/dialogflow/v2/participant.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/generator.proto\x1a(google/cloud/dialogflow/v2/session.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x91\x05\n\x0bParticipant\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12?\n\x04role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x05\x12&\n\x19sip_recording_media_label\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12(\n\x1bobfuscated_external_user_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12n\n\x1a\x64ocuments_metadata_filters\x18\x08 \x03(\x0b\x32\x45.google.cloud.dialogflow.v2.Participant.DocumentsMetadataFiltersEntryB\x03\xe0\x41\x01\x1a?\n\x1d\x44ocumentsMetadataFiltersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"P\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bHUMAN_AGENT\x10\x01\x12\x13\n\x0f\x41UTOMATED_AGENT\x10\x02\x12\x0c\n\x08\x45ND_USER\x10\x03:\xd8\x01\xea\x41\xd4\x01\n%dialogflow.googleapis.com/Participant\x12Jprojects/{project}/conversations/{conversation}/participants/{participant}\x12_projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}\"\x8c\x05\n\x07Message\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07\x63ontent\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bparticipant\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12K\n\x10participant_role\x18\x05 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x32\n\tsend_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12N\n\x12message_annotation\x18\x07 \x01(\x0b\x32-.google.cloud.dialogflow.v2.MessageAnnotationB\x03\xe0\x41\x03\x12T\n\x12sentiment_analysis\x18\x08 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SentimentAnalysisResultB\x03\xe0\x41\x03:\xc4\x01\xea\x41\xc0\x01\n!dialogflow.googleapis.com/Message\x12\x42projects/{project}/conversations/{conversation}/messages/{message}\x12Wprojects/{project}/locations/{location}/conversations/{conversation}/messages/{message}\"\x9c\x01\n\x18\x43reateParticipantRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Participant\x12\x41\n\x0bparticipant\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.ParticipantB\x03\xe0\x41\x02\"T\n\x15GetParticipantRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\"\x89\x01\n\x17ListParticipantsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Participant\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\"r\n\x18ListParticipantsResponse\x12=\n\x0cparticipants\x18\x01 \x03(\x0b\x32\'.google.cloud.dialogflow.v2.Participant\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x93\x01\n\x18UpdateParticipantRequest\x12\x41\n\x0bparticipant\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.ParticipantB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x8a\x05\n\x15\x41nalyzeContentRequest\x12\x42\n\x0bparticipant\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12;\n\ntext_input\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputH\x00\x12=\n\x0b\x61udio_input\x18\x07 \x01(\x0b\x32&.google.cloud.dialogflow.v2.AudioInputH\x00\x12=\n\x0b\x65vent_input\x18\x08 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EventInputH\x00\x12G\n\x10suggestion_input\x18\x0c \x01(\x0b\x32+.google.cloud.dialogflow.v2.SuggestionInputH\x00\x12I\n\x12reply_audio_config\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12\x41\n\x0cquery_params\x18\t \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12N\n\x13\x61ssist_query_params\x18\x0e \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\x12.\n\rcx_parameters\x18\x12 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nrequest_id\x18\x0b \x01(\tB\x07\n\x05input\",\n\x0e\x44tmfParameters\x12\x1a\n\x12\x61\x63\x63\x65pts_dtmf_input\x18\x01 \x01(\x08\"\xde\x03\n\x16\x41nalyzeContentResponse\x12\x12\n\nreply_text\x18\x01 \x01(\t\x12<\n\x0breply_audio\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.OutputAudio\x12N\n\x15\x61utomated_agent_reply\x18\x03 \x01(\x0b\x32/.google.cloud.dialogflow.v2.AutomatedAgentReply\x12\x34\n\x07message\x18\x05 \x01(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12T\n\x1ehuman_agent_suggestion_results\x18\x06 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12Q\n\x1b\x65nd_user_suggestion_results\x18\x07 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12\x43\n\x0f\x64tmf_parameters\x18\t \x01(\x0b\x32*.google.cloud.dialogflow.v2.DtmfParameters\"\xfd\x05\n\x1eStreamingAnalyzeContentRequest\x12\x42\n\x0bparticipant\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x44\n\x0c\x61udio_config\x18\x02 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigH\x00\x12\x42\n\x0btext_config\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2.InputTextConfigH\x00\x12I\n\x12reply_audio_config\x18\x04 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12\x15\n\x0binput_audio\x18\x05 \x01(\x0cH\x01\x12\x14\n\ninput_text\x18\x06 \x01(\tH\x01\x12\x45\n\ninput_dtmf\x18\t \x01(\x0b\x32/.google.cloud.dialogflow.v2.TelephonyDtmfEventsH\x01\x12\x41\n\x0cquery_params\x18\x07 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12N\n\x13\x61ssist_query_params\x18\x08 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\x12.\n\rcx_parameters\x18\r \x01(\x0b\x32\x17.google.protobuf.Struct\x12&\n\x19\x65nable_extended_streaming\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\x12\x31\n$enable_partial_automated_agent_reply\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x1d\n\x15\x65nable_debugging_info\x18\x13 \x01(\x08\x42\x08\n\x06\x63onfigB\x07\n\x05input\"\xa5\x05\n\x1fStreamingAnalyzeContentResponse\x12R\n\x12recognition_result\x18\x01 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResult\x12\x12\n\nreply_text\x18\x02 \x01(\t\x12<\n\x0breply_audio\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.OutputAudio\x12N\n\x15\x61utomated_agent_reply\x18\x04 \x01(\x0b\x32/.google.cloud.dialogflow.v2.AutomatedAgentReply\x12\x34\n\x07message\x18\x06 \x01(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12T\n\x1ehuman_agent_suggestion_results\x18\x07 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12Q\n\x1b\x65nd_user_suggestion_results\x18\x08 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SuggestionResult\x12\x43\n\x0f\x64tmf_parameters\x18\n \x01(\x0b\x32*.google.cloud.dialogflow.v2.DtmfParameters\x12R\n\x0e\x64\x65\x62ugging_info\x18\x0b \x01(\x0b\x32:.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo\x12\x14\n\x0cspeech_model\x18\r \x01(\t\"\x85\x02\n\x16SuggestArticlesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x0elatest_message\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12N\n\x13\x61ssist_query_params\x18\x04 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\"\x8b\x01\n\x17SuggestArticlesResponse\x12\x42\n\x0f\x61rticle_answers\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswer\x12\x16\n\x0elatest_message\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"\x87\x02\n\x18SuggestFaqAnswersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x0elatest_message\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12N\n\x13\x61ssist_query_params\x18\x04 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\"\x85\x01\n\x19SuggestFaqAnswersResponse\x12:\n\x0b\x66\x61q_answers\x18\x01 \x03(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswer\x12\x16\n\x0elatest_message\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"\xa1\x03\n\x1bGenerateSuggestionsResponse\x12w\n\x1cgenerator_suggestion_answers\x18\x01 \x03(\x0b\x32Q.google.cloud.dialogflow.v2.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x1a\xc8\x01\n\x19GeneratorSuggestionAnswer\x12M\n\x14generator_suggestion\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.v2.GeneratorSuggestion\x12\x18\n\x10source_generator\x18\x02 \x01(\t\x12\x42\n\ranswer_record\x18\x03 \x01(\tB+\xfa\x41(\n&dialogflow.googleapis.com/AnswerRecord\"\xf4\x01\n\x1aSuggestSmartRepliesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x12\x63urrent_text_input\x18\x04 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInput\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\"\xc3\x01\n\x1bSuggestSmartRepliesResponse\x12N\n\x13smart_reply_answers\x18\x01 \x03(\x0b\x32,.google.cloud.dialogflow.v2.SmartReplyAnswerB\x03\xe0\x41\x03\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\"c\n\nAudioInput\x12\x41\n\x06\x63onfig\x18\x01 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigB\x03\xe0\x41\x02\x12\x12\n\x05\x61udio\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"[\n\x0bOutputAudio\x12=\n\x06\x63onfig\x18\x01 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12\r\n\x05\x61udio\x18\x02 \x01(\x0c\"\xe8\x02\n\x13\x41utomatedAgentReply\x12P\n\x16\x64\x65tect_intent_response\x18\x01 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.DetectIntentResponse\x12k\n\x1a\x61utomated_agent_reply_type\x18\x07 \x01(\x0e\x32G.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType\x12\x1a\n\x12\x61llow_cancellation\x18\x08 \x01(\x08\x12\x17\n\x0f\x63x_current_page\x18\x0b \x01(\t\"]\n\x17\x41utomatedAgentReplyType\x12*\n&AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARTIAL\x10\x01\x12\t\n\x05\x46INAL\x10\x02\"\xe4\x01\n\rArticleAnswer\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x10\n\x08snippets\x18\x03 \x03(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12I\n\x08metadata\x18\x05 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.ArticleAnswer.MetadataEntry\x12\x15\n\ranswer_record\x18\x06 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe0\x01\n\tFaqAnswer\x12\x0e\n\x06\x61nswer\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x10\n\x08question\x18\x03 \x01(\t\x12\x0e\n\x06source\x18\x04 \x01(\t\x12\x45\n\x08metadata\x18\x05 \x03(\x0b\x32\x33.google.cloud.dialogflow.v2.FaqAnswer.MetadataEntry\x12\x15\n\ranswer_record\x18\x06 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x10SmartReplyAnswer\x12\r\n\x05reply\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x42\n\ranswer_record\x18\x03 \x01(\tB+\xfa\x41(\n&dialogflow.googleapis.com/AnswerRecord\"\\\n\x10IntentSuggestion\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\tintent_v2\x18\x02 \x01(\tH\x00\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x08\n\x06intent\"\xc5\x01\n\x16\x44ialogflowAssistAnswer\x12?\n\x0cquery_result\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResultH\x00\x12I\n\x11intent_suggestion\x18\x05 \x01(\x0b\x32,.google.cloud.dialogflow.v2.IntentSuggestionH\x00\x12\x15\n\ranswer_record\x18\x02 \x01(\tB\x08\n\x06result\"\xb5\x04\n\x10SuggestionResult\x12#\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12X\n\x19suggest_articles_response\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SuggestArticlesResponseH\x00\x12g\n!suggest_knowledge_assist_response\x18\x08 \x01(\x0b\x32:.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponseH\x00\x12]\n\x1csuggest_faq_answers_response\x18\x03 \x01(\x0b\x32\x35.google.cloud.dialogflow.v2.SuggestFaqAnswersResponseH\x00\x12\x61\n\x1esuggest_smart_replies_response\x18\x04 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.SuggestSmartRepliesResponseH\x00\x12`\n\x1dgenerate_suggestions_response\x18\t \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.GenerateSuggestionsResponseH\x00\x42\x15\n\x13suggestion_response\"-\n\x0fInputTextConfig\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\"j\n\x14\x41nnotatedMessagePart\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x13\n\x0b\x65ntity_type\x18\x02 \x01(\t\x12/\n\x0f\x66ormatted_value\x18\x03 \x01(\x0b\x32\x16.google.protobuf.Value\"n\n\x11MessageAnnotation\x12?\n\x05parts\x18\x01 \x03(\x0b\x32\x30.google.cloud.dialogflow.v2.AnnotatedMessagePart\x12\x18\n\x10\x63ontain_entities\x18\x02 \x01(\x08\"-\n\x0fSuggestionInput\x12\x1a\n\ranswer_record\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xcd\x01\n\x15\x41ssistQueryParameters\x12s\n\x1a\x64ocuments_metadata_filters\x18\x01 \x03(\x0b\x32O.google.cloud.dialogflow.v2.AssistQueryParameters.DocumentsMetadataFiltersEntry\x1a?\n\x1d\x44ocumentsMetadataFiltersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe3\x01\n\x1dSuggestKnowledgeAssistRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Participant\x12\x41\n\x0elatest_message\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x19\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12%\n\x18previous_suggested_query\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xa7\x01\n\x1eSuggestKnowledgeAssistResponse\x12W\n\x17knowledge_assist_answer\x18\x01 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.KnowledgeAssistAnswerB\x03\xe0\x41\x03\x12\x16\n\x0elatest_message\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\"\x9b\x06\n\x15KnowledgeAssistAnswer\x12Y\n\x0fsuggested_query\x18\x01 \x01(\x0b\x32@.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\x12\x61\n\x16suggested_query_answer\x18\x02 \x01(\x0b\x32\x41.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer\x12\x15\n\ranswer_record\x18\x03 \x01(\t\x1a$\n\x0eSuggestedQuery\x12\x12\n\nquery_text\x18\x01 \x01(\t\x1a\x86\x04\n\x0fKnowledgeAnswer\x12\x13\n\x0b\x61nswer_text\x18\x01 \x01(\t\x12\x61\n\nfaq_source\x18\x03 \x01(\x0b\x32K.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\x00\x12o\n\x11generative_source\x18\x04 \x01(\x0b\x32R.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\x00\x1a\x1d\n\tFaqSource\x12\x10\n\x08question\x18\x02 \x01(\t\x1a\xe0\x01\n\x10GenerativeSource\x12l\n\x08snippets\x18\x01 \x03(\x0b\x32Z.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\x1a^\n\x07Snippet\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\r\n\x05title\x18\x04 \x01(\t\x12)\n\x08metadata\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x08\n\x06source2\xfa\x18\n\x0cParticipants\x12\xa5\x02\n\x11\x43reateParticipant\x12\x34.google.cloud.dialogflow.v2.CreateParticipantRequest\x1a\'.google.cloud.dialogflow.v2.Participant\"\xb0\x01\xda\x41\x12parent,participant\x82\xd3\xe4\x93\x02\x94\x01\"4/v2/{parent=projects/*/conversations/*}/participants:\x0bparticipantZO\"@/v2/{parent=projects/*/locations/*/conversations/*}/participants:\x0bparticipant\x12\xf6\x01\n\x0eGetParticipant\x12\x31.google.cloud.dialogflow.v2.GetParticipantRequest\x1a\'.google.cloud.dialogflow.v2.Participant\"\x87\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02z\x12\x34/v2/{name=projects/*/conversations/*/participants/*}ZB\x12@/v2/{name=projects/*/locations/*/conversations/*/participants/*}\x12\x89\x02\n\x10ListParticipants\x12\x33.google.cloud.dialogflow.v2.ListParticipantsRequest\x1a\x34.google.cloud.dialogflow.v2.ListParticipantsResponse\"\x89\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02z\x12\x34/v2/{parent=projects/*/conversations/*}/participantsZB\x12@/v2/{parent=projects/*/locations/*/conversations/*}/participants\x12\xc2\x02\n\x11UpdateParticipant\x12\x34.google.cloud.dialogflow.v2.UpdateParticipantRequest\x1a\'.google.cloud.dialogflow.v2.Participant\"\xcd\x01\xda\x41\x17participant,update_mask\x82\xd3\xe4\x93\x02\xac\x01\x32@/v2/{participant.name=projects/*/conversations/*/participants/*}:\x0bparticipantZ[2L/v2/{participant.name=projects/*/locations/*/conversations/*/participants/*}:\x0bparticipant\x12\xfa\x02\n\x0e\x41nalyzeContent\x12\x31.google.cloud.dialogflow.v2.AnalyzeContentRequest\x1a\x32.google.cloud.dialogflow.v2.AnalyzeContentResponse\"\x80\x02\xda\x41\x16participant,text_input\xda\x41\x17participant,event_input\xda\x41\x17participant,audio_input\x82\xd3\xe4\x93\x02\xac\x01\"J/v2/{participant=projects/*/conversations/*/participants/*}:analyzeContent:\x01*Z[\"V/v2/{participant=projects/*/locations/*/conversations/*/participants/*}:analyzeContent:\x01*\x12\x98\x01\n\x17StreamingAnalyzeContent\x12:.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest\x1a;.google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse\"\x00(\x01\x30\x01\x12\xc9\x02\n\x0fSuggestArticles\x12\x32.google.cloud.dialogflow.v2.SuggestArticlesRequest\x1a\x33.google.cloud.dialogflow.v2.SuggestArticlesResponse\"\xcc\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xbc\x01\"R/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestArticles:\x01*Zc\"^/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestArticles:\x01*\x12\xd3\x02\n\x11SuggestFaqAnswers\x12\x34.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest\x1a\x35.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse\"\xd0\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xc0\x01\"T/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\x01*Ze\"`/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\x01*\x12\xdd\x02\n\x13SuggestSmartReplies\x12\x36.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest\x1a\x37.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse\"\xd4\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xc4\x01\"V/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\x01*Zg\"b/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\x01*\x12\xe3\x02\n\x16SuggestKnowledgeAssist\x12\x39.google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest\x1a:.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse\"\xd1\x01\x82\xd3\xe4\x93\x02\xca\x01\"Y/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\x01*Zj\"e/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x96\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10ParticipantProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
20
21
|
|
21
22
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
23
|
|
@@ -36,6 +37,7 @@ rescue TypeError
|
|
36
37
|
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
37
38
|
["google.cloud.dialogflow.v2.OutputAudioConfig", "google/cloud/dialogflow/v2/audio_config.proto"],
|
38
39
|
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
40
|
+
["google.cloud.dialogflow.v2.GeneratorSuggestion", "google/cloud/dialogflow/v2/generator.proto"],
|
39
41
|
["google.rpc.Status", "google/rpc/status.proto"],
|
40
42
|
]
|
41
43
|
imports.each do |type_name, expected_filename|
|
@@ -69,6 +71,8 @@ module Google
|
|
69
71
|
SuggestArticlesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestArticlesResponse").msgclass
|
70
72
|
SuggestFaqAnswersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestFaqAnswersRequest").msgclass
|
71
73
|
SuggestFaqAnswersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestFaqAnswersResponse").msgclass
|
74
|
+
GenerateSuggestionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GenerateSuggestionsResponse").msgclass
|
75
|
+
GenerateSuggestionsResponse::GeneratorSuggestionAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GenerateSuggestionsResponse.GeneratorSuggestionAnswer").msgclass
|
72
76
|
SuggestSmartRepliesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestSmartRepliesRequest").msgclass
|
73
77
|
SuggestSmartRepliesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestSmartRepliesResponse").msgclass
|
74
78
|
AudioInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AudioInput").msgclass
|
@@ -1303,8 +1303,8 @@ module Google
|
|
1303
1303
|
|
1304
1304
|
config_attr :endpoint, nil, ::String, nil
|
1305
1305
|
config_attr :credentials, nil do |value|
|
1306
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1307
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1306
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1307
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
1308
1308
|
allowed.any? { |klass| klass === value }
|
1309
1309
|
end
|
1310
1310
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1131,7 +1131,7 @@ module Google
|
|
1131
1131
|
|
1132
1132
|
config_attr :endpoint, nil, ::String, nil
|
1133
1133
|
config_attr :credentials, nil do |value|
|
1134
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1134
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1135
1135
|
allowed.any? { |klass| klass === value }
|
1136
1136
|
end
|
1137
1137
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -17,6 +17,7 @@
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
19
|
require "google/cloud/dialogflow/v2/agents/rest"
|
20
|
+
require "google/cloud/dialogflow/v2/generators/rest"
|
20
21
|
require "google/cloud/dialogflow/v2/contexts/rest"
|
21
22
|
require "google/cloud/dialogflow/v2/intents/rest"
|
22
23
|
require "google/cloud/dialogflow/v2/entity_types/rest"
|
@@ -25,7 +26,6 @@ require "google/cloud/dialogflow/v2/sessions/rest"
|
|
25
26
|
require "google/cloud/dialogflow/v2/participants/rest"
|
26
27
|
require "google/cloud/dialogflow/v2/answer_records/rest"
|
27
28
|
require "google/cloud/dialogflow/v2/conversation_profiles/rest"
|
28
|
-
require "google/cloud/dialogflow/v2/generators/rest"
|
29
29
|
require "google/cloud/dialogflow/v2/conversations/rest"
|
30
30
|
require "google/cloud/dialogflow/v2/conversation_datasets/rest"
|
31
31
|
require "google/cloud/dialogflow/v2/conversation_models/rest"
|
@@ -795,8 +795,8 @@ module Google
|
|
795
795
|
|
796
796
|
config_attr :endpoint, nil, ::String, nil
|
797
797
|
config_attr :credentials, nil do |value|
|
798
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
799
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
798
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
799
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
800
800
|
allowed.any? { |klass| klass === value }
|
801
801
|
end
|
802
802
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -745,7 +745,7 @@ module Google
|
|
745
745
|
|
746
746
|
config_attr :endpoint, nil, ::String, nil
|
747
747
|
config_attr :credentials, nil do |value|
|
748
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
748
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
749
749
|
allowed.any? { |klass| klass === value }
|
750
750
|
end
|
751
751
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -553,8 +553,8 @@ module Google
|
|
553
553
|
|
554
554
|
config_attr :endpoint, nil, ::String, nil
|
555
555
|
config_attr :credentials, nil do |value|
|
556
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
557
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
556
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
557
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
558
558
|
allowed.any? { |klass| klass === value }
|
559
559
|
end
|
560
560
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -438,7 +438,7 @@ module Google
|
|
438
438
|
|
439
439
|
config_attr :endpoint, nil, ::String, nil
|
440
440
|
config_attr :credentials, nil do |value|
|
441
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
441
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
442
442
|
allowed.any? { |klass| klass === value }
|
443
443
|
end
|
444
444
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -778,8 +778,8 @@ module Google
|
|
778
778
|
|
779
779
|
config_attr :endpoint, nil, ::String, nil
|
780
780
|
config_attr :credentials, nil do |value|
|
781
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
782
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
781
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
782
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
783
783
|
allowed.any? { |klass| klass === value }
|
784
784
|
end
|
785
785
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -728,7 +728,7 @@ module Google
|
|
728
728
|
|
729
729
|
config_attr :endpoint, nil, ::String, nil
|
730
730
|
config_attr :credentials, nil do |value|
|
731
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
731
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
732
732
|
allowed.any? { |klass| klass === value }
|
733
733
|
end
|
734
734
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -17,6 +17,7 @@
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
19
|
require "google/cloud/dialogflow/v2/agents"
|
20
|
+
require "google/cloud/dialogflow/v2/generators"
|
20
21
|
require "google/cloud/dialogflow/v2/contexts"
|
21
22
|
require "google/cloud/dialogflow/v2/intents"
|
22
23
|
require "google/cloud/dialogflow/v2/entity_types"
|
@@ -25,7 +26,6 @@ require "google/cloud/dialogflow/v2/sessions"
|
|
25
26
|
require "google/cloud/dialogflow/v2/participants"
|
26
27
|
require "google/cloud/dialogflow/v2/answer_records"
|
27
28
|
require "google/cloud/dialogflow/v2/conversation_profiles"
|
28
|
-
require "google/cloud/dialogflow/v2/generators"
|
29
29
|
require "google/cloud/dialogflow/v2/conversations"
|
30
30
|
require "google/cloud/dialogflow/v2/conversation_datasets"
|
31
31
|
require "google/cloud/dialogflow/v2/conversation_models"
|
@@ -297,6 +297,8 @@ module Google
|
|
297
297
|
# @!attribute [rw] phrase_sets
|
298
298
|
# @return [::Array<::String>]
|
299
299
|
# List of names of Cloud Speech phrase sets that are used for transcription.
|
300
|
+
# For phrase set limitations, please refer to [Cloud Speech API quotas and
|
301
|
+
# limits](https://cloud.google.com/speech-to-text/quotas#content).
|
300
302
|
# @!attribute [rw] audio_encoding
|
301
303
|
# @return [::Google::Cloud::Dialogflow::V2::AudioEncoding]
|
302
304
|
# Audio encoding of the audio content to process.
|
@@ -70,6 +70,9 @@ module Google
|
|
70
70
|
# @!attribute [r] telephony_connection_info
|
71
71
|
# @return [::Google::Cloud::Dialogflow::V2::Conversation::TelephonyConnectionInfo]
|
72
72
|
# Output only. The telephony connection information.
|
73
|
+
# @!attribute [r] ingested_context_references
|
74
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::Conversation::ContextReference}]
|
75
|
+
# Output only. The context reference updates provided by external systems.
|
73
76
|
class Conversation
|
74
77
|
include ::Google::Protobuf::MessageExts
|
75
78
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -118,6 +121,74 @@ module Google
|
|
118
121
|
end
|
119
122
|
end
|
120
123
|
|
124
|
+
# Represents a section of ingested context information.
|
125
|
+
# @!attribute [rw] context_contents
|
126
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::ContextContent>]
|
127
|
+
# Required. The list of content updates for a context reference.
|
128
|
+
# @!attribute [rw] update_mode
|
129
|
+
# @return [::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::UpdateMode]
|
130
|
+
# Required. The mode in which context reference contents are updated.
|
131
|
+
# @!attribute [rw] language_code
|
132
|
+
# @return [::String]
|
133
|
+
# Optional. The language of the information ingested, defaults to "en-US"
|
134
|
+
# if not set.
|
135
|
+
# @!attribute [r] create_time
|
136
|
+
# @return [::Google::Protobuf::Timestamp]
|
137
|
+
# Output only. The time the context reference was first created.
|
138
|
+
class ContextReference
|
139
|
+
include ::Google::Protobuf::MessageExts
|
140
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
141
|
+
|
142
|
+
# Contents ingested.
|
143
|
+
# @!attribute [rw] content
|
144
|
+
# @return [::String]
|
145
|
+
# Required. The information ingested in a single request.
|
146
|
+
# @!attribute [rw] content_format
|
147
|
+
# @return [::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::ContextContent::ContentFormat]
|
148
|
+
# Required. The format of the ingested string.
|
149
|
+
# @!attribute [r] ingestion_time
|
150
|
+
# @return [::Google::Protobuf::Timestamp]
|
151
|
+
# Output only. The time when this information was incorporated into the
|
152
|
+
# relevant context reference.
|
153
|
+
class ContextContent
|
154
|
+
include ::Google::Protobuf::MessageExts
|
155
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
156
|
+
|
157
|
+
# Represents the format of the ingested string.
|
158
|
+
module ContentFormat
|
159
|
+
# Unspecified content format.
|
160
|
+
CONTENT_FORMAT_UNSPECIFIED = 0
|
161
|
+
|
162
|
+
# Content was provided in JSON format.
|
163
|
+
JSON = 1
|
164
|
+
|
165
|
+
# Content was provided as plain text.
|
166
|
+
PLAIN_TEXT = 2
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# Represents the mode in which context reference contents are updated.
|
171
|
+
module UpdateMode
|
172
|
+
# Unspecified update mode.
|
173
|
+
UPDATE_MODE_UNSPECIFIED = 0
|
174
|
+
|
175
|
+
# Context content updates are applied in append mode.
|
176
|
+
APPEND = 1
|
177
|
+
|
178
|
+
# Context content updates are applied in overwrite mode.
|
179
|
+
OVERWRITE = 2
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# @!attribute [rw] key
|
184
|
+
# @return [::String]
|
185
|
+
# @!attribute [rw] value
|
186
|
+
# @return [::Google::Cloud::Dialogflow::V2::Conversation::ContextReference]
|
187
|
+
class IngestedContextReferencesEntry
|
188
|
+
include ::Google::Protobuf::MessageExts
|
189
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
190
|
+
end
|
191
|
+
|
121
192
|
# Enumeration of the completion status of the conversation.
|
122
193
|
module LifecycleState
|
123
194
|
# Unknown.
|
@@ -299,6 +370,50 @@ module Google
|
|
299
370
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
300
371
|
end
|
301
372
|
|
373
|
+
# The request message for [ConversationsService.IngestContextReferences][].
|
374
|
+
# @!attribute [rw] conversation
|
375
|
+
# @return [::String]
|
376
|
+
# Required. Resource identifier of the conversation to ingest context
|
377
|
+
# information for. Format: `projects/<Project ID>/locations/<Location
|
378
|
+
# ID>/conversations/<Conversation ID>`.
|
379
|
+
# @!attribute [rw] context_references
|
380
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::Conversation::ContextReference}]
|
381
|
+
# Required. The context references to ingest. The key is the name of the
|
382
|
+
# context reference and the value contains the contents of the context
|
383
|
+
# reference. The key is used to incorporate ingested context references to
|
384
|
+
# enhance the generator.
|
385
|
+
class IngestContextReferencesRequest
|
386
|
+
include ::Google::Protobuf::MessageExts
|
387
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
388
|
+
|
389
|
+
# @!attribute [rw] key
|
390
|
+
# @return [::String]
|
391
|
+
# @!attribute [rw] value
|
392
|
+
# @return [::Google::Cloud::Dialogflow::V2::Conversation::ContextReference]
|
393
|
+
class ContextReferencesEntry
|
394
|
+
include ::Google::Protobuf::MessageExts
|
395
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
396
|
+
end
|
397
|
+
end
|
398
|
+
|
399
|
+
# The response message for [ConversationsService.IngestContextReferences][].
|
400
|
+
# @!attribute [rw] ingested_context_references
|
401
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::Conversation::ContextReference}]
|
402
|
+
# All context references ingested.
|
403
|
+
class IngestContextReferencesResponse
|
404
|
+
include ::Google::Protobuf::MessageExts
|
405
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
406
|
+
|
407
|
+
# @!attribute [rw] key
|
408
|
+
# @return [::String]
|
409
|
+
# @!attribute [rw] value
|
410
|
+
# @return [::Google::Cloud::Dialogflow::V2::Conversation::ContextReference]
|
411
|
+
class IngestedContextReferencesEntry
|
412
|
+
include ::Google::Protobuf::MessageExts
|
413
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
302
417
|
# The request message for
|
303
418
|
# {::Google::Cloud::Dialogflow::V2::Conversations::Client#suggest_conversation_summary Conversations.SuggestConversationSummary}.
|
304
419
|
# @!attribute [rw] conversation
|
@@ -497,6 +612,12 @@ module Google
|
|
497
612
|
# `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
|
498
613
|
#
|
499
614
|
# Note: The following fields are mutually exclusive: `generator_name`, `generator`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
615
|
+
# @!attribute [rw] context_references
|
616
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::Conversation::ContextReference}]
|
617
|
+
# Optional. A section of ingested context information. The key is the name of
|
618
|
+
# the context reference and the value contains the contents of the context
|
619
|
+
# reference. The key is used to incorporate ingested context references to
|
620
|
+
# enhance the generator.
|
500
621
|
# @!attribute [rw] conversation_context
|
501
622
|
# @return [::Google::Cloud::Dialogflow::V2::ConversationContext]
|
502
623
|
# Optional. Context of the conversation, including transcripts.
|
@@ -507,6 +628,15 @@ module Google
|
|
507
628
|
class GenerateStatelessSuggestionRequest
|
508
629
|
include ::Google::Protobuf::MessageExts
|
509
630
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
631
|
+
|
632
|
+
# @!attribute [rw] key
|
633
|
+
# @return [::String]
|
634
|
+
# @!attribute [rw] value
|
635
|
+
# @return [::Google::Cloud::Dialogflow::V2::Conversation::ContextReference]
|
636
|
+
class ContextReferencesEntry
|
637
|
+
include ::Google::Protobuf::MessageExts
|
638
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
639
|
+
end
|
510
640
|
end
|
511
641
|
|
512
642
|
# The response message for
|
@@ -861,6 +991,30 @@ module Google
|
|
861
991
|
INTENT = 3
|
862
992
|
end
|
863
993
|
end
|
994
|
+
|
995
|
+
# The request message for
|
996
|
+
# {::Google::Cloud::Dialogflow::V2::Conversations::Client#generate_suggestions Conversations.GenerateSuggestions}.
|
997
|
+
# @!attribute [rw] conversation
|
998
|
+
# @return [::String]
|
999
|
+
# Required. The conversation for which the suggestions are generated. Format:
|
1000
|
+
# `projects/<Project ID>/locations/<Location
|
1001
|
+
# ID>/conversations/<Conversation ID>`.
|
1002
|
+
#
|
1003
|
+
# The conversation must be created with a conversation profile which has
|
1004
|
+
# generators configured in it to be able to get suggestions.
|
1005
|
+
# @!attribute [rw] latest_message
|
1006
|
+
# @return [::String]
|
1007
|
+
# Optional. The name of the latest conversation message for which the request
|
1008
|
+
# is triggered. Format: `projects/<Project ID>/locations/<Location
|
1009
|
+
# ID>/conversations/<Conversation ID>/messages/<Message ID>`.
|
1010
|
+
# @!attribute [rw] trigger_events
|
1011
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::TriggerEvent>]
|
1012
|
+
# Optional. A list of trigger events. Only generators configured in the
|
1013
|
+
# conversation_profile whose trigger_event is listed here will be triggered.
|
1014
|
+
class GenerateSuggestionsRequest
|
1015
|
+
include ::Google::Protobuf::MessageExts
|
1016
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1017
|
+
end
|
864
1018
|
end
|
865
1019
|
end
|
866
1020
|
end
|
@@ -278,6 +278,14 @@ module Google
|
|
278
278
|
|
279
279
|
# Customer defined sections.
|
280
280
|
CUSTOMER_DEFINED = 7
|
281
|
+
|
282
|
+
# Concise version of the situation section. This type is only available if
|
283
|
+
# type SITUATION is not selected.
|
284
|
+
SITUATION_CONCISE = 9
|
285
|
+
|
286
|
+
# Concise version of the action section. This type is only available if
|
287
|
+
# type ACTION is not selected.
|
288
|
+
ACTION_CONCISE = 10
|
281
289
|
end
|
282
290
|
end
|
283
291
|
|
@@ -303,6 +311,15 @@ module Google
|
|
303
311
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
304
312
|
end
|
305
313
|
|
314
|
+
# Free form generator context that customer can configure.
|
315
|
+
# @!attribute [rw] text
|
316
|
+
# @return [::String]
|
317
|
+
# Optional. Free form text input to LLM.
|
318
|
+
class FreeFormContext
|
319
|
+
include ::Google::Protobuf::MessageExts
|
320
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
321
|
+
end
|
322
|
+
|
306
323
|
# LLM generator.
|
307
324
|
# @!attribute [r] name
|
308
325
|
# @return [::String]
|
@@ -311,9 +328,16 @@ module Google
|
|
311
328
|
# @!attribute [rw] description
|
312
329
|
# @return [::String]
|
313
330
|
# Optional. Human readable description of the generator.
|
331
|
+
# @!attribute [rw] free_form_context
|
332
|
+
# @return [::Google::Cloud::Dialogflow::V2::FreeFormContext]
|
333
|
+
# Input of free from generator to LLM.
|
334
|
+
#
|
335
|
+
# Note: The following fields are mutually exclusive: `free_form_context`, `summarization_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
314
336
|
# @!attribute [rw] summarization_context
|
315
337
|
# @return [::Google::Cloud::Dialogflow::V2::SummarizationContext]
|
316
338
|
# Input of prebuilt Summarization feature.
|
339
|
+
#
|
340
|
+
# Note: The following fields are mutually exclusive: `summarization_context`, `free_form_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
317
341
|
# @!attribute [rw] inference_parameter
|
318
342
|
# @return [::Google::Cloud::Dialogflow::V2::InferenceParameter]
|
319
343
|
# Optional. Inference parameters for this generator.
|
@@ -321,6 +345,13 @@ module Google
|
|
321
345
|
# @return [::Google::Cloud::Dialogflow::V2::TriggerEvent]
|
322
346
|
# Optional. The trigger event of the generator. It defines when the generator
|
323
347
|
# is triggered in a conversation.
|
348
|
+
# @!attribute [rw] published_model
|
349
|
+
# @return [::String]
|
350
|
+
# Optional. The published Large Language Model name.
|
351
|
+
# * To use the latest model version, specify the model name without version
|
352
|
+
# number. Example: `text-bison`
|
353
|
+
# * To use a stable model version, specify the version number as well.
|
354
|
+
# Example: `text-bison@002`.
|
324
355
|
# @!attribute [r] create_time
|
325
356
|
# @return [::Google::Protobuf::Timestamp]
|
326
357
|
# Output only. Creation time of this generator.
|
@@ -332,6 +363,15 @@ module Google
|
|
332
363
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
333
364
|
end
|
334
365
|
|
366
|
+
# Suggestion generated using free form generator.
|
367
|
+
# @!attribute [rw] response
|
368
|
+
# @return [::String]
|
369
|
+
# Required. Free form suggestion.
|
370
|
+
class FreeFormSuggestion
|
371
|
+
include ::Google::Protobuf::MessageExts
|
372
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
373
|
+
end
|
374
|
+
|
335
375
|
# Suggested summary of the conversation.
|
336
376
|
# @!attribute [rw] summary_sections
|
337
377
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::SummarySuggestion::SummarySection>]
|
@@ -354,9 +394,16 @@ module Google
|
|
354
394
|
end
|
355
395
|
|
356
396
|
# Suggestion generated using a Generator.
|
397
|
+
# @!attribute [rw] free_form_suggestion
|
398
|
+
# @return [::Google::Cloud::Dialogflow::V2::FreeFormSuggestion]
|
399
|
+
# Optional. Free form suggestion.
|
400
|
+
#
|
401
|
+
# Note: The following fields are mutually exclusive: `free_form_suggestion`, `summary_suggestion`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
357
402
|
# @!attribute [rw] summary_suggestion
|
358
403
|
# @return [::Google::Cloud::Dialogflow::V2::SummarySuggestion]
|
359
404
|
# Optional. Suggested summary.
|
405
|
+
#
|
406
|
+
# Note: The following fields are mutually exclusive: `summary_suggestion`, `free_form_suggestion`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
360
407
|
class GeneratorSuggestion
|
361
408
|
include ::Google::Protobuf::MessageExts
|
362
409
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -374,6 +421,12 @@ module Google
|
|
374
421
|
# Conversations.GenerateStatelessSuggestion and
|
375
422
|
# Conversations.GenerateSuggestions.
|
376
423
|
MANUAL_CALL = 2
|
424
|
+
|
425
|
+
# Triggers after each customer message only.
|
426
|
+
CUSTOMER_MESSAGE = 3
|
427
|
+
|
428
|
+
# Triggers after each agent message only.
|
429
|
+
AGENT_MESSAGE = 4
|
377
430
|
end
|
378
431
|
end
|
379
432
|
end
|