google-cloud-discovery_engine-v1beta 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +9 -3
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +13 -5
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +9 -3
  5. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +21 -6
  6. data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +875 -0
  7. data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +47 -0
  8. data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +167 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +814 -0
  10. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/service_stub.rb +440 -0
  11. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest.rb +55 -0
  12. data/lib/google/cloud/discovery_engine/v1beta/control_service.rb +58 -0
  13. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +764 -6
  14. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +199 -0
  15. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +715 -6
  16. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +520 -0
  17. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +15 -7
  18. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +13 -5
  19. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +15 -7
  20. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +21 -6
  21. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +71 -37
  22. data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +13 -5
  23. data/lib/google/cloud/discovery_engine/v1beta/document_service/paths.rb +21 -0
  24. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +71 -37
  25. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +21 -6
  26. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +312 -5
  27. data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +13 -5
  28. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +291 -5
  29. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +21 -6
  30. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +180 -0
  31. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +471 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/credentials.rb +47 -0
  33. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb +52 -0
  34. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +438 -0
  35. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/service_stub.rb +129 -0
  36. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest.rb +52 -0
  37. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service.rb +55 -0
  38. data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +485 -0
  39. data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +47 -0
  40. data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +809 -0
  41. data/lib/google/cloud/discovery_engine/v1beta/project_service/paths.rb +47 -0
  42. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +452 -0
  43. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +1092 -0
  44. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/service_stub.rb +129 -0
  45. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest.rb +54 -0
  46. data/lib/google/cloud/discovery_engine/v1beta/project_service.rb +57 -0
  47. data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +481 -0
  48. data/lib/google/cloud/discovery_engine/v1beta/rank_service/credentials.rb +47 -0
  49. data/lib/google/cloud/discovery_engine/v1beta/rank_service/paths.rb +52 -0
  50. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +448 -0
  51. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/service_stub.rb +129 -0
  52. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest.rb +52 -0
  53. data/lib/google/cloud/discovery_engine/v1beta/rank_service.rb +55 -0
  54. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +24 -19
  55. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/paths.rb +66 -0
  56. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +24 -19
  57. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +4 -0
  58. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +18 -10
  59. data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +13 -5
  60. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +18 -10
  61. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +21 -6
  62. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +26 -14
  63. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +26 -14
  64. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +104 -2
  65. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +13 -5
  66. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +97 -2
  67. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +21 -6
  68. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +59 -0
  69. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +9 -3
  70. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +9 -3
  71. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +27 -12
  72. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +13 -5
  73. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +27 -12
  74. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +21 -6
  75. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +23 -6
  76. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +13 -5
  77. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/paths.rb +21 -0
  78. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +23 -6
  79. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +21 -6
  80. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
  81. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  82. data/lib/google/cloud/discovery_engine/v1beta.rb +4 -0
  83. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +69 -0
  84. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +2 -1
  85. data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +55 -0
  86. data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +57 -0
  87. data/lib/google/cloud/discoveryengine/v1beta/control_service_services_pb.rb +69 -0
  88. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +32 -1
  89. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +25 -0
  90. data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +48 -0
  91. data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +1 -1
  92. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +3 -1
  93. data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +1 -1
  94. data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
  95. data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +6 -1
  96. data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +12 -0
  97. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +52 -0
  98. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_services_pb.rb +45 -0
  99. data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +46 -0
  100. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +13 -1
  101. data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +49 -0
  102. data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +50 -0
  103. data/lib/google/cloud/discoveryengine/v1beta/project_service_services_pb.rb +51 -0
  104. data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +49 -0
  105. data/lib/google/cloud/discoveryengine/v1beta/rank_service_services_pb.rb +45 -0
  106. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +7 -1
  107. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +5 -1
  108. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_services_pb.rb +2 -0
  109. data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +50 -0
  110. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
  111. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
  112. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
  113. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +1 -1
  114. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +362 -0
  115. data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +25 -1
  116. data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +209 -0
  117. data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +126 -0
  118. data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +2 -2
  119. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +491 -0
  120. data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +75 -0
  121. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +2 -2
  122. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +4 -5
  123. data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +9 -6
  124. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +5 -5
  125. data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +51 -0
  126. data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +144 -0
  127. data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +79 -0
  128. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +312 -26
  129. data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +106 -0
  130. data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +57 -0
  131. data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +127 -0
  132. data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +20 -19
  133. data/proto_docs/google/cloud/discoveryengine/v1beta/schema_service.rb +5 -5
  134. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +181 -43
  135. data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +47 -1
  136. data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +88 -0
  137. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +3 -0
  138. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +25 -4
  139. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +13 -1
  140. metadata +56 -2
