google-cloud-discovery_engine-v1 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +33 -4
  4. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +39 -3
  5. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +968 -0
  6. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/credentials.rb +47 -0
  7. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +176 -0
  8. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +897 -0
  9. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +450 -0
  10. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest.rb +52 -0
  11. data/lib/google/cloud/discovery_engine/v1/conversational_search_service.rb +55 -0
  12. data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +33 -9
  13. data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +10 -1
  14. data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +153 -8
  15. data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +117 -0
  16. data/lib/google/cloud/discovery_engine/v1/rest.rb +2 -1
  17. data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +24 -1
  18. data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +10 -1
  19. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +119 -0
  20. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +117 -0
  21. data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +55 -10
  22. data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +67 -12
  23. data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +29 -6
  24. data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +10 -1
  25. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +74 -5
  26. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +117 -0
  27. data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
  28. data/lib/google/cloud/discovery_engine/v1.rb +2 -1
  29. data/lib/google/cloud/discoveryengine/v1/common_pb.rb +2 -1
  30. data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +1 -1
  31. data/lib/google/cloud/discoveryengine/v1/conversation_pb.rb +54 -0
  32. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +61 -0
  33. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +67 -0
  34. data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +1 -1
  35. data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +13 -1
  36. data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
  37. data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +1 -1
  38. data/proto_docs/google/api/field_behavior.rb +14 -0
  39. data/proto_docs/google/cloud/discoveryengine/v1/common.rb +19 -2
  40. data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +15 -2
  41. data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +113 -0
  42. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +206 -0
  43. data/proto_docs/google/cloud/discoveryengine/v1/document.rb +8 -5
  44. data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +4 -3
  45. data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +23 -19
  46. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +455 -19
  47. data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +44 -32
  48. data/proto_docs/google/cloud/discoveryengine/v1/user_event_service.rb +1 -1
  49. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  50. metadata +38 -5
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/discoveryengine/v1/user_event_service_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -149,12 +150,19 @@ module Google
149
150
  config.endpoint = @config.endpoint
150
151
  end
151
152
 
153
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
154
+ config.credentials = credentials
155
+ config.quota_project = @quota_project_id
156
+ config.endpoint = @config.endpoint
157
+ end
158
+
152
159
  @user_event_service_stub = ::Gapic::ServiceStub.new(
153
160
  ::Google::Cloud::DiscoveryEngine::V1::UserEventService::Stub,
154
161
  credentials: credentials,
155
162
  endpoint: @config.endpoint,
156
163
  channel_args: @config.channel_args,
157
- interceptors: @config.interceptors
164
+ interceptors: @config.interceptors,
165
+ channel_pool_config: @config.channel_pool
158
166
  )
159
167
  end
160
168
 
@@ -165,6 +173,13 @@ module Google
165
173
  #
166
174
  attr_reader :operations_client
167
175
 
176
+ ##
177
+ # Get the associated client for mix-in of the Locations.
178
+ #
179
+ # @return [Google::Cloud::Location::Locations::Client]
180
+ #
181
+ attr_reader :location_client
182
+
168
183
  # Service calls
169
184
 
170
185
  ##
@@ -257,7 +272,7 @@ module Google
257
272
 
258
273
  ##
259
274
  # Writes a single user event from the browser. This uses a GET request to
260
- # due to browser restriction of POST-ing to a 3rd party domain.
275
+ # due to browser restriction of POST-ing to a third-party domain.
261
276
  #
262
277
  # This method is used only by the Discovery Engine API JavaScript pixel and
263
278
  # Google Tag Manager. Users should not call this method directly.
@@ -286,7 +301,7 @@ module Google
286
301
  # @param uri [::String]
287
302
  # The URL including cgi-parameters but excluding the hash fragment with a
288
303
  # length limit of 5,000 characters. This is often more useful than the
289
- # referer URL, because many browsers only send the domain for 3rd party
304
+ # referer URL, because many browsers only send the domain for third-party
290
305
  # requests.
291
306
  # @param ets [::Integer]
292
307
  # The event timestamp in milliseconds. This prevents browser caching of
