google-cloud-discovery_engine-v1 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +2 -2
  3. data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +6 -6
  4. data/lib/google/cloud/discovery_engine/v1/control_service/rest/client.rb +6 -6
  5. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +15 -12
  6. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +15 -12
  7. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +2 -2
  8. data/lib/google/cloud/discovery_engine/v1/document_service/paths.rb +25 -0
  9. data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +2 -2
  10. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +2 -2
  11. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +219 -3
  12. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/paths.rb +85 -0
  13. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/client.rb +126 -3
  14. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/service_stub.rb +60 -0
  15. data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +2 -2
  16. data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +1 -1
  17. data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +1 -1
  18. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +2 -2
  19. data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +5 -1
  20. data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +5 -1
  21. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +2 -2
  22. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +5 -1
  23. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +5 -1
  24. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +2 -2
  25. data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +1 -1
  26. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +1 -1
  27. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +2 -2
  28. data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
  29. data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +1 -1
  30. data/lib/google/cloud/discoveryengine/v1/common_pb.rb +1 -1
  31. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +2 -1
  32. data/lib/google/cloud/discoveryengine/v1/custom_tuning_model_pb.rb +1 -1
  33. data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +4 -1
  34. data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +2 -1
  35. data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +1 -1
  36. data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +23 -1
  37. data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +4 -0
  38. data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +5 -1
  39. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +1 -1
  40. data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +12 -2
  41. data/proto_docs/google/cloud/discoveryengine/v1/control_service.rb +6 -6
  42. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +59 -15
  43. data/proto_docs/google/cloud/discoveryengine/v1/custom_tuning_model.rb +8 -3
  44. data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +88 -0
  45. data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +7 -5
  46. data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +19 -0
  47. data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +5 -1
  48. data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +383 -0
  49. data/proto_docs/google/cloud/discoveryengine/v1/project.rb +1 -1
  50. data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +1 -1
  51. data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +1 -1
  52. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +116 -0
  53. data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +5 -0
  54. data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +1 -1
  55. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 889efe23187a055bc64300772cf5115163be340ee593c14cd2b80b315c9fb74c
4
- data.tar.gz: c63e73f558b7ca55fe00a6f32f00c415248524cf4612aeeb097a4e14fbcc5842
3
+ metadata.gz: ee9651b0bccb269cc71b7ffbe3eb9fe3b7387001a04c24f295ad5746e38a3435
4
+ data.tar.gz: a52cfe415c14bfb5046b20d211d328defcacadd1ec51b8c8631b23f4c8cb9ce2
5
5
  SHA512:
6
- metadata.gz: 5f64b0e41f4a50f07658adab128dbbb821cbc9f4c32522fa231be28804147b3b2411c0b16135a425740ec927180e93dd6ba609f5d466d9d682f34085c56a7de7
7
- data.tar.gz: b6142d1c66b468490311df8f44ecf4bf7f3272fb562a289e65cb41dabcb6312ccdae1215fc0a933ef4c4912ef49c8182e0a10cb3451452e1f9924f69838ab5c7
6
+ metadata.gz: 592eacda5b2029f59b7e128c81ed2e8ddde6cf46531956d802a1203fa6d4ccd5f67351b866e3b34c8d476b087d895cd9b18d346918ab587ba6784572934ce6db
7
+ data.tar.gz: ec0a35b20d61d0ef7c6997916877e11e94e1c69fe379ce52163ff4c01d26274526485a720354a5f5229069970a1b04e1924e7fd0f65a45bffa28ba7be2a9ee6b
@@ -915,7 +915,7 @@ module Google
915
915
  uri_method: :get,
916
916
  uri_template: "/v1/{name}/operations",
917
917
  matches: [
918
- ["name", %r{^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/?$}, false]
918
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/?$}, false]
919
919
  ]
920
920
  )
921
921
  .with_bindings(
@@ -1041,7 +1041,7 @@ module Google
1041
1041
  uri_method: :get,
1042
1042
  uri_template: "/v1/{name}",
1043
1043
  matches: [
1044
- ["name", %r{^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/operations/[^/]+/?$}, false]
1044
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+/?$}, false]
1045
1045
  ]
1046
1046
  )
