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/intent.proto
|
3
4
|
|
@@ -13,299 +14,34 @@ require 'google/protobuf/empty_pb'
|
|
13
14
|
require 'google/protobuf/field_mask_pb'
|
14
15
|
require 'google/protobuf/struct_pb'
|
15
16
|
|
16
|
-
|
17
|
-
add_file("google/cloud/dialogflow/v2/intent.proto", :syntax => :proto3) do
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
add_message "google.cloud.dialogflow.v2.Intent.TrainingPhrase" do
|
41
|
-
optional :name, :string, 1
|
42
|
-
optional :type, :enum, 2, "google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type"
|
43
|
-
repeated :parts, :message, 3, "google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part"
|
44
|
-
optional :times_added_count, :int32, 4
|
45
|
-
end
|
46
|
-
add_message "google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part" do
|
47
|
-
optional :text, :string, 1
|
48
|
-
optional :entity_type, :string, 2
|
49
|
-
optional :alias, :string, 3
|
50
|
-
optional :user_defined, :bool, 4
|
51
|
-
end
|
52
|
-
add_enum "google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type" do
|
53
|
-
value :TYPE_UNSPECIFIED, 0
|
54
|
-
value :EXAMPLE, 1
|
55
|
-
value :TEMPLATE, 2
|
56
|
-
end
|
57
|
-
add_message "google.cloud.dialogflow.v2.Intent.Parameter" do
|
58
|
-
optional :name, :string, 1
|
59
|
-
optional :display_name, :string, 2
|
60
|
-
optional :value, :string, 3
|
61
|
-
optional :default_value, :string, 4
|
62
|
-
optional :entity_type_display_name, :string, 5
|
63
|
-
optional :mandatory, :bool, 6
|
64
|
-
repeated :prompts, :string, 7
|
65
|
-
optional :is_list, :bool, 8
|
66
|
-
end
|
67
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message" do
|
68
|
-
optional :platform, :enum, 6, "google.cloud.dialogflow.v2.Intent.Message.Platform"
|
69
|
-
oneof :message do
|
70
|
-
optional :text, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.Text"
|
71
|
-
optional :image, :message, 2, "google.cloud.dialogflow.v2.Intent.Message.Image"
|
72
|
-
optional :quick_replies, :message, 3, "google.cloud.dialogflow.v2.Intent.Message.QuickReplies"
|
73
|
-
optional :card, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Card"
|
74
|
-
optional :payload, :message, 5, "google.protobuf.Struct"
|
75
|
-
optional :simple_responses, :message, 7, "google.cloud.dialogflow.v2.Intent.Message.SimpleResponses"
|
76
|
-
optional :basic_card, :message, 8, "google.cloud.dialogflow.v2.Intent.Message.BasicCard"
|
77
|
-
optional :suggestions, :message, 9, "google.cloud.dialogflow.v2.Intent.Message.Suggestions"
|
78
|
-
optional :link_out_suggestion, :message, 10, "google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion"
|
79
|
-
optional :list_select, :message, 11, "google.cloud.dialogflow.v2.Intent.Message.ListSelect"
|
80
|
-
optional :carousel_select, :message, 12, "google.cloud.dialogflow.v2.Intent.Message.CarouselSelect"
|
81
|
-
optional :browse_carousel_card, :message, 22, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard"
|
82
|
-
optional :table_card, :message, 23, "google.cloud.dialogflow.v2.Intent.Message.TableCard"
|
83
|
-
optional :media_content, :message, 24, "google.cloud.dialogflow.v2.Intent.Message.MediaContent"
|
84
|
-
end
|
85
|
-
end
|
86
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.Text" do
|
87
|
-
repeated :text, :string, 1
|
88
|
-
end
|
89
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.Image" do
|
90
|
-
optional :image_uri, :string, 1
|
91
|
-
optional :accessibility_text, :string, 2
|
92
|
-
end
|
93
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.QuickReplies" do
|
94
|
-
optional :title, :string, 1
|
95
|
-
repeated :quick_replies, :string, 2
|
96
|
-
end
|
97
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.Card" do
|
98
|
-
optional :title, :string, 1
|
99
|
-
optional :subtitle, :string, 2
|
100
|
-
optional :image_uri, :string, 3
|
101
|
-
repeated :buttons, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Card.Button"
|
102
|
-
end
|
103
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.Card.Button" do
|
104
|
-
optional :text, :string, 1
|
105
|
-
optional :postback, :string, 2
|
106
|
-
end
|
107
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.SimpleResponse" do
|
108
|
-
optional :text_to_speech, :string, 1
|
109
|
-
optional :ssml, :string, 2
|
110
|
-
optional :display_text, :string, 3
|
111
|
-
end
|
112
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.SimpleResponses" do
|
113
|
-
repeated :simple_responses, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.SimpleResponse"
|
114
|
-
end
|
115
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.BasicCard" do
|
116
|
-
optional :title, :string, 1
|
117
|
-
optional :subtitle, :string, 2
|
118
|
-
optional :formatted_text, :string, 3
|
119
|
-
optional :image, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image"
|
120
|
-
repeated :buttons, :message, 5, "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button"
|
121
|
-
end
|
122
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button" do
|
123
|
-
optional :title, :string, 1
|
124
|
-
optional :open_uri_action, :message, 2, "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction"
|
125
|
-
end
|
126
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction" do
|
127
|
-
optional :uri, :string, 1
|
128
|
-
end
|
129
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.Suggestion" do
|
130
|
-
optional :title, :string, 1
|
131
|
-
end
|
132
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.Suggestions" do
|
133
|
-
repeated :suggestions, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.Suggestion"
|
134
|
-
end
|
135
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion" do
|
136
|
-
optional :destination_name, :string, 1
|
137
|
-
optional :uri, :string, 2
|
138
|
-
end
|
139
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.ListSelect" do
|
140
|
-
optional :title, :string, 1
|
141
|
-
repeated :items, :message, 2, "google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item"
|
142
|
-
optional :subtitle, :string, 3
|
143
|
-
end
|
144
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item" do
|
145
|
-
optional :info, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo"
|
146
|
-
optional :title, :string, 2
|
147
|
-
optional :description, :string, 3
|
148
|
-
optional :image, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image"
|
149
|
-
end
|
150
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.CarouselSelect" do
|
151
|
-
repeated :items, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item"
|
152
|
-
end
|
153
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item" do
|
154
|
-
optional :info, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo"
|
155
|
-
optional :title, :string, 2
|
156
|
-
optional :description, :string, 3
|
157
|
-
optional :image, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image"
|
158
|
-
end
|
159
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo" do
|
160
|
-
optional :key, :string, 1
|
161
|
-
repeated :synonyms, :string, 2
|
162
|
-
end
|
163
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.MediaContent" do
|
164
|
-
optional :media_type, :enum, 1, "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType"
|
165
|
-
repeated :media_objects, :message, 2, "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject"
|
166
|
-
end
|
167
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject" do
|
168
|
-
optional :name, :string, 1
|
169
|
-
optional :description, :string, 2
|
170
|
-
optional :content_url, :string, 5
|
171
|
-
oneof :image do
|
172
|
-
optional :large_image, :message, 3, "google.cloud.dialogflow.v2.Intent.Message.Image"
|
173
|
-
optional :icon, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image"
|
174
|
-
end
|
175
|
-
end
|
176
|
-
add_enum "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType" do
|
177
|
-
value :RESPONSE_MEDIA_TYPE_UNSPECIFIED, 0
|
178
|
-
value :AUDIO, 1
|
179
|
-
end
|
180
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard" do
|
181
|
-
repeated :items, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem"
|
182
|
-
optional :image_display_options, :enum, 2, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions"
|
183
|
-
end
|
184
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem" do
|
185
|
-
optional :open_uri_action, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction"
|
186
|
-
optional :title, :string, 2
|
187
|
-
optional :description, :string, 3
|
188
|
-
optional :image, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image"
|
189
|
-
optional :footer, :string, 5
|
190
|
-
end
|
191
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction" do
|
192
|
-
optional :url, :string, 1
|
193
|
-
optional :url_type_hint, :enum, 3, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint"
|
194
|
-
end
|
195
|
-
add_enum "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint" do
|
196
|
-
value :URL_TYPE_HINT_UNSPECIFIED, 0
|
197
|
-
value :AMP_ACTION, 1
|
198
|
-
value :AMP_CONTENT, 2
|
199
|
-
end
|
200
|
-
add_enum "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions" do
|
201
|
-
value :IMAGE_DISPLAY_OPTIONS_UNSPECIFIED, 0
|
202
|
-
value :GRAY, 1
|
203
|
-
value :WHITE, 2
|
204
|
-
value :CROPPED, 3
|
205
|
-
value :BLURRED_BACKGROUND, 4
|
206
|
-
end
|
207
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.TableCard" do
|
208
|
-
optional :title, :string, 1
|
209
|
-
optional :subtitle, :string, 2
|
210
|
-
optional :image, :message, 3, "google.cloud.dialogflow.v2.Intent.Message.Image"
|
211
|
-
repeated :column_properties, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties"
|
212
|
-
repeated :rows, :message, 5, "google.cloud.dialogflow.v2.Intent.Message.TableCardRow"
|
213
|
-
repeated :buttons, :message, 6, "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button"
|
214
|
-
end
|
215
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties" do
|
216
|
-
optional :header, :string, 1
|
217
|
-
optional :horizontal_alignment, :enum, 2, "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment"
|
218
|
-
end
|
219
|
-
add_enum "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment" do
|
220
|
-
value :HORIZONTAL_ALIGNMENT_UNSPECIFIED, 0
|
221
|
-
value :LEADING, 1
|
222
|
-
value :CENTER, 2
|
223
|
-
value :TRAILING, 3
|
224
|
-
end
|
225
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.TableCardRow" do
|
226
|
-
repeated :cells, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.TableCardCell"
|
227
|
-
optional :divider_after, :bool, 2
|
228
|
-
end
|
229
|
-
add_message "google.cloud.dialogflow.v2.Intent.Message.TableCardCell" do
|
230
|
-
optional :text, :string, 1
|
231
|
-
end
|
232
|
-
add_enum "google.cloud.dialogflow.v2.Intent.Message.Platform" do
|
233
|
-
value :PLATFORM_UNSPECIFIED, 0
|
234
|
-
value :FACEBOOK, 1
|
235
|
-
value :SLACK, 2
|
236
|
-
value :TELEGRAM, 3
|
237
|
-
value :KIK, 4
|
238
|
-
value :SKYPE, 5
|
239
|
-
value :LINE, 6
|
240
|
-
value :VIBER, 7
|
241
|
-
value :ACTIONS_ON_GOOGLE, 8
|
242
|
-
value :GOOGLE_HANGOUTS, 11
|
243
|
-
end
|
244
|
-
add_message "google.cloud.dialogflow.v2.Intent.FollowupIntentInfo" do
|
245
|
-
optional :followup_intent_name, :string, 1
|
246
|
-
optional :parent_followup_intent_name, :string, 2
|
247
|
-
end
|
248
|
-
add_enum "google.cloud.dialogflow.v2.Intent.WebhookState" do
|
249
|
-
value :WEBHOOK_STATE_UNSPECIFIED, 0
|
250
|
-
value :WEBHOOK_STATE_ENABLED, 1
|
251
|
-
value :WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING, 2
|
252
|
-
end
|
253
|
-
add_message "google.cloud.dialogflow.v2.ListIntentsRequest" do
|
254
|
-
optional :parent, :string, 1
|
255
|
-
optional :language_code, :string, 2
|
256
|
-
optional :intent_view, :enum, 3, "google.cloud.dialogflow.v2.IntentView"
|
257
|
-
optional :page_size, :int32, 4
|
258
|
-
optional :page_token, :string, 5
|
259
|
-
end
|
260
|
-
add_message "google.cloud.dialogflow.v2.ListIntentsResponse" do
|
261
|
-
repeated :intents, :message, 1, "google.cloud.dialogflow.v2.Intent"
|
262
|
-
optional :next_page_token, :string, 2
|
263
|
-
end
|
264
|
-
add_message "google.cloud.dialogflow.v2.GetIntentRequest" do
|
265
|
-
optional :name, :string, 1
|
266
|
-
optional :language_code, :string, 2
|
267
|
-
optional :intent_view, :enum, 3, "google.cloud.dialogflow.v2.IntentView"
|
268
|
-
end
|
269
|
-
add_message "google.cloud.dialogflow.v2.CreateIntentRequest" do
|
270
|
-
optional :parent, :string, 1
|
271
|
-
optional :intent, :message, 2, "google.cloud.dialogflow.v2.Intent"
|
272
|
-
optional :language_code, :string, 3
|
273
|
-
optional :intent_view, :enum, 4, "google.cloud.dialogflow.v2.IntentView"
|
274
|
-
end
|
275
|
-
add_message "google.cloud.dialogflow.v2.UpdateIntentRequest" do
|
276
|
-
optional :intent, :message, 1, "google.cloud.dialogflow.v2.Intent"
|
277
|
-
optional :language_code, :string, 2
|
278
|
-
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
279
|
-
optional :intent_view, :enum, 4, "google.cloud.dialogflow.v2.IntentView"
|
280
|
-
end
|
281
|
-
add_message "google.cloud.dialogflow.v2.DeleteIntentRequest" do
|
282
|
-
optional :name, :string, 1
|
283
|
-
end
|
284
|
-
add_message "google.cloud.dialogflow.v2.BatchUpdateIntentsRequest" do
|
285
|
-
optional :parent, :string, 1
|
286
|
-
optional :language_code, :string, 4
|
287
|
-
optional :update_mask, :message, 5, "google.protobuf.FieldMask"
|
288
|
-
optional :intent_view, :enum, 6, "google.cloud.dialogflow.v2.IntentView"
|
289
|
-
oneof :intent_batch do
|
290
|
-
optional :intent_batch_uri, :string, 2
|
291
|
-
optional :intent_batch_inline, :message, 3, "google.cloud.dialogflow.v2.IntentBatch"
|
292
|
-
end
|
293
|
-
end
|
294
|
-
add_message "google.cloud.dialogflow.v2.BatchUpdateIntentsResponse" do
|
295
|
-
repeated :intents, :message, 1, "google.cloud.dialogflow.v2.Intent"
|
296
|
-
end
|
297
|
-
add_message "google.cloud.dialogflow.v2.BatchDeleteIntentsRequest" do
|
298
|
-
optional :parent, :string, 1
|
299
|
-
repeated :intents, :message, 2, "google.cloud.dialogflow.v2.Intent"
|
300
|
-
end
|
301
|
-
add_message "google.cloud.dialogflow.v2.IntentBatch" do
|
302
|
-
repeated :intents, :message, 1, "google.cloud.dialogflow.v2.Intent"
|
303
|
-
end
|
304
|
-
add_enum "google.cloud.dialogflow.v2.IntentView" do
|
305
|
-
value :INTENT_VIEW_UNSPECIFIED, 0
|
306
|
-
value :INTENT_VIEW_FULL, 1
|
17
|
+
|
18
|
+
descriptor_data = "\n\'google/cloud/dialogflow/v2/intent.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/context.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd7\x38\n\x06Intent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12K\n\rwebhook_state\x18\x06 \x01(\x0e\x32/.google.cloud.dialogflow.v2.Intent.WebhookStateB\x03\xe0\x41\x01\x12\x15\n\x08priority\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bis_fallback\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0bml_disabled\x18\x13 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12live_agent_handoff\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0f\x65nd_interaction\x18\x15 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13input_context_names\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x65vents\x18\x08 \x03(\tB\x03\xe0\x41\x01\x12P\n\x10training_phrases\x18\t \x03(\x0b\x32\x31.google.cloud.dialogflow.v2.Intent.TrainingPhraseB\x03\xe0\x41\x01\x12\x13\n\x06\x61\x63tion\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x41\n\x0foutput_contexts\x18\x0b \x03(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x01\x12\x1b\n\x0ereset_contexts\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x45\n\nparameters\x18\r \x03(\x0b\x32,.google.cloud.dialogflow.v2.Intent.ParameterB\x03\xe0\x41\x01\x12\x41\n\x08messages\x18\x0e \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.MessageB\x03\xe0\x41\x01\x12\\\n\x1a\x64\x65\x66\x61ult_response_platforms\x18\x0f \x03(\x0e\x32\x33.google.cloud.dialogflow.v2.Intent.Message.PlatformB\x03\xe0\x41\x01\x12&\n\x19root_followup_intent_name\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12#\n\x1bparent_followup_intent_name\x18\x11 \x01(\t\x12X\n\x14\x66ollowup_intent_info\x18\x12 \x03(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.FollowupIntentInfoB\x03\xe0\x41\x03\x1a\xf1\x02\n\x0eTrainingPhrase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12I\n\x04type\x18\x02 \x01(\x0e\x32\x36.google.cloud.dialogflow.v2.Intent.TrainingPhrase.TypeB\x03\xe0\x41\x02\x12J\n\x05parts\x18\x03 \x03(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartB\x03\xe0\x41\x02\x12\x1e\n\x11times_added_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x1a]\n\x04Part\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x18\n\x0b\x65ntity_type\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cuser_defined\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45XAMPLE\x10\x01\x12\x10\n\x08TEMPLATE\x10\x02\x1a\x02\x08\x01\x1a\xca\x01\n\tParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rdefault_value\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18\x65ntity_type_display_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmandatory\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x14\n\x07prompts\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12\x14\n\x07is_list\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x96*\n\x07Message\x12?\n\x04text\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.v2.Intent.Message.TextH\x00\x12\x41\n\x05image\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageH\x00\x12P\n\rquick_replies\x18\x03 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesH\x00\x12?\n\x04\x63\x61rd\x18\x04 \x01(\x0b\x32/.google.cloud.dialogflow.v2.Intent.Message.CardH\x00\x12*\n\x07payload\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12V\n\x10simple_responses\x18\x07 \x01(\x0b\x32:.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesH\x00\x12J\n\nbasic_card\x18\x08 \x01(\x0b\x32\x34.google.cloud.dialogflow.v2.Intent.Message.BasicCardH\x00\x12M\n\x0bsuggestions\x18\t \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.Message.SuggestionsH\x00\x12[\n\x13link_out_suggestion\x18\n \x01(\x0b\x32<.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionH\x00\x12L\n\x0blist_select\x18\x0b \x01(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.Message.ListSelectH\x00\x12T\n\x0f\x63\x61rousel_select\x18\x0c \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectH\x00\x12]\n\x14\x62rowse_carousel_card\x18\x16 \x01(\x0b\x32=.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardH\x00\x12J\n\ntable_card\x18\x17 \x01(\x0b\x32\x34.google.cloud.dialogflow.v2.Intent.Message.TableCardH\x00\x12P\n\rmedia_content\x18\x18 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.MediaContentH\x00\x12J\n\x08platform\x18\x06 \x01(\x0e\x32\x33.google.cloud.dialogflow.v2.Intent.Message.PlatformB\x03\xe0\x41\x01\x1a\x19\n\x04Text\x12\x11\n\x04text\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a@\n\x05Image\x12\x16\n\timage_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x61\x63\x63\x65ssibility_text\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1a>\n\x0cQuickReplies\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rquick_replies\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a\xcb\x01\n\x04\x43\x61rd\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08subtitle\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\timage_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x07\x62uttons\x18\x04 \x03(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.Message.Card.ButtonB\x03\xe0\x41\x01\x1a\x32\n\x06\x42utton\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08postback\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1aQ\n\x0eSimpleResponse\x12\x16\n\x0etext_to_speech\x18\x01 \x01(\t\x12\x0c\n\x04ssml\x18\x02 \x01(\t\x12\x19\n\x0c\x64isplay_text\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1ak\n\x0fSimpleResponses\x12X\n\x10simple_responses\x18\x01 \x03(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SimpleResponseB\x03\xe0\x41\x02\x1a\x88\x03\n\tBasicCard\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08subtitle\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\x0e\x66ormatted_text\x18\x03 \x01(\t\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x12Q\n\x07\x62uttons\x18\x05 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonB\x03\xe0\x41\x01\x1a\x9e\x01\n\x06\x42utton\x12\r\n\x05title\x18\x01 \x01(\t\x12g\n\x0fopen_uri_action\x18\x02 \x01(\x0b\x32I.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriActionB\x03\xe0\x41\x02\x1a\x1c\n\rOpenUriAction\x12\x0b\n\x03uri\x18\x01 \x01(\t\x1a \n\nSuggestion\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a^\n\x0bSuggestions\x12O\n\x0bsuggestions\x18\x01 \x03(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.Message.SuggestionB\x03\xe0\x41\x02\x1a\x44\n\x11LinkOutSuggestion\x12\x1d\n\x10\x64\x65stination_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\xd2\x02\n\nListSelect\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12N\n\x05items\x18\x02 \x03(\x0b\x32:.google.cloud.dialogflow.v2.Intent.Message.ListSelect.ItemB\x03\xe0\x41\x02\x12\x15\n\x08subtitle\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a\xc8\x01\n\x04Item\x12L\n\x04info\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SelectItemInfoB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x1a\xaf\x02\n\x0e\x43\x61rouselSelect\x12R\n\x05items\x18\x01 \x03(\x0b\x32>.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.ItemB\x03\xe0\x41\x02\x1a\xc8\x01\n\x04Item\x12L\n\x04info\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SelectItemInfoB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x1a\x39\n\x0eSelectItemInfo\x12\x10\n\x03key\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08synonyms\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a\x8e\x04\n\x0cMediaContent\x12\x62\n\nmedia_type\x18\x01 \x01(\x0e\x32I.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaTypeB\x03\xe0\x41\x01\x12\x62\n\rmedia_objects\x18\x02 \x03(\x0b\x32K.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject\x1a\xf0\x01\n\x13ResponseMediaObject\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12L\n\x0blarge_image\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01H\x00\x12\x45\n\x04icon\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01H\x00\x12\x13\n\x0b\x63ontent_url\x18\x05 \x01(\tB\x07\n\x05image\"C\n\x11ResponseMediaType\x12#\n\x1fRESPONSE_MEDIA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41UDIO\x10\x01\x1a\xff\x06\n\x12\x42rowseCarouselCard\x12\x63\n\x05items\x18\x01 \x03(\x0b\x32T.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem\x12u\n\x15image_display_options\x18\x02 \x01(\x0e\x32Q.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptionsB\x03\xe0\x41\x01\x1a\x94\x04\n\x16\x42rowseCarouselCardItem\x12{\n\x0fopen_uri_action\x18\x01 \x01(\x0b\x32\x62.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction\x12\r\n\x05title\x18\x02 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x12\x13\n\x06\x66ooter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x1a\xf8\x01\n\rOpenUrlAction\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x8a\x01\n\rurl_type_hint\x18\x03 \x01(\x0e\x32n.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHintB\x03\xe0\x41\x01\"M\n\x0bUrlTypeHint\x12\x1d\n\x19URL_TYPE_HINT_UNSPECIFIED\x10\x00\x12\x0e\n\nAMP_ACTION\x10\x01\x12\x0f\n\x0b\x41MP_CONTENT\x10\x02\"v\n\x13ImageDisplayOptions\x12%\n!IMAGE_DISPLAY_OPTIONS_UNSPECIFIED\x10\x00\x12\x08\n\x04GRAY\x10\x01\x12\t\n\x05WHITE\x10\x02\x12\x0b\n\x07\x43ROPPED\x10\x03\x12\x16\n\x12\x42LURRED_BACKGROUND\x10\x04\x1a\xf3\x02\n\tTableCard\x12\r\n\x05title\x18\x01 \x01(\t\x12\x15\n\x08subtitle\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x12[\n\x11\x63olumn_properties\x18\x04 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesB\x03\xe0\x41\x01\x12J\n\x04rows\x18\x05 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.TableCardRowB\x03\xe0\x41\x01\x12Q\n\x07\x62uttons\x18\x06 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonB\x03\xe0\x41\x01\x1a\xfa\x01\n\x10\x43olumnProperties\x12\x0e\n\x06header\x18\x01 \x01(\t\x12r\n\x14horizontal_alignment\x18\x02 \x01(\x0e\x32O.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignmentB\x03\xe0\x41\x01\"b\n\x13HorizontalAlignment\x12$\n HORIZONTAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x0b\n\x07LEADING\x10\x01\x12\n\n\x06\x43\x45NTER\x10\x02\x12\x0c\n\x08TRAILING\x10\x03\x1ax\n\x0cTableCardRow\x12L\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\x38.google.cloud.dialogflow.v2.Intent.Message.TableCardCellB\x03\xe0\x41\x01\x12\x1a\n\rdivider_after\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x1d\n\rTableCardCell\x12\x0c\n\x04text\x18\x01 \x01(\t\"\xa0\x01\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x46\x41\x43\x45\x42OOK\x10\x01\x12\t\n\x05SLACK\x10\x02\x12\x0c\n\x08TELEGRAM\x10\x03\x12\x07\n\x03KIK\x10\x04\x12\t\n\x05SKYPE\x10\x05\x12\x08\n\x04LINE\x10\x06\x12\t\n\x05VIBER\x10\x07\x12\x15\n\x11\x41\x43TIONS_ON_GOOGLE\x10\x08\x12\x13\n\x0fGOOGLE_HANGOUTS\x10\x0b\x42\t\n\x07message\x1aW\n\x12\x46ollowupIntentInfo\x12\x1c\n\x14\x66ollowup_intent_name\x18\x01 \x01(\t\x12#\n\x1bparent_followup_intent_name\x18\x02 \x01(\t\"t\n\x0cWebhookState\x12\x1d\n\x19WEBHOOK_STATE_UNSPECIFIED\x10\x00\x12\x19\n\x15WEBHOOK_STATE_ENABLED\x10\x01\x12*\n&WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING\x10\x02:\x91\x01\xea\x41\x8d\x01\n dialogflow.googleapis.com/Intent\x12)projects/{project}/agent/intents/{intent}\x12>projects/{project}/locations/{location}/agent/intents/{intent}\"\xdd\x01\n\x12ListIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x03 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"c\n\x13ListIntentsResponse\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa8\x01\n\x10GetIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x03 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\"\xe6\x01\n\x13\x43reateIntentRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x37\n\x06intent\x18\x02 \x01(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x04 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\"\xe2\x01\n\x13UpdateIntentRequest\x12\x37\n\x06intent\x18\x01 \x01(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x04 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\"M\n\x13\x44\x65leteIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\"\xdd\x02\n\x19\x42\x61tchUpdateIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x1a\n\x10intent_batch_uri\x18\x02 \x01(\tH\x00\x12\x46\n\x13intent_batch_inline\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.IntentBatchH\x00\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x06 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\x42\x0e\n\x0cintent_batch\"Q\n\x1a\x42\x61tchUpdateIntentsResponse\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent\"\x8f\x01\n\x19\x42\x61tchDeleteIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x38\n\x07intents\x18\x02 \x03(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x03\xe0\x41\x02\"B\n\x0bIntentBatch\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent*?\n\nIntentView\x12\x1b\n\x17INTENT_VIEW_UNSPECIFIED\x10\x00\x12\x14\n\x10INTENT_VIEW_FULL\x10\x01\x32\xf3\x10\n\x07Intents\x12\xf0\x02\n\x0bListIntents\x12..google.cloud.dialogflow.v2.ListIntentsRequest\x1a/.google.cloud.dialogflow.v2.ListIntentsResponse\"\xff\x01\x82\xd3\xe4\x93\x02\xd8\x01\x12%/v2/{parent=projects/*/agent}/intentsZ3\x12\x31/v2/{parent=projects/*/locations/*/agent}/intentsZ6\x12\x34/v2/{parent=projects/*/agent/environments/*}/intentsZB\x12@/v2/{parent=projects/*/locations/*/agent/environments/*}/intents\xda\x41\x06parent\xda\x41\x14parent,language_code\x12\xdd\x01\n\tGetIntent\x12,.google.cloud.dialogflow.v2.GetIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"~\x82\xd3\xe4\x93\x02\\\x12%/v2/{name=projects/*/agent/intents/*}Z3\x12\x31/v2/{name=projects/*/locations/*/agent/intents/*}\xda\x41\x04name\xda\x41\x12name,language_code\x12\x86\x02\n\x0c\x43reateIntent\x12/.google.cloud.dialogflow.v2.CreateIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"\xa0\x01\x82\xd3\xe4\x93\x02l\"%/v2/{parent=projects/*/agent}/intents:\x06intentZ;\"1/v2/{parent=projects/*/locations/*/agent}/intents:\x06intent\xda\x41\rparent,intent\xda\x41\x1bparent,intent,language_code\x12\xa0\x02\n\x0cUpdateIntent\x12/.google.cloud.dialogflow.v2.UpdateIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"\xba\x01\x82\xd3\xe4\x93\x02z2,/v2/{intent.name=projects/*/agent/intents/*}:\x06intentZB28/v2/{intent.name=projects/*/locations/*/agent/intents/*}:\x06intent\xda\x41\x14intent,language_code\xda\x41 intent,language_code,update_mask\x12\xc2\x01\n\x0c\x44\x65leteIntent\x12/.google.cloud.dialogflow.v2.DeleteIntentRequest\x1a\x16.google.protobuf.Empty\"i\x82\xd3\xe4\x93\x02\\*%/v2/{name=projects/*/agent/intents/*}Z3*1/v2/{name=projects/*/locations/*/agent/intents/*}\xda\x41\x04name\x12\xf6\x02\n\x12\x42\x61tchUpdateIntents\x12\x35.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest\x1a\x1d.google.longrunning.Operation\"\x89\x02\x82\xd3\xe4\x93\x02z\"1/v2/{parent=projects/*/agent}/intents:batchUpdate:\x01*ZB\"=/v2/{parent=projects/*/locations/*/agent}/intents:batchUpdate:\x01*\xda\x41\x17parent,intent_batch_uri\xda\x41\x1aparent,intent_batch_inline\xca\x41O\n5google.cloud.dialogflow.v2.BatchUpdateIntentsResponse\x12\x16google.protobuf.Struct\x12\xb0\x02\n\x12\x42\x61tchDeleteIntents\x12\x35.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest\x1a\x1d.google.longrunning.Operation\"\xc3\x01\x82\xd3\xe4\x93\x02z\"1/v2/{parent=projects/*/agent}/intents:batchDelete:\x01*ZB\"=/v2/{parent=projects/*/locations/*/agent}/intents:batchDelete:\x01*\xda\x41\x0eparent,intents\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x94\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0bIntentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
19
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError => e
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.cloud.dialogflow.v2.Context", "google/cloud/dialogflow/v2/context.proto"],
|
34
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
35
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
36
|
+
]
|
37
|
+
imports.each do |type_name, expected_filename|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
39
|
+
if import_file.name != expected_filename
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
307
41
|
end
|
308
42
|
end
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
44
|
+
warn "This will become an error in the next major version."
|
309
45
|
end
|
310
46
|
|
311
47
|
module Google
|
@@ -129,7 +129,7 @@ module Google
|
|
129
129
|
credentials = @config.credentials
|
130
130
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
131
131
|
# but only if the default endpoint does not have a region prefix.
|
132
|
-
enable_self_signed_jwt = @config.endpoint ==
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
134
134
|
credentials ||= Credentials.default scope: @config.scope,
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -987,7 +987,9 @@ module Google
|
|
987
987
|
class Configuration
|
988
988
|
extend ::Gapic::Config
|
989
989
|
|
990
|
-
|
990
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
991
|
+
|
992
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
991
993
|
config_attr :credentials, nil do |value|
|
992
994
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
993
995
|
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
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
credentials = @config.credentials
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -791,7 +791,9 @@ module Google
|
|
791
791
|
class Configuration
|
792
792
|
extend ::Gapic::Config
|
793
793
|
|
794
|
-
|
794
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
795
|
+
|
796
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
795
797
|
config_attr :credentials, nil do |value|
|
796
798
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
797
799
|
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_intents_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_intent_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_intent_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_intent_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_intent_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_batch_update_intents_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_batch_delete_intents_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
|
@@ -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/knowledge_base.proto
|
3
4
|
|
@@ -10,39 +11,32 @@ require 'google/api/resource_pb'
|
|
10
11
|
require 'google/protobuf/empty_pb'
|
11
12
|
require 'google/protobuf/field_mask_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
optional :knowledge_base, :message, 2, "google.cloud.dialogflow.v2.KnowledgeBase"
|
36
|
-
end
|
37
|
-
add_message "google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest" do
|
38
|
-
optional :name, :string, 1
|
39
|
-
optional :force, :bool, 2
|
40
|
-
end
|
41
|
-
add_message "google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest" do
|
42
|
-
optional :knowledge_base, :message, 1, "google.cloud.dialogflow.v2.KnowledgeBase"
|
43
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
14
|
+
|
15
|
+
descriptor_data = "\n/google/cloud/dialogflow/v2/knowledge_base.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\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xfc\x01\n\rKnowledgeBase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x04 \x01(\t:\xaa\x01\xea\x41\xa6\x01\n\'dialogflow.googleapis.com/KnowledgeBase\x12\x32projects/{project}/knowledgeBases/{knowledge_base}\x12Gprojects/{project}/locations/{location}/knowledgeBases/{knowledge_base}\"\x93\x01\n\x19ListKnowledgeBasesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dialogflow.googleapis.com/KnowledgeBase\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"y\n\x1aListKnowledgeBasesResponse\x12\x42\n\x0fknowledge_bases\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.v2.KnowledgeBase\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetKnowledgeBaseRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dialogflow.googleapis.com/KnowledgeBase\"\xa5\x01\n\x1a\x43reateKnowledgeBaseRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dialogflow.googleapis.com/KnowledgeBase\x12\x46\n\x0eknowledge_base\x18\x02 \x01(\x0b\x32).google.cloud.dialogflow.v2.KnowledgeBaseB\x03\xe0\x41\x02\"o\n\x1a\x44\x65leteKnowledgeBaseRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dialogflow.googleapis.com/KnowledgeBase\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x9a\x01\n\x1aUpdateKnowledgeBaseRequest\x12\x46\n\x0eknowledge_base\x18\x01 \x01(\x0b\x32).google.cloud.dialogflow.v2.KnowledgeBaseB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x32\xb4\r\n\x0eKnowledgeBases\x12\xa4\x02\n\x12ListKnowledgeBases\x12\x35.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest\x1a\x36.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse\"\x9e\x01\x82\xd3\xe4\x93\x02\x8e\x01\x12&/v2/{parent=projects/*}/knowledgeBasesZ4\x12\x32/v2/{parent=projects/*/locations/*}/knowledgeBasesZ.\x12,/v2/{parent=projects/*/agent}/knowledgeBases\xda\x41\x06parent\x12\x91\x02\n\x10GetKnowledgeBase\x12\x33.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest\x1a).google.cloud.dialogflow.v2.KnowledgeBase\"\x9c\x01\x82\xd3\xe4\x93\x02\x8e\x01\x12&/v2/{name=projects/*/knowledgeBases/*}Z4\x12\x32/v2/{name=projects/*/locations/*/knowledgeBases/*}Z.\x12,/v2/{name=projects/*/agent/knowledgeBases/*}\xda\x41\x04name\x12\xd8\x02\n\x13\x43reateKnowledgeBase\x12\x36.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest\x1a).google.cloud.dialogflow.v2.KnowledgeBase\"\xdd\x01\x82\xd3\xe4\x93\x02\xbe\x01\"&/v2/{parent=projects/*}/knowledgeBases:\x0eknowledge_baseZD\"2/v2/{parent=projects/*/locations/*}/knowledgeBases:\x0eknowledge_baseZ>\",/v2/{parent=projects/*/agent}/knowledgeBases:\x0eknowledge_base\xda\x41\x15parent,knowledge_base\x12\x84\x02\n\x13\x44\x65leteKnowledgeBase\x12\x36.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest\x1a\x16.google.protobuf.Empty\"\x9c\x01\x82\xd3\xe4\x93\x02\x8e\x01*&/v2/{name=projects/*/knowledgeBases/*}Z4*2/v2/{name=projects/*/locations/*/knowledgeBases/*}Z.*,/v2/{name=projects/*/agent/knowledgeBases/*}\xda\x41\x04name\x12\x8a\x03\n\x13UpdateKnowledgeBase\x12\x36.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest\x1a).google.cloud.dialogflow.v2.KnowledgeBase\"\x8f\x02\x82\xd3\xe4\x93\x02\xeb\x01\x32\x35/v2/{knowledge_base.name=projects/*/knowledgeBases/*}:\x0eknowledge_baseZS2A/v2/{knowledge_base.name=projects/*/locations/*/knowledgeBases/*}:\x0eknowledge_baseZM2;/v2/{knowledge_base.name=projects/*/agent/knowledgeBases/*}:\x0eknowledge_base\xda\x41\x1aknowledge_base,update_mask\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9b\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x12KnowledgeBaseProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
31
|
+
]
|
32
|
+
imports.each do |type_name, expected_filename|
|
33
|
+
import_file = pool.lookup(type_name).file_descriptor
|
34
|
+
if import_file.name != expected_filename
|
35
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
44
36
|
end
|
45
37
|
end
|
38
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
+
warn "This will become an error in the next major version."
|
46
40
|
end
|
47
41
|
|
48
42
|
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
|
@@ -723,7 +723,9 @@ module Google
|
|
723
723
|
class Configuration
|
724
724
|
extend ::Gapic::Config
|
725
725
|
|
726
|
-
|
726
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
727
|
+
|
728
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
727
729
|
config_attr :credentials, nil do |value|
|
728
730
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
729
731
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|