@@ -382,11 +397,11 @@ module Google
382
397
  # the default parameter values, pass an empty Hash as a request object (see above).
383
398
  #
384
399
  # @param inline_source [::Google::Cloud::DiscoveryEngine::V1::ImportUserEventsRequest::InlineSource, ::Hash]
385
- # Required. The Inline source for the input content for UserEvents.
400
+ # The Inline source for the input content for UserEvents.
386
401
  # @param gcs_source [::Google::Cloud::DiscoveryEngine::V1::GcsSource, ::Hash]
387
- # Required. Cloud Storage location for the input content.
402
+ # Cloud Storage location for the input content.
388
403
  # @param bigquery_source [::Google::Cloud::DiscoveryEngine::V1::BigQuerySource, ::Hash]
389
- # Required. BigQuery input source.
404
+ # BigQuery input source.
390
405
  # @param parent [::String]
391
406
  # Required. Parent DataStore resource name, of the form
392
407
  # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
@@ -585,6 +600,14 @@ module Google
585
600
  end
586
601
  end
587
602
 
603
+ ##
604
+ # Configuration for the channel pool
605
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
606
+ #
607
+ def channel_pool
608
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
609
+ end
610
+
588
611
  ##
589
612
  # Configuration RPC class for the UserEventService API.
590
613
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -19,6 +19,7 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/discoveryengine/v1/user_event_service_pb"
21
21
  require "google/cloud/discovery_engine/v1/user_event_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
22
23
 
23
24
  module Google
24
25
  module Cloud
@@ -146,6 +147,12 @@ module Google
146
147
  config.endpoint = @config.endpoint
147
148
  end
148
149
 
150
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
151
+ config.credentials = credentials
152
+ config.quota_project = @quota_project_id
153
+ config.endpoint = @config.endpoint
154
+ end
155
+
149
156
  @user_event_service_stub = ::Google::Cloud::DiscoveryEngine::V1::UserEventService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
150
157
  end
151
158
 
@@ -156,6 +163,13 @@ module Google
156
163
  #
157
164
  attr_reader :operations_client
158
165
 
166
+ ##
167
+ # Get the associated client for mix-in of the Locations.
168
+ #
169
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
170
+ #
171
+ attr_reader :location_client
172
+
159
173
  # Service calls
160
174
 
161
175
  ##
@@ -188,6 +202,22 @@ module Google
188
202
  # @return [::Google::Cloud::DiscoveryEngine::V1::UserEvent]
189
203
  #
190
204
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
205
+ #
206
+ # @example Basic example
207
+ # require "google/cloud/discovery_engine/v1"
208
+ #
209
+ # # Create a client object. The client can be reused for multiple calls.
210
+ # client = Google::Cloud::DiscoveryEngine::V1::UserEventService::Rest::Client.new
211
+ #
212
+ # # Create a request. To set request fields, pass in keyword arguments.
213
+ # request = Google::Cloud::DiscoveryEngine::V1::WriteUserEventRequest.new
214
+ #
215
+ # # Call the write_user_event method.
216
+ # result = client.write_user_event request
217
+ #
218
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::UserEvent.
219
+ # p result
220
+ #
191
221
  def write_user_event request, options = nil
192
222
  raise ::ArgumentError, "request must be provided" if request.nil?
193
223
 
@@ -225,7 +255,7 @@ module Google
225
255
 
226
256
  ##
227
257
  # Writes a single user event from the browser. This uses a GET request to
228
- # due to browser restriction of POST-ing to a 3rd party domain.
258
+ # due to browser restriction of POST-ing to a third-party domain.
229
259
  #
230
260
  # This method is used only by the Discovery Engine API JavaScript pixel and
231
261
  # Google Tag Manager. Users should not call this method directly.
@@ -254,7 +284,7 @@ module Google
254
284
  # @param uri [::String]
255
285
  # The URL including cgi-parameters but excluding the hash fragment with a
256
286
  # length limit of 5,000 characters. This is often more useful than the
257
- # referer URL, because many browsers only send the domain for 3rd party
287
+ # referer URL, because many browsers only send the domain for third-party
258
288
  # requests.
