google-cloud-discovery_engine-v1beta 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +155 -0
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/paths.rb +62 -0
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +148 -0
  5. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +76 -0
  6. data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +6 -6
  7. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +6 -6
  8. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +18 -13
  9. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +18 -13
  10. data/lib/google/cloud/discovery_engine/v1beta/document_service/paths.rb +25 -0
  11. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +3 -3
  12. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +3 -3
  13. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +218 -4
  14. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb +85 -0
  15. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +125 -4
  16. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/service_stub.rb +60 -0
  17. data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +1 -1
  18. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +1 -1
  19. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +398 -1
  20. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +390 -1
  21. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +76 -0
  22. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +2 -2
  23. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +2 -2
  24. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +324 -1
  25. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/paths.rb +49 -0
  26. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +303 -1
  27. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +193 -0
  28. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +1 -1
  29. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +1 -1
  30. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  31. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +1 -1
  32. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +1 -1
  33. data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +18 -1
  34. data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +2 -0
  35. data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +1 -1
  36. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +4 -1
  37. data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +1 -1
  38. data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +7 -1
  39. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +2 -1
  40. data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
  41. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +24 -1
  42. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_services_pb.rb +4 -0
  43. data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +2 -1
  44. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +3 -1
  45. data/lib/google/cloud/discoveryengine/v1beta/search_service_services_pb.rb +14 -0
  46. data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +2 -2
  47. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +2 -1
  48. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +10 -1
  49. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_services_pb.rb +7 -0
  50. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
  51. data/proto_docs/google/api/client.rb +20 -0
  52. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +20 -6
  53. data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +268 -0
  54. data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +9 -0
  55. data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +6 -6
  56. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +95 -15
  57. data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +8 -3
  58. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +131 -0
  59. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +7 -5
  60. data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +19 -0
  61. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +5 -1
  62. data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +4 -4
  63. data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +396 -1
  64. data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +10 -0
  65. data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +1 -1
  66. data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +1 -1
  67. data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +1 -1
  68. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +71 -0
  69. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +16 -0
  70. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +2 -2
  71. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +17 -0
  72. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine_service.rb +147 -1
  73. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +9 -1
  74. metadata +3 -3
@@ -258,6 +258,137 @@ module Google
258
258
  extend ::Google::Protobuf::MessageExts::ClassMethods
259
259
  end
260
260
 
261
+ # Request message for
262
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Client#create_sitemap SiteSearchEngineService.CreateSitemap}
263
+ # method.
264
+ # @!attribute [rw] parent
265
+ # @return [::String]
266
+ # Required. Parent resource name of the
267
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngine SiteSearchEngine},
268
+ # such as
269
+ # `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
270
+ # @!attribute [rw] sitemap
271
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::Sitemap]
272
+ # Required. The {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap} to
273
+ # create.
274
+ class CreateSitemapRequest
275
+ include ::Google::Protobuf::MessageExts
276
+ extend ::Google::Protobuf::MessageExts::ClassMethods
277
+ end
278
+
279
+ # Request message for
280
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Client#delete_sitemap SiteSearchEngineService.DeleteSitemap}
281
+ # method.
282
+ # @!attribute [rw] name
283
+ # @return [::String]
284
+ # Required. Full resource name of
285
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}, such as
286
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}`.
287
+ #
288
+ # If the caller does not have permission to access the
289
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}, regardless of
290
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
291
+ #
292
+ # If the requested {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}
293
+ # does not exist, a NOT_FOUND error is returned.
294
+ class DeleteSitemapRequest
295
+ include ::Google::Protobuf::MessageExts
296
+ extend ::Google::Protobuf::MessageExts::ClassMethods
297
+ end
298
+
299
+ # Request message for
300
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Client#fetch_sitemaps SiteSearchEngineService.FetchSitemaps}
301
+ # method.
302
+ # @!attribute [rw] parent
303
+ # @return [::String]
304
+ # Required. Parent resource name of the
305
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngine SiteSearchEngine},
306
+ # such as
307
+ # `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
308
+ # @!attribute [rw] matcher
309
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsRequest::Matcher]
310
+ # Optional. If specified, fetches the matching
311
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}s. If not specified,
312
+ # fetches all {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}s in the
313
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore}.
314
+ class FetchSitemapsRequest
315
+ include ::Google::Protobuf::MessageExts
316
+ extend ::Google::Protobuf::MessageExts::ClassMethods
317
+
318
+ # Matcher for the {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}s by
319
+ # their uris.
320
+ # @!attribute [rw] uris
321
+ # @return [::Array<::String>]
322
+ # The {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap} uris.
323
+ class UrisMatcher
324
+ include ::Google::Protobuf::MessageExts
325
+ extend ::Google::Protobuf::MessageExts::ClassMethods
326
+ end
327
+
328
+ # Matcher for the {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}s.
329
+ # Currently only supports uris matcher.
330
+ # @!attribute [rw] uris_matcher
331
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsRequest::UrisMatcher]
332
+ # Matcher by sitemap URIs.
333
+ class Matcher
334
+ include ::Google::Protobuf::MessageExts
335
+ extend ::Google::Protobuf::MessageExts::ClassMethods
336
+ end
337
+ end
338
+
339
+ # Metadata related to the progress of the
340
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Client#create_sitemap SiteSearchEngineService.CreateSitemap}
341
+ # operation. This will be returned by the google.longrunning.Operation.metadata
342
+ # field.
343
+ # @!attribute [rw] create_time
344
+ # @return [::Google::Protobuf::Timestamp]
345
+ # Operation create time.
346
+ # @!attribute [rw] update_time
347
+ # @return [::Google::Protobuf::Timestamp]
348
+ # Operation last update time. If the operation is done, this is also the
349
+ # finish time.
350
+ class CreateSitemapMetadata
351
+ include ::Google::Protobuf::MessageExts
352
+ extend ::Google::Protobuf::MessageExts::ClassMethods
353
+ end
354
+
355
+ # Metadata related to the progress of the
356
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Client#delete_sitemap SiteSearchEngineService.DeleteSitemap}
357
+ # operation. This will be returned by the google.longrunning.Operation.metadata
358
+ # field.
359
+ # @!attribute [rw] create_time
360
+ # @return [::Google::Protobuf::Timestamp]
361
+ # Operation create time.
362
+ # @!attribute [rw] update_time
363
+ # @return [::Google::Protobuf::Timestamp]
364
+ # Operation last update time. If the operation is done, this is also the
365
+ # finish time.
366
+ class DeleteSitemapMetadata
367
+ include ::Google::Protobuf::MessageExts
368
+ extend ::Google::Protobuf::MessageExts::ClassMethods
369
+ end
370
+
371
+ # Response message for
372
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Client#fetch_sitemaps SiteSearchEngineService.FetchSitemaps}
373
+ # method.
374
+ # @!attribute [rw] sitemaps_metadata
375
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::FetchSitemapsResponse::SitemapMetadata>]
376
+ # List of {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}s fetched.
377
+ class FetchSitemapsResponse
378
+ include ::Google::Protobuf::MessageExts
379
+ extend ::Google::Protobuf::MessageExts::ClassMethods
380
+
381
+ # Contains a {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap} and its
382
+ # metadata.
383
+ # @!attribute [rw] sitemap
384
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::Sitemap]
385
+ # The {::Google::Cloud::DiscoveryEngine::V1beta::Sitemap Sitemap}.
386
+ class SitemapMetadata
387
+ include ::Google::Protobuf::MessageExts
388
+ extend ::Google::Protobuf::MessageExts::ClassMethods
389
+ end
390
+ end
391
+
261
392
  # Request message for
