@google-cloud/discoveryengine 1.5.0 → 1.7.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 (138) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +24 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +13 -1
  4. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +5 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +17 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/document.proto +9 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +6 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +2 -2
  9. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +284 -22
  10. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +3 -0
  11. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +228 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +125 -21
  13. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +16 -11
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +328 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +6 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +1 -1
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +574 -0
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +3 -6
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +2 -2
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +120 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +55 -0
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +7 -39
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +102 -0
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +171 -0
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +21 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +7 -3
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +4 -1
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +94 -0
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +1 -1
  30. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +328 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +30 -1
  32. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +559 -0
  33. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +3 -6
  34. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +6 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +2 -2
  36. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +93 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +120 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +55 -0
  39. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +283 -24
  40. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +115 -0
  41. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +142 -22
  42. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +7 -1
  43. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +94 -0
  44. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +1 -1
  45. package/build/protos/protos.d.ts +41126 -24558
  46. package/build/protos/protos.js +134286 -93661
  47. package/build/protos/protos.json +7598 -3744
  48. package/build/src/index.d.ts +4 -1
  49. package/build/src/index.js +4 -1
  50. package/build/src/v1/conversational_search_service_client.d.ts +4 -0
  51. package/build/src/v1/document_service_client.d.ts +47 -19
  52. package/build/src/v1/index.d.ts +1 -0
  53. package/build/src/v1/index.js +3 -1
  54. package/build/src/v1/recommendation_service_client.d.ts +1087 -0
  55. package/build/src/v1/recommendation_service_client.js +1432 -0
  56. package/build/src/v1/recommendation_service_client_config.json +43 -0
  57. package/build/src/v1/search_service_client.d.ts +27 -9
  58. package/build/src/v1/search_service_client.js +18 -6
  59. package/build/src/v1/search_service_client_config.json +5 -5
  60. package/build/src/v1alpha/acl_config_service_client.d.ts +330 -0
  61. package/build/src/v1alpha/acl_config_service_client.js +454 -0
  62. package/build/src/v1alpha/chunk_service_client.d.ts +330 -0
  63. package/build/src/v1alpha/chunk_service_client.js +454 -0
  64. package/build/src/v1alpha/completion_service_client.d.ts +330 -0
  65. package/build/src/v1alpha/completion_service_client.js +454 -0
  66. package/build/src/v1alpha/conversational_search_service_client.d.ts +674 -0
  67. package/build/src/v1alpha/conversational_search_service_client.js +724 -0
  68. package/build/src/v1alpha/conversational_search_service_client_config.json +35 -0
  69. package/build/src/v1alpha/data_store_service_client.d.ts +330 -0
  70. package/build/src/v1alpha/data_store_service_client.js +454 -0
  71. package/build/src/v1alpha/document_service_client.d.ts +330 -0
  72. package/build/src/v1alpha/document_service_client.js +454 -0
  73. package/build/src/v1alpha/engine_service_client.d.ts +330 -0
  74. package/build/src/v1alpha/engine_service_client.js +454 -0
  75. package/build/src/v1alpha/estimate_billing_service_client.d.ts +330 -0
  76. package/build/src/v1alpha/estimate_billing_service_client.js +454 -0
  77. package/build/src/v1alpha/grounded_generation_service_client.d.ts +1574 -0
  78. package/build/src/v1alpha/grounded_generation_service_client.js +2248 -0
  79. package/build/src/v1alpha/grounded_generation_service_client_config.json +43 -0
  80. package/build/src/v1alpha/index.d.ts +2 -0
  81. package/build/src/v1alpha/index.js +5 -1
  82. package/build/src/v1alpha/project_service_client.d.ts +1756 -0
  83. package/build/src/v1alpha/project_service_client.js +2500 -0
  84. package/build/src/v1alpha/project_service_client_config.json +38 -0
  85. package/build/src/v1alpha/rank_service_client.d.ts +330 -0
  86. package/build/src/v1alpha/rank_service_client.js +454 -0
  87. package/build/src/v1alpha/rank_service_client_config.json +15 -2
  88. package/build/src/v1alpha/recommendation_service_client.d.ts +330 -0
  89. package/build/src/v1alpha/recommendation_service_client.js +454 -0
  90. package/build/src/v1alpha/schema_service_client.d.ts +330 -0
  91. package/build/src/v1alpha/schema_service_client.js +454 -0
  92. package/build/src/v1alpha/search_service_client.d.ts +330 -0
  93. package/build/src/v1alpha/search_service_client.js +454 -0
  94. package/build/src/v1alpha/search_service_client_config.json +5 -5
  95. package/build/src/v1alpha/search_tuning_service_client.d.ts +330 -0
  96. package/build/src/v1alpha/search_tuning_service_client.js +454 -0
  97. package/build/src/v1alpha/serving_config_service_client.d.ts +315 -0
  98. package/build/src/v1alpha/serving_config_service_client.js +432 -0
  99. package/build/src/v1alpha/site_search_engine_service_client.d.ts +330 -0
  100. package/build/src/v1alpha/site_search_engine_service_client.js +454 -0
  101. package/build/src/v1alpha/user_event_service_client.d.ts +330 -0
  102. package/build/src/v1alpha/user_event_service_client.js +454 -0
  103. package/build/src/v1beta/completion_service_client.d.ts +315 -0
  104. package/build/src/v1beta/completion_service_client.js +432 -0
  105. package/build/src/v1beta/conversational_search_service_client.d.ts +659 -0
  106. package/build/src/v1beta/conversational_search_service_client.js +702 -0
  107. package/build/src/v1beta/conversational_search_service_client_config.json +35 -0
  108. package/build/src/v1beta/data_store_service_client.d.ts +315 -0
  109. package/build/src/v1beta/data_store_service_client.js +432 -0
  110. package/build/src/v1beta/document_service_client.d.ts +361 -21
  111. package/build/src/v1beta/document_service_client.js +432 -0
  112. package/build/src/v1beta/engine_service_client.d.ts +410 -0
  113. package/build/src/v1beta/engine_service_client.js +518 -0
  114. package/build/src/v1beta/engine_service_client_config.json +12 -0
  115. package/build/src/v1beta/grounded_generation_service_client.d.ts +1406 -0
  116. package/build/src/v1beta/grounded_generation_service_client.js +2014 -0
  117. package/build/src/v1beta/grounded_generation_service_client_config.json +43 -0
  118. package/build/src/v1beta/index.d.ts +2 -0
  119. package/build/src/v1beta/index.js +5 -1
  120. package/build/src/v1beta/rank_service_client.d.ts +1416 -0
  121. package/build/src/v1beta/rank_service_client.js +2015 -0
  122. package/build/src/v1beta/rank_service_client_config.json +43 -0
  123. package/build/src/v1beta/recommendation_service_client.d.ts +315 -0
  124. package/build/src/v1beta/recommendation_service_client.js +432 -0
  125. package/build/src/v1beta/schema_service_client.d.ts +315 -0
  126. package/build/src/v1beta/schema_service_client.js +432 -0
  127. package/build/src/v1beta/search_service_client.d.ts +342 -12
  128. package/build/src/v1beta/search_service_client.js +450 -8
  129. package/build/src/v1beta/search_service_client_config.json +5 -5
  130. package/build/src/v1beta/search_tuning_service_client.d.ts +315 -0
  131. package/build/src/v1beta/search_tuning_service_client.js +432 -0
  132. package/build/src/v1beta/serving_config_service_client.d.ts +315 -0
  133. package/build/src/v1beta/serving_config_service_client.js +432 -0
  134. package/build/src/v1beta/site_search_engine_service_client.d.ts +315 -0
  135. package/build/src/v1beta/site_search_engine_service_client.js +432 -0
  136. package/build/src/v1beta/user_event_service_client.d.ts +315 -0
  137. package/build/src/v1beta/user_event_service_client.js +432 -0
  138. package/package.json +1 -1