259
289
  # @param ets [::Integer]
260
290
  # The event timestamp in milliseconds. This prevents browser caching of
@@ -267,6 +297,22 @@ module Google
267
297
  # @return [::Google::Api::HttpBody]
268
298
  #
269
299
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
300
+ #
301
+ # @example Basic example
302
+ # require "google/cloud/discovery_engine/v1"
303
+ #
304
+ # # Create a client object. The client can be reused for multiple calls.
305
+ # client = Google::Cloud::DiscoveryEngine::V1::UserEventService::Rest::Client.new
306
+ #
307
+ # # Create a request. To set request fields, pass in keyword arguments.
308
+ # request = Google::Cloud::DiscoveryEngine::V1::CollectUserEventRequest.new
309
+ #
310
+ # # Call the collect_user_event method.
311
+ # result = client.collect_user_event request
312
+ #
313
+ # # The returned object is of type Google::Api::HttpBody.
314
+ # p result
315
+ #
270
316
  def collect_user_event request, options = nil
271
317
  raise ::ArgumentError, "request must be provided" if request.nil?
272
318
 
@@ -327,11 +373,11 @@ module Google
327
373
  # the default parameter values, pass an empty Hash as a request object (see above).
328
374
  #
329
375
  # @param inline_source [::Google::Cloud::DiscoveryEngine::V1::ImportUserEventsRequest::InlineSource, ::Hash]
330
- # Required. The Inline source for the input content for UserEvents.
376
+ # The Inline source for the input content for UserEvents.
331
377
  # @param gcs_source [::Google::Cloud::DiscoveryEngine::V1::GcsSource, ::Hash]
332
- # Required. Cloud Storage location for the input content.
378
+ # Cloud Storage location for the input content.
333
379
  # @param bigquery_source [::Google::Cloud::DiscoveryEngine::V1::BigQuerySource, ::Hash]
334
- # Required. BigQuery input source.
380
+ # BigQuery input source.
335
381
  # @param parent [::String]
336
382
  # Required. Parent DataStore resource name, of the form
337
383
  # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
@@ -345,6 +391,29 @@ module Google
345
391
  # @return [::Gapic::Operation]
346
392
  #
347
393
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
394
+ #
395
+ # @example Basic example
396
+ # require "google/cloud/discovery_engine/v1"
397
+ #
398
+ # # Create a client object. The client can be reused for multiple calls.
399
+ # client = Google::Cloud::DiscoveryEngine::V1::UserEventService::Rest::Client.new
400
+ #
401
+ # # Create a request. To set request fields, pass in keyword arguments.
402
+ # request = Google::Cloud::DiscoveryEngine::V1::ImportUserEventsRequest.new
403
+ #
404
+ # # Call the import_user_events method.
405
+ # result = client.import_user_events request
406
+ #
407
+ # # The returned object is of type Gapic::Operation. You can use it to
408
+ # # check the status of an operation, cancel it, or wait for results.
409
+ # # Here is how to wait for a response.
410
+ # result.wait_until_done! timeout: 60
411
+ # if result.response?
412
+ # p result.response
413
+ # else
414
+ # puts "No response received."
415
+ # end
416
+ #
348
417
  def import_user_events request, options = nil
349
418
  raise ::ArgumentError, "request must be provided" if request.nil?
350
419
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -741,6 +816,20 @@ module Google
741
816
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/?$}, false]
742
817
  ]
743
818
  )
819
+ .with_bindings(
820
+ uri_method: :get,
821
+ uri_template: "/v1/{name}/operations",
822
+ matches: [
823
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/?$}, false]
824
+ ]
825
+ )
826
+ .with_bindings(
827
+ uri_method: :get,
828
+ uri_template: "/v1/{name}/operations",
829
+ matches: [
830
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/?$}, false]
831
+ ]
832
+ )
744
833
  .with_bindings(
745
834
  uri_method: :get,
746
835
  uri_template: "/v1/{name}/operations",
@@ -748,6 +837,13 @@ module Google
748
837
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/?$}, false]
749
838
  ]
750
839
  )