@@ -35,6 +35,9 @@ module Google
35
35
  # customer's website.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
40
43
 
@@ -257,12 +260,13 @@ module Google
257
260
  # Customize the options with defaults
258
261
  call_metadata = @config.rpcs.get_document.metadata.to_h
259
262
 
260
- # Set x-goog-api-client and x-goog-user-project headers
263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
261
264
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
262
265
  lib_name: @config.lib_name, lib_version: @config.lib_version,
263
266
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
264
267
  transports_version_send: [:rest]
265
268
 
269
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
266
270
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
267
271
 
268
272
  options.apply_defaults timeout: @config.rpcs.get_document.timeout,
@@ -312,7 +316,7 @@ module Google
312
316
  # @param page_size [::Integer]
313
317
  # Maximum number of {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s
314
318
  # to return. If unspecified, defaults to 100. The maximum allowed value is
315
- # 1000. Values above 1000 will be coerced to 1000.
319
+ # 1000. Values above 1000 are set to 1000.
316
320
  #
317
321
  # If this field is negative, an `INVALID_ARGUMENT` error is returned.
318
322
  # @param page_token [::String]
@@ -364,12 +368,13 @@ module Google
364
368
  # Customize the options with defaults
365
369
  call_metadata = @config.rpcs.list_documents.metadata.to_h
366
370
 
367
- # Set x-goog-api-client and x-goog-user-project headers
371
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
368
372
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
369
373
  lib_name: @config.lib_name, lib_version: @config.lib_version,
370
374
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
371
375
  transports_version_send: [:rest]
372
376
 
377
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
373
378
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
374
379
 
375
380
  options.apply_defaults timeout: @config.rpcs.list_documents.timeout,
@@ -415,8 +420,8 @@ module Google
415
420
  # create.
416
421
  # @param document_id [::String]
417
422
  # Required. The ID to use for the
418
- # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}, which will become
419
- # the final component of the
423
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}, which becomes the
424
+ # final component of the
420
425
  # {::Google::Cloud::DiscoveryEngine::V1beta::Document#name Document.name}.
421
426
  #
422
427
  # If the caller does not have permission to create the
@@ -465,12 +470,13 @@ module Google
465
470
  # Customize the options with defaults
466
471
  call_metadata = @config.rpcs.create_document.metadata.to_h
467
472
 
468
- # Set x-goog-api-client and x-goog-user-project headers
473
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
469
474
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
470
475
  lib_name: @config.lib_name, lib_version: @config.lib_version,
471
476
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
472
477
  transports_version_send: [:rest]
473
478
 
479
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
474
480
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
475
481
 
476
482
  options.apply_defaults timeout: @config.rpcs.create_document.timeout,
@@ -502,7 +508,7 @@ module Google
502
508
  # @param options [::Gapic::CallOptions, ::Hash]
503
509
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
504
510
  #
505
- # @overload update_document(document: nil, allow_missing: nil)
511
+ # @overload update_document(document: nil, allow_missing: nil, update_mask: nil)
506
512
  # Pass arguments to `update_document` via keyword arguments. Note that at
507
513
  # least one keyword argument is required. To specify no parameters, or to keep all
508
514
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -519,10 +525,12 @@ module Google
519
525
  # {::Google::Cloud::DiscoveryEngine::V1beta::UpdateDocumentRequest#allow_missing allow_missing}
520
526
  # is not set, a `NOT_FOUND` error is returned.
521
527
  # @param allow_missing [::Boolean]
522
- # If set to true, and the
528
+ # If set to `true` and the
523
529
  # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is not found, a
524
- # new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} will be
525
- # created.
530
+ # new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is be created.
531
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
532
+ # Indicates which fields in the provided imported 'document' to update. If
533
+ # not set, by default updates all fields.
526
534
  # @yield [result, operation] Access the result along with the TransportOperation object