1047
1047
  .with_bindings(
@@ -211,9 +211,9 @@ module Google
211
211
  #
212
212
  # @param parent [::String]
213
213
  # Required. Full resource name of parent data store. Format:
214
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
214
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
215
215
  # or
216
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
216
+ # `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
217
217
  # @param control [::Google::Cloud::DiscoveryEngine::V1::Control, ::Hash]
218
218
  # Required. The Control to create.
219
219
  # @param control_id [::String]
@@ -311,7 +311,7 @@ module Google
311
311
  #
312
312
  # @param name [::String]
313
313
  # Required. The resource name of the Control to delete. Format:
314
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
314
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
315
315
  #
316
316
  # @yield [response, operation] Access the result along with the RPC operation
317
317
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -497,7 +497,7 @@ module Google
497
497
  #
498
498
  # @param name [::String]
499
499
  # Required. The resource name of the Control to get. Format:
500
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
500
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
501
501
  #
502
502
  # @yield [response, operation] Access the result along with the RPC operation
503
503
  # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::Control]
@@ -585,9 +585,9 @@ module Google
585
585
  #
586
586
  # @param parent [::String]
587
587
  # Required. The data store resource name. Format:
588
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
588
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
589
589
  # or
590
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
590
+ # `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
591
591
  # @param page_size [::Integer]
592
592
  # Optional. Maximum number of results to return. If unspecified, defaults
593
593
  # to 50. Max allowed value is 1000.
@@ -204,9 +204,9 @@ module Google
204
204
  #
205
205
  # @param parent [::String]
206
206
  # Required. Full resource name of parent data store. Format:
207
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
207
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
208
208
  # or
209
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
209
+ # `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
210
210
  # @param control [::Google::Cloud::DiscoveryEngine::V1::Control, ::Hash]
211
211
  # Required. The Control to create.
212
212
  # @param control_id [::String]
@@ -297,7 +297,7 @@ module Google
297
297
  #
298
298
  # @param name [::String]
299
299
  # Required. The resource name of the Control to delete. Format:
300
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
300
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
301
301
  # @yield [result, operation] Access the result along with the TransportOperation object
302
302
  # @yieldparam result [::Google::Protobuf::Empty]
303
303
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -469,7 +469,7 @@ module Google
469
469
  #
470
470
  # @param name [::String]
471
471
  # Required. The resource name of the Control to get. Format:
472
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
472
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
473
473
  # @yield [result, operation] Access the result along with the TransportOperation object
474
474
  # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::Control]
475
475
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -550,9 +550,9 @@ module Google
550
550
  #
551
551
  # @param parent [::String]
552
552
  # Required. The data store resource name. Format:
553
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
553
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
554
554
  # or
555
- # `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
555
+ # `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
556
556
  # @param page_size [::Integer]
557
557
  # Optional. Maximum number of results to return. If unspecified, defaults
558
558
  # to 50. Max allowed value is 1000.
@@ -203,16 +203,16 @@ module Google
203
203
  #
204
204
  # @param name [::String]
205
205
  # Required. The resource name of the Conversation to get. Format:
206
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
206
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
207
207
  # Use
208
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
208
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
209
209
  # to activate auto session mode, which automatically creates a new
210
210
  # conversation inside a ConverseConversation session.
211
211
  # @param query [::Google::Cloud::DiscoveryEngine::V1::TextInput, ::Hash]
212
212
  # Required. Current user input.
213
213
  # @param serving_config [::String]
214
214
  # The resource name of the Serving Config to use. Format:
215
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
215
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
216
216
  # If this is not set, the default serving config will be used.
217
217
  # @param conversation [::Google::Cloud::DiscoveryEngine::V1::Conversation, ::Hash]
218
218
  # The conversation to be used by auto session only. The name field will be
@@ -350,7 +350,7 @@ module Google
350
350
  #
351
351
  # @param parent [::String]
352
352
  # Required. Full resource name of parent data store. Format:
353
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
353
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
354
354
  # @param conversation [::Google::Cloud::DiscoveryEngine::V1::Conversation, ::Hash]
355
355
  # Required. The conversation to create.
356
356
  #
@@ -442,7 +442,7 @@ module Google
442
442
  #
443
443
  # @param name [::String]
444
444
  # Required. The resource name of the Conversation to delete. Format:
445
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
445
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
446
446
  #
447
447
  # @yield [response, operation] Access the result along with the RPC operation
448
448
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -628,7 +628,7 @@ module Google
628
628
  #
629
629
  # @param name [::String]
630
630
  # Required. The resource name of the Conversation to get. Format:
631
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
631
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
632
632
  #
633
633
  # @yield [response, operation] Access the result along with the RPC operation
634
634
  # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::Conversation]
@@ -716,7 +716,7 @@ module Google
716
716
  #
717
717
  # @param parent [::String]
718
718
  # Required. The data store resource name. Format:
719
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
719
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
720
720
  # @param page_size [::Integer]
721
721
  # Maximum number of results to return. If unspecified, defaults
722
722
  # to 50. Max allowed value is 1000.
@@ -856,6 +856,9 @@ module Google
856
856
  # @param query_understanding_spec [::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::QueryUnderstandingSpec, ::Hash]
857
857
  # Query understanding specification.
858
858
  # @param asynchronous_mode [::Boolean]
859
+ # Deprecated: This field is deprecated. Streaming Answer API will be
860
+ # supported.
861
+ #
859
862
  # Asynchronous mode control.
860
863
  #
861
864
  # If enabled, the response will be returned with answer/session resource
@@ -979,7 +982,7 @@ module Google
979
982
  #
980
983
  # @param name [::String]
981
984
  # Required. The resource name of the Answer to get. Format:
982
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
985
+ # `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
983
986
  #
984
987
  # @yield [response, operation] Access the result along with the RPC operation
985
988
  # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::Answer]
@@ -1069,7 +1072,7 @@ module Google
1069
1072
  #
1070
1073
  # @param parent [::String]
1071
1074
  # Required. Full resource name of parent data store. Format:
1072
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
1075
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
1073
1076
  # @param session [::Google::Cloud::DiscoveryEngine::V1::Session, ::Hash]
1074
1077
  # Required. The session to create.
1075
1078
  #
@@ -1161,7 +1164,7 @@ module Google
1161
1164
  #
1162
1165
  # @param name [::String]
1163
1166
  # Required. The resource name of the Session to delete. Format:
1164
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1167
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1165
1168
  #
1166
1169
  # @yield [response, operation] Access the result along with the RPC operation
1167
1170
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -1346,7 +1349,7 @@ module Google
1346
1349
  #
1347
1350
  # @param name [::String]
1348
1351
  # Required. The resource name of the Session to get. Format:
1349
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1352
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1350
1353
  #
1351
1354
  # @yield [response, operation] Access the result along with the RPC operation
1352
1355
  # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::Session]
@@ -1434,7 +1437,7 @@ module Google
1434
1437
  #
1435
1438
  # @param parent [::String]
1436
1439
  # Required. The data store resource name. Format:
1437
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
1440
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
1438
1441
  # @param page_size [::Integer]
1439
1442
  # Maximum number of results to return. If unspecified, defaults
1440
1443
  # to 50. Max allowed value is 1000.
@@ -196,16 +196,16 @@ module Google
196
196
  #
197
197
  # @param name [::String]
198
198
  # Required. The resource name of the Conversation to get. Format:
199
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
199
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
200
200
  # Use
201
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
201
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
202
202
  # to activate auto session mode, which automatically creates a new
203
203
  # conversation inside a ConverseConversation session.
204
204
  # @param query [::Google::Cloud::DiscoveryEngine::V1::TextInput, ::Hash]
205
205
  # Required. Current user input.
206
206
  # @param serving_config [::String]
207
207
  # The resource name of the Serving Config to use. Format:
208
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
208
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
209
209
  # If this is not set, the default serving config will be used.
210
210
  # @param conversation [::Google::Cloud::DiscoveryEngine::V1::Conversation, ::Hash]
211
211
  # The conversation to be used by auto session only. The name field will be
@@ -336,7 +336,7 @@ module Google
336
336
  #
337
337
  # @param parent [::String]
338
338
  # Required. Full resource name of parent data store. Format:
339
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
339
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
340
340
  # @param conversation [::Google::Cloud::DiscoveryEngine::V1::Conversation, ::Hash]
341
341
  # Required. The conversation to create.
342
342
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -421,7 +421,7 @@ module Google
421
421
  #
422
422
  # @param name [::String]
423
423
  # Required. The resource name of the Conversation to delete. Format:
424
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
424
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
425
425
  # @yield [result, operation] Access the result along with the TransportOperation object
426
426
  # @yieldparam result [::Google::Protobuf::Empty]
427
427
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -593,7 +593,7 @@ module Google
593
593
  #
594
594
  # @param name [::String]
595
595
  # Required. The resource name of the Conversation to get. Format:
596
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
596
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
597
597
  # @yield [result, operation] Access the result along with the TransportOperation object
598
598
  # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::Conversation]
599
599
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -674,7 +674,7 @@ module Google
674
674
  #
675
675
  # @param parent [::String]
676
676
  # Required. The data store resource name. Format:
677
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
677
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
678
678
  # @param page_size [::Integer]
679
679
  # Maximum number of results to return. If unspecified, defaults
680
680
  # to 50. Max allowed value is 1000.
@@ -807,6 +807,9 @@ module Google
807
807
  # @param query_understanding_spec [::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::QueryUnderstandingSpec, ::Hash]
808
808
  # Query understanding specification.
809
809
  # @param asynchronous_mode [::Boolean]
810
+ # Deprecated: This field is deprecated. Streaming Answer API will be
811
+ # supported.
812
+ #
810
813
  # Asynchronous mode control.
811
814
  #
812
815
  # If enabled, the response will be returned with answer/session resource
@@ -923,7 +926,7 @@ module Google
923
926
  #
924
927
  # @param name [::String]
925
928
  # Required. The resource name of the Answer to get. Format:
926
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
929
+ # `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
927
930
  # @yield [result, operation] Access the result along with the TransportOperation object
928
931
  # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::Answer]
929
932
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1006,7 +1009,7 @@ module Google
1006
1009
  #
1007
1010
  # @param parent [::String]
1008
1011
  # Required. Full resource name of parent data store. Format:
1009
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
1012
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
1010
1013
  # @param session [::Google::Cloud::DiscoveryEngine::V1::Session, ::Hash]
1011
1014
  # Required. The session to create.
1012
1015
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1091,7 +1094,7 @@ module Google
1091
1094
  #
1092
1095
  # @param name [::String]
1093
1096
  # Required. The resource name of the Session to delete. Format:
1094
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1097
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1095
1098
  # @yield [result, operation] Access the result along with the TransportOperation object
1096
1099
  # @yieldparam result [::Google::Protobuf::Empty]
1097
1100
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1262,7 +1265,7 @@ module Google
1262
1265
  #
1263
1266
  # @param name [::String]
1264
1267
  # Required. The resource name of the Session to get. Format:
1265
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1268
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1266
1269
  # @yield [result, operation] Access the result along with the TransportOperation object
1267
1270
  # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::Session]
1268
1271
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1343,7 +1346,7 @@ module Google
1343
1346
  #
1344
1347
  # @param parent [::String]
1345
1348
  # Required. The data store resource name. Format:
1346
- # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
1349
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
1347
1350
  # @param page_size [::Integer]
1348
1351
  # Maximum number of results to return. If unspecified, defaults
1349
1352
  # to 50. Max allowed value is 1000.
@@ -915,7 +915,7 @@ module Google
915
915
  uri_method: :get,
916
916
  uri_template: "/v1/{name}/operations",
917
917
  matches: [
918
- ["name", %r{^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/?$}, false]
918
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/?$}, false]
919
919
  ]