840
+ .with_bindings(
841
+ uri_method: :get,
842
+ uri_template: "/v1/{name}/operations",
843
+ matches: [
844
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/?$}, false]
845
+ ]
846
+ )
751
847
  .with_bindings(
752
848
  uri_method: :get,
753
849
  uri_template: "/v1/{name}/operations",
@@ -839,6 +935,27 @@ module Google
839
935
  ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+/?$}, false]
840
936
  ]
841
937
  )
938
+ .with_bindings(
939
+ uri_method: :get,
940
+ uri_template: "/v1/{name}",
941
+ matches: [
942
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/operations/[^/]+/?$}, false]
943
+ ]
944
+ )
945
+ .with_bindings(
946
+ uri_method: :get,
947
+ uri_template: "/v1/{name}",
948
+ matches: [
949
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/operations/[^/]+/?$}, false]
950
+ ]
951
+ )
952
+ .with_bindings(
953
+ uri_method: :get,
954
+ uri_template: "/v1/{name}",
955
+ matches: [
956
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+/?$}, false]
957
+ ]
958
+ )
842
959
  .with_bindings(
843
960
  uri_method: :get,
844
961
  uri_template: "/v1/{name}",
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -17,9 +17,10 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/cloud/discovery_engine/v1/completion_service"
20
+ require "google/cloud/discovery_engine/v1/search_service"
21
+ require "google/cloud/discovery_engine/v1/conversational_search_service"
20
22
  require "google/cloud/discovery_engine/v1/document_service"
21
23
  require "google/cloud/discovery_engine/v1/schema_service"
22
- require "google/cloud/discovery_engine/v1/search_service"
23
24
  require "google/cloud/discovery_engine/v1/user_event_service"
24
25
  require "google/cloud/discovery_engine/v1/version"
25
26
 
@@ -7,7 +7,7 @@ require 'google/protobuf'
7
7
  require 'google/api/resource_pb'
8
8
 
9
9
 
10
- descriptor_data = "\n,google/cloud/discoveryengine/v1/common.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x19google/api/resource.proto\"0\n\x0f\x43ustomAttribute\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\"/\n\x08UserInfo\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x12\n\nuser_agent\x18\x02 \x01(\tB\xbe\x07\n#com.google.cloud.discoveryengine.v1B\x0b\x43ommonProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1\xea\x41\xe6\x01\n%discoveryengine.googleapis.com/Branch\x12Qprojects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}\x12jprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}\xea\x41\xc5\x01\n(discoveryengine.googleapis.com/DataStore\x12?projects/{project}/locations/{location}/dataStores/{data_store}\x12Xprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}\xea\x41\x89\x02\n,discoveryengine.googleapis.com/ServingConfig\x12_projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}\x12xprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}b\x06proto3"
10
+ descriptor_data = "\n,google/cloud/discoveryengine/v1/common.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x19google/api/resource.proto\"x\n\x08Interval\x12\x11\n\x07minimum\x18\x01 \x01(\x01H\x00\x12\x1b\n\x11\x65xclusive_minimum\x18\x02 \x01(\x01H\x00\x12\x11\n\x07maximum\x18\x03 \x01(\x01H\x01\x12\x1b\n\x11\x65xclusive_maximum\x18\x04 \x01(\x01H\x01\x42\x05\n\x03minB\x05\n\x03max\"0\n\x0f\x43ustomAttribute\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\"/\n\x08UserInfo\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x12\n\nuser_agent\x18\x02 \x01(\tB\xbe\x07\n#com.google.cloud.discoveryengine.v1B\x0b\x43ommonProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1\xea\x41\xe6\x01\n%discoveryengine.googleapis.com/Branch\x12Qprojects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}\x12jprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}\xea\x41\xc5\x01\n(discoveryengine.googleapis.com/DataStore\x12?projects/{project}/locations/{location}/dataStores/{data_store}\x12Xprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}\xea\x41\x89\x02\n,discoveryengine.googleapis.com/ServingConfig\x12_projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}\x12xprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}b\x06proto3"
11
11
 
12
12
  pool = Google::Protobuf::DescriptorPool.generated_pool
13
13
 
@@ -37,6 +37,7 @@ module Google
37
37
  module Cloud
38
38
  module DiscoveryEngine
39
39
  module V1
40
+ Interval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Interval").msgclass
40
41
  CustomAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.CustomAttribute").msgclass
41
42
  UserInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.UserInfo").msgclass
42
43
  end
@@ -10,7 +10,7 @@ require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
11
 
12
12
 
13
- descriptor_data = "\n8google/cloud/discoveryengine/v1/completion_service.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9d\x01\n\x14\x43ompleteQueryRequest\x12\x44\n\ndata_store\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bquery_model\x18\x03 \x01(\t\x12\x16\n\x0euser_pseudo_id\x18\x04 \x01(\t\"\xa1\x01\n\x15\x43ompleteQueryResponse\x12\x61\n\x11query_suggestions\x18\x01 \x03(\x0b\x32\x46.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion\x1a%\n\x0fQuerySuggestion\x12\x12\n\nsuggestion\x18\x01 \x01(\t2\x8a\x03\n\x11\x43ompletionService\x12\xa0\x02\n\rCompleteQuery\x12\x35.google.cloud.discoveryengine.v1.CompleteQueryRequest\x1a\x36.google.cloud.discoveryengine.v1.CompleteQueryResponse\"\x9f\x01\x82\xd3\xe4\x93\x02\x98\x01\x12\x42/v1/{data_store=projects/*/locations/*/dataStores/*}:completeQueryZR\x12P/v1/{data_store=projects/*/locations/*/collections/*/dataStores/*}:completeQuery\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x89\x02\n#com.google.cloud.discoveryengine.v1B\x16\x43ompletionServiceProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
13
+ descriptor_data = "\n8google/cloud/discoveryengine/v1/completion_service.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbf\x01\n\x14\x43ompleteQueryRequest\x12\x44\n\ndata_store\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bquery_model\x18\x03 \x01(\t\x12\x16\n\x0euser_pseudo_id\x18\x04 \x01(\t\x12 \n\x18include_tail_suggestions\x18\x05 \x01(\x08\"\xbf\x01\n\x15\x43ompleteQueryResponse\x12\x61\n\x11query_suggestions\x18\x01 \x03(\x0b\x32\x46.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion\x12\x1c\n\x14tail_match_triggered\x18\x02 \x01(\x08\x1a%\n\x0fQuerySuggestion\x12\x12\n\nsuggestion\x18\x01 \x01(\t2\x8a\x03\n\x11\x43ompletionService\x12\xa0\x02\n\rCompleteQuery\x12\x35.google.cloud.discoveryengine.v1.CompleteQueryRequest\x1a\x36.google.cloud.discoveryengine.v1.CompleteQueryResponse\"\x9f\x01\x82\xd3\xe4\x93\x02\x98\x01\x12\x42/v1/{data_store=projects/*/locations/*/dataStores/*}:completeQueryZR\x12P/v1/{data_store=projects/*/locations/*/collections/*/dataStores/*}:completeQuery\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x89\x02\n#com.google.cloud.discoveryengine.v1B\x16\x43ompletionServiceProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
14
14
 
15
15
  pool = Google::Protobuf::DescriptorPool.generated_pool
16
16
 
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/discoveryengine/v1/conversation.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/cloud/discoveryengine/v1/search_service_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+
12
+
13
+ descriptor_data = "\n2google/cloud/discoveryengine/v1/conversation.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/discoveryengine/v1/search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf6\x04\n\x0c\x43onversation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x42\n\x05state\x18\x02 \x01(\x0e\x32\x33.google.cloud.discoveryengine.v1.Conversation.State\x12\x16\n\x0euser_pseudo_id\x18\x03 \x01(\t\x12\x46\n\x08messages\x18\x04 \x03(\x0b\x32\x34.google.cloud.discoveryengine.v1.ConversationMessage\x12\x33\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\">\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\r\n\tCOMPLETED\x10\x02:\x86\x02\xea\x41\x82\x02\n+discoveryengine.googleapis.com/Conversation\x12\\projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}\x12uprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}\"Q\n\x05Reply\x12H\n\x07summary\x18\x03 \x01(\x0b\x32\x37.google.cloud.discoveryengine.v1.SearchResponse.Summary\"I\n\x13\x43onversationContext\x12\x19\n\x11\x63ontext_documents\x18\x01 \x03(\t\x12\x17\n\x0f\x61\x63tive_document\x18\x02 \x01(\t\"a\n\tTextInput\x12\r\n\x05input\x18\x01 \x01(\t\x12\x45\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x34.google.cloud.discoveryengine.v1.ConversationContext\"\xd1\x01\n\x13\x43onversationMessage\x12@\n\nuser_input\x18\x01 \x01(\x0b\x32*.google.cloud.discoveryengine.v1.TextInputH\x00\x12\x37\n\x05reply\x18\x02 \x01(\x0b\x32&.google.cloud.discoveryengine.v1.ReplyH\x00\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\t\n\x07messageB\x84\x02\n#com.google.cloud.discoveryengine.v1B\x11\x43onversationProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.cloud.discoveryengine.v1.SearchResponse.Summary", "google/cloud/discoveryengine/v1/search_service.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
+ end
36
+ end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
39
+ end
40
+
41
+ module Google
42
+ module Cloud
43
+ module DiscoveryEngine
44
+ module V1
45
+ Conversation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Conversation").msgclass
46
+ Conversation::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Conversation.State").enummodule
47
+ Reply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Reply").msgclass
48
+ ConversationContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.ConversationContext").msgclass
49
+ TextInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.TextInput").msgclass
50
+ ConversationMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.ConversationMessage").msgclass
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/discoveryengine/v1/conversational_search_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/cloud/discoveryengine/v1/conversation_pb'
12
+ require 'google/cloud/discoveryengine/v1/search_service_pb'
13
+ require 'google/protobuf/empty_pb'
14
+ require 'google/protobuf/field_mask_pb'
15
+
16
+
17
+ descriptor_data = "\nCgoogle/cloud/discoveryengine/v1/conversational_search_service.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/discoveryengine/v1/conversation.proto\x1a\x34google/cloud/discoveryengine/v1/search_service.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xbf\x04\n\x1b\x43onverseConversationRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+discoveryengine.googleapis.com/Conversation\x12>\n\x05query\x18\x02 \x01(\x0b\x32*.google.cloud.discoveryengine.v1.TextInputB\x03\xe0\x41\x02\x12I\n\x0eserving_config\x18\x03 \x01(\tB1\xfa\x41.\n,discoveryengine.googleapis.com/ServingConfig\x12\x43\n\x0c\x63onversation\x18\x05 \x01(\x0b\x32-.google.cloud.discoveryengine.v1.Conversation\x12\x13\n\x0bsafe_search\x18\x06 \x01(\x08\x12\x61\n\x0buser_labels\x18\x07 \x03(\x0b\x32L.google.cloud.discoveryengine.v1.ConverseConversationRequest.UserLabelsEntry\x12\x62\n\x0csummary_spec\x18\x08 \x01(\x0b\x32L.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf0\x01\n\x1c\x43onverseConversationResponse\x12\x35\n\x05reply\x18\x01 \x01(\x0b\x32&.google.cloud.discoveryengine.v1.Reply\x12\x43\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32-.google.cloud.discoveryengine.v1.Conversation\x12T\n\x0esearch_results\x18\x03 \x03(\x0b\x32<.google.cloud.discoveryengine.v1.SearchResponse.SearchResult\"\xa7\x01\n\x19\x43reateConversationRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12H\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32-.google.cloud.discoveryengine.v1.ConversationB\x03\xe0\x41\x02\"\x96\x01\n\x19UpdateConversationRequest\x12H\n\x0c\x63onversation\x18\x01 \x01(\x0b\x32-.google.cloud.discoveryengine.v1.ConversationB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"^\n\x19\x44\x65leteConversationRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+discoveryengine.googleapis.com/Conversation\"[\n\x16GetConversationRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+discoveryengine.googleapis.com/Conversation\"\xa5\x01\n\x18ListConversationsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\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\x12\x10\n\x08order_by\x18\x05 \x01(\t\"z\n\x19ListConversationsResponse\x12\x44\n\rconversations\x18\x01 \x03(\x0b\x32-.google.cloud.discoveryengine.v1.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xda\x0f\n\x1b\x43onversationalSearchService\x12\xd2\x02\n\x14\x43onverseConversation\x12<.google.cloud.discoveryengine.v1.ConverseConversationRequest\x1a=.google.cloud.discoveryengine.v1.ConverseConversationResponse\"\xbc\x01\x82\xd3\xe4\x93\x02\xa8\x01\"G/v1/{name=projects/*/locations/*/dataStores/*/conversations/*}:converse:\x01*ZZ\"U/v1/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:converse:\x01*\xda\x41\nname,query\x12\xcb\x02\n\x12\x43reateConversation\x12:.google.cloud.discoveryengine.v1.CreateConversationRequest\x1a-.google.cloud.discoveryengine.v1.Conversation\"\xc9\x01\x82\xd3\xe4\x93\x02\xac\x01\">/v1/{parent=projects/*/locations/*/dataStores/*}/conversations:\x0c\x63onversationZ\\\"L/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations:\x0c\x63onversation\xda\x41\x13parent,conversation\x12\x89\x02\n\x12\x44\x65leteConversation\x12:.google.cloud.discoveryengine.v1.DeleteConversationRequest\x1a\x16.google.protobuf.Empty\"\x9e\x01\x82\xd3\xe4\x93\x02\x90\x01*>/v1/{name=projects/*/locations/*/dataStores/*/conversations/*}ZN*L/v1/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}\xda\x41\x04name\x12\xea\x02\n\x12UpdateConversation\x12:.google.cloud.discoveryengine.v1.UpdateConversationRequest\x1a-.google.cloud.discoveryengine.v1.Conversation\"\xe8\x01\x82\xd3\xe4\x93\x02\xc6\x01\x32K/v1/{conversation.name=projects/*/locations/*/dataStores/*/conversations/*}:\x0c\x63onversationZi2Y/v1/{conversation.name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:\x0c\x63onversation\xda\x41\x18\x63onversation,update_mask\x12\x9a\x02\n\x0fGetConversation\x12\x37.google.cloud.discoveryengine.v1.GetConversationRequest\x1a-.google.cloud.discoveryengine.v1.Conversation\"\x9e\x01\x82\xd3\xe4\x93\x02\x90\x01\x12>/v1/{name=projects/*/locations/*/dataStores/*/conversations/*}ZN\x12L/v1/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}\xda\x41\x04name\x12\xad\x02\n\x11ListConversations\x12\x39.google.cloud.discoveryengine.v1.ListConversationsRequest\x1a:.google.cloud.discoveryengine.v1.ListConversationsResponse\"\xa0\x01\x82\xd3\xe4\x93\x02\x90\x01\x12>/v1/{parent=projects/*/locations/*/dataStores/*}/conversationsZN\x12L/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations\xda\x41\x06parent\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x93\x02\n#com.google.cloud.discoveryengine.v1B ConversationalSearchServiceProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.cloud.discoveryengine.v1.TextInput", "google/cloud/discoveryengine/v1/conversation.proto"],
33
+ ["google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec", "google/cloud/discoveryengine/v1/search_service.proto"],
34
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
40
+ end
41
+ end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
44
+ end
45
+
46
+ module Google
47
+ module Cloud
48
+ module DiscoveryEngine
49
+ module V1
50
+ ConverseConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.ConverseConversationRequest").msgclass
51
+ ConverseConversationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.ConverseConversationResponse").msgclass
52
+ CreateConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.CreateConversationRequest").msgclass
53
+ UpdateConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.UpdateConversationRequest").msgclass
54
+ DeleteConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.DeleteConversationRequest").msgclass
55
+ GetConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.GetConversationRequest").msgclass
56
+ ListConversationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.ListConversationsRequest").msgclass
57
+ ListConversationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.ListConversationsResponse").msgclass
58
+ end
59
+ end
60
+ end
61
+ end