527
535
  # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::Document]
528
536
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -557,12 +565,13 @@ module Google
557
565
  # Customize the options with defaults
558
566
  call_metadata = @config.rpcs.update_document.metadata.to_h
559
567
 
560
- # Set x-goog-api-client and x-goog-user-project headers
568
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
561
569
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
562
570
  lib_name: @config.lib_name, lib_version: @config.lib_version,
563
571
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
564
572
  transports_version_send: [:rest]
565
573
 
574
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
566
575
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
567
576
 
568
577
  options.apply_defaults timeout: @config.rpcs.update_document.timeout,
@@ -644,12 +653,13 @@ module Google
644
653
  # Customize the options with defaults
645
654
  call_metadata = @config.rpcs.delete_document.metadata.to_h
646
655
 
647
- # Set x-goog-api-client and x-goog-user-project headers
656
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
648
657
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
649
658
  lib_name: @config.lib_name, lib_version: @config.lib_version,
650
659
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
651
660
  transports_version_send: [:rest]
652
661
 
662
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
653
663
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
654
664
 
655
665
  options.apply_defaults timeout: @config.rpcs.delete_document.timeout,
@@ -671,7 +681,7 @@ module Google
671
681
  ##
672
682
  # Bulk import of multiple
673
683
  # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s. Request
674
- # processing may be synchronous. Non-existing items will be created.
684
+ # processing may be synchronous. Non-existing items are created.
675
685
  #
676
686
  # Note: It is possible for a subset of the
677
687
  # {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s to be
@@ -687,7 +697,7 @@ module Google
687
697
  # @param options [::Gapic::CallOptions, ::Hash]
688
698
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
689
699
  #
690
- # @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, auto_generate_ids: nil, id_field: nil)
700
+ # @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, fhir_store_source: nil, spanner_source: nil, cloud_sql_source: nil, firestore_source: nil, bigtable_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, update_mask: nil, auto_generate_ids: nil, id_field: nil)
691
701
  # Pass arguments to `import_documents` via keyword arguments. Note that at
692
702
  # least one keyword argument is required. To specify no parameters, or to keep all
693
703
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -698,6 +708,16 @@ module Google
698
708
  # Cloud Storage location for the input content.
699
709
  # @param bigquery_source [::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource, ::Hash]
700
710
  # BigQuery input source.
711
+ # @param fhir_store_source [::Google::Cloud::DiscoveryEngine::V1beta::FhirStoreSource, ::Hash]
712
+ # FhirStore input source.
713
+ # @param spanner_source [::Google::Cloud::DiscoveryEngine::V1beta::SpannerSource, ::Hash]
714
+ # Spanner input source.
715
+ # @param cloud_sql_source [::Google::Cloud::DiscoveryEngine::V1beta::CloudSqlSource, ::Hash]
716
+ # Cloud SQL input source.
717
+ # @param firestore_source [::Google::Cloud::DiscoveryEngine::V1beta::FirestoreSource, ::Hash]
718
+ # Firestore input source.
719
+ # @param bigtable_source [::Google::Cloud::DiscoveryEngine::V1beta::BigtableSource, ::Hash]
720
+ # Cloud Bigtable input source.
701
721
  # @param parent [::String]
702
722
  # Required. The parent branch resource name, such as
703
723
  # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -708,6 +728,9 @@ module Google
708
728
  # The mode of reconciliation between existing documents and the documents to
709
729
  # be imported. Defaults to
710
730
  # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest::ReconciliationMode::INCREMENTAL ReconciliationMode.INCREMENTAL}.
731
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
732
+ # Indicates which fields in the provided imported documents to update. If
733
+ # not set, the default is to update all fields.
711
734
  # @param auto_generate_ids [::Boolean]
712
735
  # Whether to automatically generate IDs for the documents if absent.
713
736
  #
@@ -722,44 +745,53 @@ module Google
722
745
  # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#id_field id_field},
723
746
  # otherwise, documents without IDs fail to be imported.
724
747
  #
725
- # Only set this field when using
726
- # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
727
- # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}, and
728
- # when
748
+ # Supported data sources:
749
+ #
750
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource}.
729
751
  # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