@@ -151,6 +151,7 @@ class RankServiceClient {
151
151
  this.pathTemplates = {
152
152
  aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
153
153
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
154
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
154
155
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
155
156
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
156
157
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -158,10 +159,14 @@ class RankServiceClient {
158
159
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
159
160
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
160
161
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
162
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
163
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
161
164
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
162
165
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
163
166
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
164
167
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
168
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
169
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
165
170
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
166
171
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
167
172
  projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -169,6 +174,8 @@ class RankServiceClient {
169
174
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
170
175
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
171
176
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
177
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
178
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
172
179
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
173
180
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
174
181
  rankingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/rankingConfigs/{ranking_config}'),
@@ -455,6 +462,27 @@ class RankServiceClient {
455
462
  matchEngineFromEngineName(engineName) {
456
463
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
457
464
  }
465
+ /**
466
+ * Return a fully-qualified project resource name string.
467
+ *
468
+ * @param {string} project
469
+ * @returns {string} Resource name string.
470
+ */
471
+ projectPath(project) {
472
+ return this.pathTemplates.projectPathTemplate.render({
473
+ project: project,
474
+ });
475
+ }
476
+ /**
477
+ * Parse the project from Project resource.
478
+ *
479
+ * @param {string} projectName
480
+ * A fully-qualified path representing Project resource.
481
+ * @returns {string} A string representing the project.
482
+ */
483
+ matchProjectFromProjectName(projectName) {
484
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
485
+ }
458
486
  /**
459
487
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
460
488
  *
@@ -950,6 +978,156 @@ class RankServiceClient {
950
978
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
951
979
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
952
980
  }
981
+ /**
982
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
983
+ *
984
+ * @param {string} project
985
+ * @param {string} location
986
+ * @param {string} collection
987
+ * @param {string} data_store
988
+ * @param {string} session
989
+ * @returns {string} Resource name string.
990
+ */
991
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
992
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
993
+ project: project,
994
+ location: location,
995
+ collection: collection,
996
+ data_store: dataStore,
997
+ session: session,
998
+ });
999
+ }
1000
+ /**
1001
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1002
+ *
1003
+ * @param {string} projectLocationCollectionDataStoreSessionName
1004
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1005
+ * @returns {string} A string representing the project.
1006
+ */
1007
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1008
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1009
+ }
1010
+ /**
1011
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1012
+ *
1013
+ * @param {string} projectLocationCollectionDataStoreSessionName
1014
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1015
+ * @returns {string} A string representing the location.
1016
+ */
1017
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1018
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1019
+ }
1020
+ /**
1021
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1022
+ *
1023
+ * @param {string} projectLocationCollectionDataStoreSessionName
1024
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1025
+ * @returns {string} A string representing the collection.
1026
+ */
1027
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1028
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1029
+ }
1030
+ /**
1031
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1032
+ *
1033
+ * @param {string} projectLocationCollectionDataStoreSessionName
1034
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1035
+ * @returns {string} A string representing the data_store.
1036
+ */
1037
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1038
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1039
+ }
1040
+ /**
1041
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1042
+ *
1043
+ * @param {string} projectLocationCollectionDataStoreSessionName
1044
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1045
+ * @returns {string} A string representing the session.
1046
+ */
1047
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1048
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1049
+ }
1050
+ /**
1051
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1052
+ *
1053
+ * @param {string} project
1054
+ * @param {string} location
1055
+ * @param {string} collection
1056
+ * @param {string} data_store
1057
+ * @param {string} session
1058
+ * @param {string} answer
1059
+ * @returns {string} Resource name string.
1060
+ */
1061
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1062
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1063
+ project: project,
1064
+ location: location,
1065
+ collection: collection,
1066
+ data_store: dataStore,
1067
+ session: session,
1068
+ answer: answer,
1069
+ });
1070
+ }
1071
+ /**
1072
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1073
+ *
1074
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1075
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1076
+ * @returns {string} A string representing the project.
1077
+ */
1078
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1079
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1080
+ }
1081
+ /**
1082
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1083
+ *
1084
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1085
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1086
+ * @returns {string} A string representing the location.
1087
+ */
1088
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1089
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1090
+ }
1091
+ /**
1092
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1093
+ *
1094
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1095
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1096
+ * @returns {string} A string representing the collection.
1097
+ */
1098
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1099
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1100
+ }
1101
+ /**
1102
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1103
+ *
1104
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1105
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1106
+ * @returns {string} A string representing the data_store.
1107
+ */
1108
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1109
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1110
+ }
1111
+ /**
1112
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1113
+ *
1114
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1115
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1116
+ * @returns {string} A string representing the session.
1117
+ */
1118
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1119
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1120
+ }
1121
+ /**
1122
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1123
+ *
1124
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1125
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1126
+ * @returns {string} A string representing the answer.
1127
+ */
1128
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1129
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1130
+ }
953
1131
  /**
954
1132
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
955
1133
  *
@@ -1214,6 +1392,156 @@ class RankServiceClient {
1214
1392
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1215
1393
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1216
1394
  }
1395
+ /**
1396
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1397
+ *
1398
+ * @param {string} project
1399
+ * @param {string} location
1400
+ * @param {string} collection
1401
+ * @param {string} engine
1402
+ * @param {string} session
1403
+ * @returns {string} Resource name string.
1404
+ */
1405
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1406
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1407
+ project: project,
1408
+ location: location,
1409
+ collection: collection,
1410
+ engine: engine,
1411
+ session: session,
1412
+ });
1413
+ }
1414
+ /**
1415
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1416
+ *
1417
+ * @param {string} projectLocationCollectionEngineSessionName
1418
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1419
+ * @returns {string} A string representing the project.
1420
+ */
1421
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1422
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1423
+ }
1424
+ /**
1425
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
1426
+ *
1427
+ * @param {string} projectLocationCollectionEngineSessionName
1428
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1429
+ * @returns {string} A string representing the location.
1430
+ */
1431
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1432
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1433
+ }
1434
+ /**
1435
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
1436
+ *
1437
+ * @param {string} projectLocationCollectionEngineSessionName
1438
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1439
+ * @returns {string} A string representing the collection.
1440
+ */
1441
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1442
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1443
+ }
1444
+ /**
1445
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
1446
+ *
1447
+ * @param {string} projectLocationCollectionEngineSessionName
1448
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1449
+ * @returns {string} A string representing the engine.
1450
+ */
1451
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1452
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1453
+ }
1454
+ /**
1455
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
1456
+ *
1457
+ * @param {string} projectLocationCollectionEngineSessionName
1458
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1459
+ * @returns {string} A string representing the session.
1460
+ */
1461
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1462
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1463
+ }
1464
+ /**
1465
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1466
+ *
1467
+ * @param {string} project
1468
+ * @param {string} location
1469
+ * @param {string} collection
1470
+ * @param {string} engine
1471
+ * @param {string} session
1472
+ * @param {string} answer
1473
+ * @returns {string} Resource name string.
1474
+ */
1475
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1476
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1477
+ project: project,
1478
+ location: location,
1479
+ collection: collection,
1480
+ engine: engine,
1481
+ session: session,
1482
+ answer: answer,
1483
+ });
1484
+ }
1485
+ /**
1486
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1487
+ *
1488
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1489
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1490
+ * @returns {string} A string representing the project.
1491
+ */
1492
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1493
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1494
+ }
1495
+ /**
1496
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1497
+ *
1498
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1499
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1500
+ * @returns {string} A string representing the location.
1501
+ */
1502
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1503
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1504
+ }
1505
+ /**
1506
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1507
+ *
1508
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1509
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1510
+ * @returns {string} A string representing the collection.
1511
+ */
1512
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1513
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1514
+ }
1515
+ /**
1516
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1517
+ *
1518
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1519
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1520
+ * @returns {string} A string representing the engine.
1521
+ */
1522
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1523
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1524
+ }
1525
+ /**
1526
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1527
+ *
1528
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1529
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1530
+ * @returns {string} A string representing the session.
1531
+ */
1532
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1533
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1534
+ }
1535
+ /**
1536
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1537
+ *
1538
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1539
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1540
+ * @returns {string} A string representing the answer.
1541
+ */
1542
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1543
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1544
+ }
1217
1545
  /**
1218
1546
  * Return a fully-qualified projectLocationDataStore resource name string.
1219
1547
  *
@@ -1625,6 +1953,132 @@ class RankServiceClient {
1625
1953
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1626
1954
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1627
1955
  }
1956
+ /**
1957
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
1958
+ *
1959
+ * @param {string} project
1960
+ * @param {string} location
1961
+ * @param {string} data_store
1962
+ * @param {string} session
1963
+ * @returns {string} Resource name string.
1964
+ */
1965
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
1966
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
1967
+ project: project,
1968
+ location: location,
1969
+ data_store: dataStore,
1970
+ session: session,
1971
+ });
1972
+ }
1973
+ /**
1974
+ * Parse the project from ProjectLocationDataStoreSession resource.
1975
+ *
1976
+ * @param {string} projectLocationDataStoreSessionName
1977
+ * A fully-qualified path representing project_location_data_store_session resource.
1978
+ * @returns {string} A string representing the project.
1979
+ */
1980
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
1981
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
1982
+ }
1983
+ /**
1984
+ * Parse the location from ProjectLocationDataStoreSession resource.
1985
+ *
1986
+ * @param {string} projectLocationDataStoreSessionName
1987
+ * A fully-qualified path representing project_location_data_store_session resource.
1988
+ * @returns {string} A string representing the location.
1989
+ */
1990
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
1991
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
1992
+ }
1993
+ /**
1994
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
1995
+ *
1996
+ * @param {string} projectLocationDataStoreSessionName
1997
+ * A fully-qualified path representing project_location_data_store_session resource.
1998
+ * @returns {string} A string representing the data_store.
1999
+ */
2000
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2001
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2002
+ }
2003
+ /**
2004
+ * Parse the session from ProjectLocationDataStoreSession resource.
2005
+ *
2006
+ * @param {string} projectLocationDataStoreSessionName
2007
+ * A fully-qualified path representing project_location_data_store_session resource.
2008
+ * @returns {string} A string representing the session.
2009
+ */
2010
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2011
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2012
+ }
2013
+ /**
2014
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2015
+ *
2016
+ * @param {string} project
2017
+ * @param {string} location
2018
+ * @param {string} data_store
2019
+ * @param {string} session
2020
+ * @param {string} answer
2021
+ * @returns {string} Resource name string.
2022
+ */
2023
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2024
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2025
+ project: project,
2026
+ location: location,
2027
+ data_store: dataStore,
2028
+ session: session,
2029
+ answer: answer,
2030
+ });
2031
+ }
2032
+ /**
2033
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2034
+ *
2035
+ * @param {string} projectLocationDataStoreSessionAnswerName
2036
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2037
+ * @returns {string} A string representing the project.
2038
+ */
2039
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2040
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2041
+ }
2042
+ /**
2043
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2044
+ *
2045
+ * @param {string} projectLocationDataStoreSessionAnswerName
2046
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2047
+ * @returns {string} A string representing the location.
2048
+ */
2049
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2050
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2051
+ }
2052
+ /**
2053
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2054
+ *
2055
+ * @param {string} projectLocationDataStoreSessionAnswerName
2056
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2057
+ * @returns {string} A string representing the data_store.
2058
+ */
2059
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2060
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2061
+ }
2062
+ /**
2063
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2064
+ *
2065
+ * @param {string} projectLocationDataStoreSessionAnswerName
2066
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2067
+ * @returns {string} A string representing the session.
2068
+ */
2069
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2070
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2071
+ }
2072
+ /**
2073
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2074
+ *
2075
+ * @param {string} projectLocationDataStoreSessionAnswerName
2076
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2077
+ * @returns {string} A string representing the answer.
2078
+ */
2079
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2080
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2081
+ }
1628
2082
  /**
1629
2083
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1630
2084
  *
@@ -6,6 +6,9 @@
6
6
  "idempotent": [
7
7
  "DEADLINE_EXCEEDED",
8
8
  "UNAVAILABLE"
9
+ ],
10
+ "unavailable": [
11
+ "UNAVAILABLE"
9
12
  ]
10
13
  },
11
14
  "retry_params": {
@@ -17,12 +20,22 @@
17
20
  "rpc_timeout_multiplier": 1,
18
21
  "max_rpc_timeout_millis": 60000,
19
22
  "total_timeout_millis": 600000
23
+ },
24
+ "ce5b960a6ed052e690863808e4f0deff3dc7d49f": {
25
+ "initial_retry_delay_millis": 1000,
26
+ "retry_delay_multiplier": 1.3,
27
+ "max_retry_delay_millis": 10000,
28
+ "initial_rpc_timeout_millis": 60000,
29
+ "rpc_timeout_multiplier": 1,
30
+ "max_rpc_timeout_millis": 60000,
31
+ "total_timeout_millis": 600000
20
32
  }
21
33
  },
22
34
  "methods": {
23
35
  "Rank": {
24
- "retry_codes_name": "non_idempotent",
25
- "retry_params_name": "default"
36
+ "timeout_millis": 30000,
37
+ "retry_codes_name": "unavailable",
38
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
26
39
  }
27
40
  }
28
41
  }