920
920
  )
921
921
  .with_bindings(
@@ -1041,7 +1041,7 @@ module Google
1041
1041
  uri_method: :get,
1042
1042
  uri_template: "/v1/{name}",
1043
1043
  matches: [
1044
- ["name", %r{^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/operations/[^/]+/?$}, false]
1044
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+/?$}, false]
1045
1045
  ]
1046
1046
  )
1047
1047
  .with_bindings(
@@ -126,6 +126,31 @@ module Google
126
126
  resource.call(**args)
127
127
  end
128
128
 
129
+ ##
130
+ # Create a fully-qualified FhirResource resource string.
131
+ #
132
+ # The resource will be in the following format:
133
+ #
134
+ # `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}`
135
+ #
136
+ # @param project [String]
137
+ # @param location [String]
138
+ # @param dataset [String]
139
+ # @param fhir_store [String]
140
+ # @param resource_type [String]
141
+ # @param fhir_resource_id [String]
142
+ #
143
+ # @return [::String]
144
+ def fhir_resource_path project:, location:, dataset:, fhir_store:, resource_type:, fhir_resource_id:
145
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
146
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
147
+ raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
148
+ raise ::ArgumentError, "fhir_store cannot contain /" if fhir_store.to_s.include? "/"
149
+ raise ::ArgumentError, "resource_type cannot contain /" if resource_type.to_s.include? "/"
150
+
151
+ "projects/#{project}/locations/#{location}/datasets/#{dataset}/fhirStores/#{fhir_store}/fhir/#{resource_type}/#{fhir_resource_id}"
152
+ end
153
+
129
154
  ##
130
155
  # Create a fully-qualified FhirStore resource string.
131
156
  #
@@ -915,7 +915,7 @@ module Google
915
915
  uri_method: :get,
916
916
  uri_template: "/v1/{name}/operations",
917
917
  matches: [
918
- ["name", %r{^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/?$}, false]
918
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/?$}, false]
919
919
  ]
920
920
  )
921
921
  .with_bindings(
@@ -1041,7 +1041,7 @@ module Google
1041
1041
  uri_method: :get,
1042
1042
  uri_template: "/v1/{name}",
1043
1043
  matches: [
1044
- ["name", %r{^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/operations/[^/]+/?$}, false]
1044
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+/?$}, false]
1045
1045
  ]
1046
1046
  )
1047
1047
  .with_bindings(
@@ -915,7 +915,7 @@ module Google
915
915
  uri_method: :get,
916
916
  uri_template: "/v1/{name}/operations",
917
917
  matches: [
918
- ["name", %r{^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/?$}, false]
918
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/?$}, false]
919
919
  ]
920
920
  )
921
921
  .with_bindings(
@@ -1041,7 +1041,7 @@ module Google
1041
1041
  uri_method: :get,
1042
1042
  uri_template: "/v1/{name}",
1043
1043
  matches: [
1044
- ["name", %r{^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/operations/[^/]+/?$}, false]
1044
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+/?$}, false]
1045
1045
  ]
1046
1046
  )
1047
1047
  .with_bindings(