730
- # or
752
+ # must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
753
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}.
731
754
  # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
732
- # is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
755
+ # must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
756
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::SpannerSource SpannerSource}.
757
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::CloudSqlSource CloudSqlSource}.
758
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::FirestoreSource FirestoreSource}.
759
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::BigtableSource BigtableSource}.
733
760
  # @param id_field [::String]
734
- # The field in the Cloud Storage and BigQuery sources that indicates the
735
- # unique IDs of the documents.
761
+ # The field indicates the ID field or column to be used as unique IDs of
762
+ # the documents.
736
763
  #
737
764
  # For {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} it is the
738
765
  # key of the JSON field. For instance, `my_id` for JSON `{"my_id":
739
- # "some_uuid"}`. For
740
- # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource} it is
741
- # the column name of the BigQuery table where the unique ids are stored.
766
+ # "some_uuid"}`. For others, it may be the column name of the table where the
767
+ # unique ids are stored.
742
768
  #
743
- # The values of the JSON field or the BigQuery column are used as the
769
+ # The values of the JSON field or the table column are used as the
744
770
  # {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s. The JSON
745
- # field or the BigQuery column must be of string type, and the values must be
771
+ # field or the table column must be of string type, and the values must be
746
772
  # set as valid strings conform to
747
773
  # [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
748
774
  # Otherwise, documents without valid IDs fail to be imported.
749
775
  #
750
- # Only set this field when using
751
- # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
752
- # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}, and
753
- # when
754
- # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
755
- # or
756
- # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
757
- # is `custom`. And only set this field when
776
+ # Only set this field when
758
777
  # {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#auto_generate_ids auto_generate_ids}
759
778
  # is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
760
779
  #
761
780
  # If it is unset, a default value `_id` is used when importing from the
762
781
  # allowed data sources.
782
+ #
783
+ # Supported data sources:
784
+ #
785
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource}.
786
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
787
+ # must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
788
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}.
789
+ # {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
790
+ # must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
791
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::SpannerSource SpannerSource}.
792
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::CloudSqlSource CloudSqlSource}.
793
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::FirestoreSource FirestoreSource}.
794
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::BigtableSource BigtableSource}.
763
795
  # @yield [result, operation] Access the result along with the TransportOperation object
764
796
  # @yieldparam result [::Gapic::Operation]
765
797
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -801,12 +833,13 @@ module Google
801
833
  # Customize the options with defaults
802
834
  call_metadata = @config.rpcs.import_documents.metadata.to_h
803
835
 
804
- # Set x-goog-api-client and x-goog-user-project headers
836
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
805
837
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
806
838
  lib_name: @config.lib_name, lib_version: @config.lib_version,
807
839
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
808
840
  transports_version_send: [:rest]
809
841
 
842
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
810
843
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
811
844
 
812
845
  options.apply_defaults timeout: @config.rpcs.import_documents.timeout,
@@ -911,12 +944,13 @@ module Google
911
944
  # Customize the options with defaults
912
945
  call_metadata = @config.rpcs.purge_documents.metadata.to_h
913
946
 
914
- # Set x-goog-api-client and x-goog-user-project headers
947
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
915
948
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
916
949
  lib_name: @config.lib_name, lib_version: @config.lib_version,
917
950
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
918
951
  transports_version_send: [:rest]
919
952
 
953
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
920
954
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
921
955
 
922
956
  options.apply_defaults timeout: @config.rpcs.purge_documents.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -1060,10 +1067,18 @@ module Google
1060
1067
  transcoder = Gapic::Rest::GrpcTranscoder.new
1061
1068
  .with_bindings(
1062
1069
  uri_method: :post,
1063
- uri_template: "/v1/{name}:cancel",
1070
+ uri_template: "/v1beta/{name}:cancel",
1064
1071
  body: "*",
1065
1072
  matches: [
1066
- ["name", %r{^operations(?:/.*)?$}, true]
1073
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
1074
+ ]
1075
+ )
1076
+ .with_bindings(
1077
+ uri_method: :post,
1078
+ uri_template: "/v1beta/{name}:cancel",
1079
+ body: "*",
1080
+ matches: [
1081
+ ["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
1067
1082
  ]
1068
1083
  )
1069
1084
  transcoder.transcode request_pb