google-cloud-dialogflow-v2 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +25 -82
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/agents/rest/service_stub.rb +9 -9
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +27 -70
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/service_stub.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +25 -96
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +26 -32
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/contexts/rest/service_stub.rb +6 -6
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +27 -55
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +26 -17
- data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +25 -153
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/service_stub.rb +9 -9
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +27 -89
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +27 -159
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +28 -106
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/documents/rest/service_stub.rb +8 -8
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +25 -85
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/service_stub.rb +10 -10
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +28 -62
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/environments/rest/service_stub.rb +6 -6
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +25 -31
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/service_stub.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +24 -7
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +25 -6
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +27 -291
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/intents/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +25 -31
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +30 -190
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/participants/rest/service_stub.rb +8 -8
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +26 -34
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +33 -122
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/sessions/rest/service_stub.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +24 -16
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +26 -37
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/versions/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +29 -21
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dialogflow/v2/conversation_profile.proto
|
3
4
|
|
@@ -14,167 +15,34 @@ require 'google/protobuf/empty_pb'
|
|
14
15
|
require 'google/protobuf/field_mask_pb'
|
15
16
|
require 'google/protobuf/timestamp_pb'
|
16
17
|
|
17
|
-
|
18
|
-
add_file("google/cloud/dialogflow/v2/conversation_profile.proto", :syntax => :proto3) do
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
add_message "google.cloud.dialogflow.v2.ListConversationProfilesResponse" do
|
42
|
-
repeated :conversation_profiles, :message, 1, "google.cloud.dialogflow.v2.ConversationProfile"
|
43
|
-
optional :next_page_token, :string, 2
|
44
|
-
end
|
45
|
-
add_message "google.cloud.dialogflow.v2.GetConversationProfileRequest" do
|
46
|
-
optional :name, :string, 1
|
47
|
-
end
|
48
|
-
add_message "google.cloud.dialogflow.v2.CreateConversationProfileRequest" do
|
49
|
-
optional :parent, :string, 1
|
50
|
-
optional :conversation_profile, :message, 2, "google.cloud.dialogflow.v2.ConversationProfile"
|
51
|
-
end
|
52
|
-
add_message "google.cloud.dialogflow.v2.UpdateConversationProfileRequest" do
|
53
|
-
optional :conversation_profile, :message, 1, "google.cloud.dialogflow.v2.ConversationProfile"
|
54
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
55
|
-
end
|
56
|
-
add_message "google.cloud.dialogflow.v2.DeleteConversationProfileRequest" do
|
57
|
-
optional :name, :string, 1
|
58
|
-
end
|
59
|
-
add_message "google.cloud.dialogflow.v2.AutomatedAgentConfig" do
|
60
|
-
optional :agent, :string, 1
|
61
|
-
end
|
62
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig" do
|
63
|
-
optional :notification_config, :message, 2, "google.cloud.dialogflow.v2.NotificationConfig"
|
64
|
-
optional :human_agent_suggestion_config, :message, 3, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig"
|
65
|
-
optional :end_user_suggestion_config, :message, 4, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig"
|
66
|
-
optional :message_analysis_config, :message, 5, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig"
|
67
|
-
end
|
68
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings" do
|
69
|
-
optional :no_smalltalk, :bool, 1
|
70
|
-
optional :only_end_user, :bool, 2
|
71
|
-
end
|
72
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig" do
|
73
|
-
optional :suggestion_feature, :message, 5, "google.cloud.dialogflow.v2.SuggestionFeature"
|
74
|
-
optional :enable_event_based_suggestion, :bool, 3
|
75
|
-
optional :suggestion_trigger_settings, :message, 10, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings"
|
76
|
-
optional :query_config, :message, 6, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig"
|
77
|
-
optional :conversation_model_config, :message, 7, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig"
|
78
|
-
optional :conversation_process_config, :message, 8, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig"
|
79
|
-
end
|
80
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig" do
|
81
|
-
repeated :feature_configs, :message, 2, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig"
|
82
|
-
optional :group_suggestion_responses, :bool, 3
|
83
|
-
end
|
84
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig" do
|
85
|
-
optional :max_results, :int32, 4
|
86
|
-
optional :confidence_threshold, :float, 5
|
87
|
-
optional :context_filter_settings, :message, 7, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings"
|
88
|
-
oneof :query_source do
|
89
|
-
optional :knowledge_base_query_source, :message, 1, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource"
|
90
|
-
optional :document_query_source, :message, 2, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource"
|
91
|
-
optional :dialogflow_query_source, :message, 3, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource"
|
92
|
-
end
|
93
|
-
end
|
94
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource" do
|
95
|
-
repeated :knowledge_bases, :string, 1
|
96
|
-
end
|
97
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource" do
|
98
|
-
repeated :documents, :string, 1
|
99
|
-
end
|
100
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource" do
|
101
|
-
optional :agent, :string, 1
|
102
|
-
end
|
103
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings" do
|
104
|
-
optional :drop_handoff_messages, :bool, 1
|
105
|
-
optional :drop_virtual_agent_messages, :bool, 2
|
106
|
-
optional :drop_ivr_messages, :bool, 3
|
107
|
-
end
|
108
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig" do
|
109
|
-
optional :model, :string, 1
|
110
|
-
optional :baseline_model_version, :string, 8
|
111
|
-
end
|
112
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig" do
|
113
|
-
optional :recent_sentences_count, :int32, 2
|
114
|
-
end
|
115
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig" do
|
116
|
-
optional :enable_entity_extraction, :bool, 2
|
117
|
-
optional :enable_sentiment_analysis, :bool, 3
|
118
|
-
end
|
119
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentHandoffConfig" do
|
120
|
-
oneof :agent_service do
|
121
|
-
optional :live_person_config, :message, 1, "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig"
|
122
|
-
optional :salesforce_live_agent_config, :message, 2, "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig"
|
123
|
-
end
|
124
|
-
end
|
125
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig" do
|
126
|
-
optional :account_number, :string, 1
|
127
|
-
end
|
128
|
-
add_message "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig" do
|
129
|
-
optional :organization_id, :string, 1
|
130
|
-
optional :deployment_id, :string, 2
|
131
|
-
optional :button_id, :string, 3
|
132
|
-
optional :endpoint_domain, :string, 4
|
133
|
-
end
|
134
|
-
add_message "google.cloud.dialogflow.v2.NotificationConfig" do
|
135
|
-
optional :topic, :string, 1
|
136
|
-
optional :message_format, :enum, 2, "google.cloud.dialogflow.v2.NotificationConfig.MessageFormat"
|
137
|
-
end
|
138
|
-
add_enum "google.cloud.dialogflow.v2.NotificationConfig.MessageFormat" do
|
139
|
-
value :MESSAGE_FORMAT_UNSPECIFIED, 0
|
140
|
-
value :PROTO, 1
|
141
|
-
value :JSON, 2
|
142
|
-
end
|
143
|
-
add_message "google.cloud.dialogflow.v2.LoggingConfig" do
|
144
|
-
optional :enable_stackdriver_logging, :bool, 3
|
145
|
-
end
|
146
|
-
add_message "google.cloud.dialogflow.v2.SuggestionFeature" do
|
147
|
-
optional :type, :enum, 1, "google.cloud.dialogflow.v2.SuggestionFeature.Type"
|
148
|
-
end
|
149
|
-
add_enum "google.cloud.dialogflow.v2.SuggestionFeature.Type" do
|
150
|
-
value :TYPE_UNSPECIFIED, 0
|
151
|
-
value :ARTICLE_SUGGESTION, 1
|
152
|
-
value :FAQ, 2
|
153
|
-
value :SMART_REPLY, 3
|
154
|
-
end
|
155
|
-
add_message "google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest" do
|
156
|
-
optional :conversation_profile, :string, 1
|
157
|
-
optional :participant_role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role"
|
158
|
-
optional :suggestion_feature_config, :message, 3, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig"
|
159
|
-
end
|
160
|
-
add_message "google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest" do
|
161
|
-
optional :conversation_profile, :string, 1
|
162
|
-
optional :participant_role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role"
|
163
|
-
optional :suggestion_feature_type, :enum, 3, "google.cloud.dialogflow.v2.SuggestionFeature.Type"
|
164
|
-
end
|
165
|
-
add_message "google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata" do
|
166
|
-
optional :conversation_profile, :string, 1
|
167
|
-
optional :participant_role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role"
|
168
|
-
optional :suggestion_feature_type, :enum, 3, "google.cloud.dialogflow.v2.SuggestionFeature.Type"
|
169
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
170
|
-
end
|
171
|
-
add_message "google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata" do
|
172
|
-
optional :conversation_profile, :string, 1
|
173
|
-
optional :participant_role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role"
|
174
|
-
optional :suggestion_feature_type, :enum, 3, "google.cloud.dialogflow.v2.SuggestionFeature.Type"
|
175
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
18
|
+
|
19
|
+
descriptor_data = "\n5google/cloud/dialogflow/v2/conversation_profile.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/participant.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf0\x08\n\x13\x43onversationProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12P\n\x16\x61utomated_agent_config\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AutomatedAgentConfig\x12[\n\x1chuman_agent_assistant_config\x18\x04 \x01(\x0b\x32\x35.google.cloud.dialogflow.v2.HumanAgentAssistantConfig\x12W\n\x1ahuman_agent_handoff_config\x18\x05 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.HumanAgentHandoffConfig\x12K\n\x13notification_config\x18\x06 \x01(\x0b\x32..google.cloud.dialogflow.v2.NotificationConfig\x12\x41\n\x0elogging_config\x18\x07 \x01(\x0b\x32).google.cloud.dialogflow.v2.LoggingConfig\x12]\n%new_message_event_notification_config\x18\x08 \x01(\x0b\x32..google.cloud.dialogflow.v2.NotificationConfig\x12\x42\n\nstt_config\x18\t \x01(\x0b\x32..google.cloud.dialogflow.v2.SpeechToTextConfig\x12\x15\n\rlanguage_code\x18\n \x01(\t\x12\x11\n\ttime_zone\x18\x0e \x01(\t\x12L\n\x11security_settings\x18\r \x01(\tB1\xfa\x41.\n,dialogflow.googleapis.com/CXSecuritySettings\x12\x46\n\ntts_config\x18\x12 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig:\xc8\x01\xea\x41\xc4\x01\n-dialogflow.googleapis.com/ConversationProfile\x12>projects/{project}/conversationProfiles/{conversation_profile}\x12Sprojects/{project}/locations/{location}/conversationProfiles/{conversation_profile}\"\x8f\x01\n\x1fListConversationProfilesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-dialogflow.googleapis.com/ConversationProfile\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8b\x01\n ListConversationProfilesResponse\x12N\n\x15\x63onversation_profiles\x18\x01 \x03(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1dGetConversationProfileRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\"\xbd\x01\n CreateConversationProfileRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-dialogflow.googleapis.com/ConversationProfile\x12R\n\x14\x63onversation_profile\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfileB\x03\xe0\x41\x02\"\xac\x01\n UpdateConversationProfileRequest\x12R\n\x14\x63onversation_profile\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"g\n DeleteConversationProfileRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\"N\n\x14\x41utomatedAgentConfig\x12\x36\n\x05\x61gent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\x81\x14\n\x19HumanAgentAssistantConfig\x12K\n\x13notification_config\x18\x02 \x01(\x0b\x32..google.cloud.dialogflow.v2.NotificationConfig\x12m\n\x1dhuman_agent_suggestion_config\x18\x03 \x01(\x0b\x32\x46.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig\x12j\n\x1a\x65nd_user_suggestion_config\x18\x04 \x01(\x0b\x32\x46.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig\x12l\n\x17message_analysis_config\x18\x05 \x01(\x0b\x32K.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig\x1aH\n\x19SuggestionTriggerSettings\x12\x14\n\x0cno_smalltalk\x18\x01 \x01(\x08\x12\x15\n\ronly_end_user\x18\x02 \x01(\x08\x1a\xcc\x04\n\x17SuggestionFeatureConfig\x12I\n\x12suggestion_feature\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SuggestionFeature\x12%\n\x1d\x65nable_event_based_suggestion\x18\x03 \x01(\x08\x12t\n\x1bsuggestion_trigger_settings\x18\n \x01(\x0b\x32O.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings\x12\x61\n\x0cquery_config\x18\x06 \x01(\x0b\x32K.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig\x12p\n\x19\x63onversation_model_config\x18\x07 \x01(\x0b\x32M.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig\x12t\n\x1b\x63onversation_process_config\x18\x08 \x01(\x0b\x32O.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig\x1a\x9e\x01\n\x10SuggestionConfig\x12\x66\n\x0f\x66\x65\x61ture_configs\x18\x02 \x03(\x0b\x32M.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig\x12\"\n\x1agroup_suggestion_responses\x18\x03 \x01(\x08\x1a\xfc\x07\n\x15SuggestionQueryConfig\x12\x8b\x01\n\x1bknowledge_base_query_source\x18\x01 \x01(\x0b\x32\x64.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\x00\x12\x80\x01\n\x15\x64ocument_query_source\x18\x02 \x01(\x0b\x32_.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceH\x00\x12\x84\x01\n\x17\x64ialogflow_query_source\x18\x03 \x01(\x0b\x32\x61.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\x00\x12\x13\n\x0bmax_results\x18\x04 \x01(\x05\x12\x1c\n\x14\x63onfidence_threshold\x18\x05 \x01(\x02\x12\x82\x01\n\x17\x63ontext_filter_settings\x18\x07 \x01(\x0b\x32\x61.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings\x1a\x64\n\x18KnowledgeBaseQuerySource\x12H\n\x0fknowledge_bases\x18\x01 \x03(\tB/\xe0\x41\x02\xfa\x41)\n\'dialogflow.googleapis.com/KnowledgeBase\x1aT\n\x13\x44ocumentQuerySource\x12=\n\tdocuments\x18\x01 \x03(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\x1aO\n\x15\x44ialogflowQuerySource\x12\x36\n\x05\x61gent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x1av\n\x15\x43ontextFilterSettings\x12\x1d\n\x15\x64rop_handoff_messages\x18\x01 \x01(\x08\x12#\n\x1b\x64rop_virtual_agent_messages\x18\x02 \x01(\x08\x12\x19\n\x11\x64rop_ivr_messages\x18\x03 \x01(\x08\x42\x0e\n\x0cquery_source\x1az\n\x17\x43onversationModelConfig\x12?\n\x05model\x18\x01 \x01(\tB0\xfa\x41-\n+dialogflow.googleapis.com/ConversationModel\x12\x1e\n\x16\x62\x61seline_model_version\x18\x08 \x01(\t\x1a;\n\x19\x43onversationProcessConfig\x12\x1e\n\x16recent_sentences_count\x18\x02 \x01(\x05\x1a\\\n\x15MessageAnalysisConfig\x12 \n\x18\x65nable_entity_extraction\x18\x02 \x01(\x08\x12!\n\x19\x65nable_sentiment_analysis\x18\x03 \x01(\x08\"\xc4\x03\n\x17HumanAgentHandoffConfig\x12\x62\n\x12live_person_config\x18\x01 \x01(\x0b\x32\x44.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigH\x00\x12u\n\x1csalesforce_live_agent_config\x18\x02 \x01(\x0b\x32M.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\x00\x1a/\n\x10LivePersonConfig\x12\x1b\n\x0e\x61\x63\x63ount_number\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a\x8b\x01\n\x19SalesforceLiveAgentConfig\x12\x1c\n\x0forganization_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rdeployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tbutton_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0f\x65ndpoint_domain\x18\x04 \x01(\tB\x03\xe0\x41\x02\x42\x0f\n\ragent_service\"\xbf\x01\n\x12NotificationConfig\x12\r\n\x05topic\x18\x01 \x01(\t\x12T\n\x0emessage_format\x18\x02 \x01(\x0e\x32<.google.cloud.dialogflow.v2.NotificationConfig.MessageFormat\"D\n\rMessageFormat\x12\x1e\n\x1aMESSAGE_FORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05PROTO\x10\x01\x12\x08\n\x04JSON\x10\x02\"3\n\rLoggingConfig\x12\"\n\x1a\x65nable_stackdriver_logging\x18\x03 \x01(\x08\"\xa5\x01\n\x11SuggestionFeature\x12@\n\x04type\x18\x01 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.SuggestionFeature.Type\"N\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41RTICLE_SUGGESTION\x10\x01\x12\x07\n\x03\x46\x41Q\x10\x02\x12\x0f\n\x0bSMART_REPLY\x10\x03\"\x8a\x02\n!SetSuggestionFeatureConfigRequest\x12!\n\x14\x63onversation_profile\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\x10participant_role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x02\x12u\n\x19suggestion_feature_config\x18\x03 \x01(\x0b\x32M.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigB\x03\xe0\x41\x02\"\xef\x01\n#ClearSuggestionFeatureConfigRequest\x12!\n\x14\x63onversation_profile\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\x10participant_role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x02\x12X\n\x17suggestion_feature_type\x18\x03 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\x03\xe0\x41\x02\"\xa3\x02\n+SetSuggestionFeatureConfigOperationMetadata\x12\x1c\n\x14\x63onversation_profile\x18\x01 \x01(\t\x12K\n\x10participant_role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x02\x12X\n\x17suggestion_feature_type\x18\x03 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\x03\xe0\x41\x02\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa5\x02\n-ClearSuggestionFeatureConfigOperationMetadata\x12\x1c\n\x14\x63onversation_profile\x18\x01 \x01(\t\x12K\n\x10participant_role\x18\x02 \x01(\x0e\x32,.google.cloud.dialogflow.v2.Participant.RoleB\x03\xe0\x41\x02\x12X\n\x17suggestion_feature_type\x18\x03 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\x03\xe0\x41\x02\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xb3\x14\n\x14\x43onversationProfiles\x12\x90\x02\n\x18ListConversationProfiles\x12;.google.cloud.dialogflow.v2.ListConversationProfilesRequest\x1a<.google.cloud.dialogflow.v2.ListConversationProfilesResponse\"y\x82\xd3\xe4\x93\x02j\x12,/v2/{parent=projects/*}/conversationProfilesZ:\x12\x38/v2/{parent=projects/*/locations/*}/conversationProfiles\xda\x41\x06parent\x12\xfd\x01\n\x16GetConversationProfile\x12\x39.google.cloud.dialogflow.v2.GetConversationProfileRequest\x1a/.google.cloud.dialogflow.v2.ConversationProfile\"w\x82\xd3\xe4\x93\x02j\x12,/v2/{name=projects/*/conversationProfiles/*}Z:\x12\x38/v2/{name=projects/*/locations/*/conversationProfiles/*}\xda\x41\x04name\x12\xc8\x02\n\x19\x43reateConversationProfile\x12<.google.cloud.dialogflow.v2.CreateConversationProfileRequest\x1a/.google.cloud.dialogflow.v2.ConversationProfile\"\xbb\x01\x82\xd3\xe4\x93\x02\x96\x01\",/v2/{parent=projects/*}/conversationProfiles:\x14\x63onversation_profileZP\"8/v2/{parent=projects/*/locations/*}/conversationProfiles:\x14\x63onversation_profile\xda\x41\x1bparent,conversation_profile\x12\xf7\x02\n\x19UpdateConversationProfile\x12<.google.cloud.dialogflow.v2.UpdateConversationProfileRequest\x1a/.google.cloud.dialogflow.v2.ConversationProfile\"\xea\x01\x82\xd3\xe4\x93\x02\xc0\x01\x32\x41/v2/{conversation_profile.name=projects/*/conversationProfiles/*}:\x14\x63onversation_profileZe2M/v2/{conversation_profile.name=projects/*/locations/*/conversationProfiles/*}:\x14\x63onversation_profile\xda\x41 conversation_profile,update_mask\x12\xea\x01\n\x19\x44\x65leteConversationProfile\x12<.google.cloud.dialogflow.v2.DeleteConversationProfileRequest\x1a\x16.google.protobuf.Empty\"w\x82\xd3\xe4\x93\x02j*,/v2/{name=projects/*/conversationProfiles/*}Z:*8/v2/{name=projects/*/locations/*/conversationProfiles/*}\xda\x41\x04name\x12\xe8\x03\n\x1aSetSuggestionFeatureConfig\x12=.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest\x1a\x1d.google.longrunning.Operation\"\xeb\x02\x82\xd3\xe4\x93\x02\xc6\x01\"W/v2/{conversation_profile=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\x01*Zh\"c/v2/{conversation_profile=projects/*/locations/*/conversationProfiles/*}:setSuggestionFeatureConfig:\x01*\xda\x41\x14\x63onversation_profile\xda\x41?conversation_profile,participant_role,suggestion_feature_config\xca\x41\x42\n\x13\x43onversationProfile\x12+SetSuggestionFeatureConfigOperationMetadata\x12\xf0\x03\n\x1c\x43learSuggestionFeatureConfig\x12?.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest\x1a\x1d.google.longrunning.Operation\"\xef\x02\x82\xd3\xe4\x93\x02\xca\x01\"Y/v2/{conversation_profile=projects/*/conversationProfiles/*}:clearSuggestionFeatureConfig:\x01*Zj\"e/v2/{conversation_profile=projects/*/locations/*/conversationProfiles/*}:clearSuggestionFeatureConfig:\x01*\xda\x41\x14\x63onversation_profile\xda\x41=conversation_profile,participant_role,suggestion_feature_type\xca\x41\x44\n\x13\x43onversationProfile\x12-ClearSuggestionFeatureConfigOperationMetadata\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xa0\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x18\x43onversationProfileProtoP\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|\n,dialogflow.googleapis.com/CXSecuritySettings\x12Lprojects/{project}/locations/{location}/securitySettings/{security_settings}b\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
35
|
+
["google.cloud.dialogflow.v2.SpeechToTextConfig", "google/cloud/dialogflow/v2/audio_config.proto"],
|
36
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
37
|
+
]
|
38
|
+
imports.each do |type_name, expected_filename|
|
39
|
+
import_file = pool.lookup(type_name).file_descriptor
|
40
|
+
if import_file.name != expected_filename
|
41
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
176
42
|
end
|
177
43
|
end
|
44
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
45
|
+
warn "This will become an error in the next major version."
|
178
46
|
end
|
179
47
|
|
180
48
|
module Google
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
credentials = @config.credentials
|
131
131
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
132
132
|
# but only if the default endpoint does not have a region prefix.
|
133
|
-
enable_self_signed_jwt = @config.endpoint ==
|
133
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
134
134
|
!@config.endpoint.split(".").first.include?("-")
|
135
135
|
credentials ||= Credentials.default scope: @config.scope,
|
136
136
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -941,7 +941,9 @@ module Google
|
|
941
941
|
class Configuration
|
942
942
|
extend ::Gapic::Config
|
943
943
|
|
944
|
-
|
944
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
945
|
+
|
946
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
945
947
|
config_attr :credentials, nil do |value|
|
946
948
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
947
949
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -126,7 +126,7 @@ module Google
|
|
126
126
|
credentials = @config.credentials
|
127
127
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
128
128
|
# but only if the default endpoint does not have a region prefix.
|
129
|
-
enable_self_signed_jwt = @config.endpoint ==
|
129
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
130
130
|
!@config.endpoint.split(".").first.include?("-")
|
131
131
|
credentials ||= Credentials.default scope: @config.scope,
|
132
132
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -745,7 +745,9 @@ module Google
|
|
745
745
|
class Configuration
|
746
746
|
extend ::Gapic::Config
|
747
747
|
|
748
|
-
|
748
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
749
|
+
|
750
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
749
751
|
config_attr :credentials, nil do |value|
|
750
752
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
751
753
|
allowed.any? { |klass| klass === value }
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_conversation_profiles_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_conversation_profile_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_conversation_profile_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_conversation_profile_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_conversation_profile_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_suggestion_feature_config_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_clear_suggestion_feature_config_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
credentials = @config.credentials
|
131
131
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
132
132
|
# but only if the default endpoint does not have a region prefix.
|
133
|
-
enable_self_signed_jwt = @config.endpoint ==
|
133
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
134
134
|
!@config.endpoint.split(".").first.include?("-")
|
135
135
|
credentials ||= Credentials.default scope: @config.scope,
|
136
136
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -966,7 +966,9 @@ module Google
|
|
966
966
|
class Configuration
|
967
967
|
extend ::Gapic::Config
|
968
968
|
|
969
|
-
|
969
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
970
|
+
|
971
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
970
972
|
config_attr :credentials, nil do |value|
|
971
973
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
972
974
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -126,7 +126,7 @@ module Google
|
|
126
126
|
credentials = @config.credentials
|
127
127
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
128
128
|
# but only if the default endpoint does not have a region prefix.
|
129
|
-
enable_self_signed_jwt = @config.endpoint ==
|
129
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
130
130
|
!@config.endpoint.split(".").first.include?("-")
|
131
131
|
credentials ||= Credentials.default scope: @config.scope,
|
132
132
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -780,7 +780,9 @@ module Google
|
|
780
780
|
class Configuration
|
781
781
|
extend ::Gapic::Config
|
782
782
|
|
783
|
-
|
783
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
784
|
+
|
785
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
784
786
|
config_attr :credentials, nil do |value|
|
785
787
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
786
788
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_conversation_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_conversations_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_conversation_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_complete_conversation_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_messages_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_suggest_conversation_summary_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_generate_stateless_summary_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|