262
393
  # {::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Client#enable_advanced_site_search SiteSearchEngineService.EnableAdvancedSiteSearch}
263
394
  # method.
@@ -349,6 +480,11 @@ module Google
349
480
  # an INVALID_ARGUMENT error is thrown. Each URI should match at least one
350
481
  # {::Google::Cloud::DiscoveryEngine::V1beta::TargetSite TargetSite} in
351
482
  # `site_search_engine`.
483
+ # @!attribute [rw] site_credential
484
+ # @return [::String]
485
+ # Optional. Full resource name of the [SiteCredential][], such as
486
+ # `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
487
+ # Only set to crawl private URIs.
352
488
  class RecrawlUrisRequest
353
489
  include ::Google::Protobuf::MessageExts
354
490
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -419,9 +555,19 @@ module Google
419
555
  # finish time.
420
556
  # @!attribute [rw] invalid_uris
421
557
  # @return [::Array<::String>]
558
+ # Unique URIs in the request that have invalid format. Sample limited to
559
+ # 1000.
560
+ # @!attribute [rw] invalid_uris_count
561
+ # @return [::Integer]
562
+ # Total number of unique URIs in the request that have invalid format.
563
+ # @!attribute [rw] uris_not_matching_target_sites
564
+ # @return [::Array<::String>]
422
565
  # Unique URIs in the request that don't match any TargetSite in the
423
566
  # DataStore, only match TargetSites that haven't been fully indexed, or match
424
- # a TargetSite with type EXCLUDE.
567
+ # a TargetSite with type EXCLUDE. Sample limited to 1000.
568
+ # @!attribute [rw] uris_not_matching_target_sites_count
569
+ # @return [::Integer]
570
+ # Total number of URIs that don't match any TargetSites.
425
571
  # @!attribute [rw] valid_uris_count
426
572
  # @return [::Integer]
427
573
  # Total number of unique URIs in the request that are not in invalid_uris.
@@ -34,6 +34,7 @@ module Google
34
34
  # * `view-item-list`: View of a panel or ordered list of Documents.
35
35
  # * `view-home-page`: View of the home page.
36
36
  # * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
37
+ # * `add-feedback`: Add a user feedback.
37
38
  #
38
39
  # Retail-related values:
39
40
  #
@@ -244,6 +245,10 @@ module Google
244
245
  # @!attribute [rw] media_info
245
246
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::MediaInfo]
246
247
  # Media-specific info.
248
+ # @!attribute [rw] panels
249
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::PanelInfo>]
250
+ # Optional. List of panels associated with this event.
251
+ # Used for page-level impression data.
247
252
  class UserEvent
248
253
  include ::Google::Protobuf::MessageExts
249
254
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -430,7 +435,7 @@ module Google
430
435
  # @return [::String]
431
436
  # The {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} resource
432
437
  # full name, of the form:
433
- # `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
438
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
434
439
  # @!attribute [rw] uri
435
440
  # @return [::String]
436
441
  # The {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} URI - only
@@ -478,6 +483,9 @@ module Google
478
483
  # Must be set if
479
484
  # {::Google::Cloud::DiscoveryEngine::V1beta::PanelInfo#panel_position panel_position}
480
485
  # is set.
486
+ # @!attribute [rw] documents
487
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::DocumentInfo>]
488
+ # Optional. The document IDs associated with this panel.
481
489
  class PanelInfo
482
490
  include ::Google::Protobuf::MessageExts
483
491
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-discovery_engine-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-11 00:00:00.000000000 Z
11
+ date: 2024-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -373,7 +373,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
373
  - !ruby/object:Gem::Version
374
374
  version: '0'
375
375
  requirements: []
376
- rubygems_version: 3.5.6
376
+ rubygems_version: 3.5.22
377
377
  signing_key:
378
378
  specification_version: 4
379
379
  summary: Discovery Engine API.