google-cloud-discovery_engine-v1 2.13.0 → 2.14.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 (250) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +8 -10
  4. data/lib/google/cloud/discovery_engine/v1/acl_config_service/client.rb +591 -0
  5. data/lib/google/cloud/discovery_engine/v1/acl_config_service/credentials.rb +49 -0
  6. data/lib/google/cloud/discovery_engine/v1/acl_config_service/paths.rb +50 -0
  7. data/lib/google/cloud/discovery_engine/v1/acl_config_service/rest/client.rb +534 -0
  8. data/lib/google/cloud/discovery_engine/v1/acl_config_service/rest/service_stub.rb +204 -0
  9. data/lib/google/cloud/discovery_engine/v1/acl_config_service/rest.rb +52 -0
  10. data/lib/google/cloud/discovery_engine/v1/acl_config_service.rb +55 -0
  11. data/lib/google/cloud/discovery_engine/v1/assistant_service/client.rb +528 -0
  12. data/lib/google/cloud/discovery_engine/v1/assistant_service/credentials.rb +4 -1
  13. data/lib/google/cloud/discovery_engine/v1/assistant_service/paths.rb +104 -0
  14. data/lib/google/cloud/discovery_engine/v1/assistant_service/rest/client.rb +493 -0
  15. data/lib/google/cloud/discovery_engine/v1/assistant_service/rest/service_stub.rb +307 -0
  16. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/credentials.rb +3 -1
  17. data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest/operations.rb +7 -0
  18. data/lib/google/cloud/discovery_engine/v1/collection_service/client.rb +732 -0
  19. data/lib/google/cloud/discovery_engine/v1/collection_service/credentials.rb +49 -0
  20. data/lib/google/cloud/discovery_engine/v1/collection_service/operations.rb +843 -0
  21. data/lib/google/cloud/discovery_engine/v1/collection_service/paths.rb +52 -0
  22. data/lib/google/cloud/discovery_engine/v1/collection_service/rest/client.rb +668 -0
  23. data/lib/google/cloud/discovery_engine/v1/collection_service/rest/operations.rb +1168 -0
  24. data/lib/google/cloud/discovery_engine/v1/collection_service/rest/service_stub.rb +265 -0
  25. data/lib/google/cloud/discovery_engine/v1/collection_service/rest.rb +54 -0
  26. data/lib/google/cloud/discovery_engine/v1/collection_service.rb +57 -0
  27. data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +162 -4
  28. data/lib/google/cloud/discovery_engine/v1/completion_service/credentials.rb +5 -1
  29. data/lib/google/cloud/discovery_engine/v1/completion_service/paths.rb +62 -0
  30. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +155 -4
  31. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +7 -0
  32. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +78 -0
  33. data/lib/google/cloud/discovery_engine/v1/control_service/credentials.rb +3 -1
  34. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +37 -9
  35. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/credentials.rb +3 -1
  36. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +21 -0
  37. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +37 -9
  38. data/lib/google/cloud/discovery_engine/v1/data_connector_service/client.rb +779 -0
  39. data/lib/google/cloud/discovery_engine/v1/data_connector_service/credentials.rb +50 -0
  40. data/lib/google/cloud/discovery_engine/v1/data_connector_service/operations.rb +843 -0
  41. data/lib/google/cloud/discovery_engine/v1/data_connector_service/paths.rb +227 -0
  42. data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest/client.rb +715 -0
  43. data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest/operations.rb +1168 -0
  44. data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest/service_stub.rb +274 -0
  45. data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest.rb +53 -0
  46. data/lib/google/cloud/discovery_engine/v1/data_connector_service.rb +56 -0
  47. data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +215 -0
  48. data/lib/google/cloud/discovery_engine/v1/data_store_service/credentials.rb +3 -1
  49. data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +62 -0
  50. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +201 -0
  51. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +7 -0
  52. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/service_stub.rb +138 -0
  53. data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +0 -1
  54. data/lib/google/cloud/discovery_engine/v1/document_service/credentials.rb +3 -1
  55. data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +0 -1
  56. data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +7 -0
  57. data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +218 -3
  58. data/lib/google/cloud/discovery_engine/v1/engine_service/credentials.rb +3 -1
  59. data/lib/google/cloud/discovery_engine/v1/engine_service/paths.rb +104 -0
  60. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +204 -3
  61. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +7 -0
  62. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/service_stub.rb +123 -0
  63. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/credentials.rb +3 -1
  64. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/client.rb +1 -0
  65. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/credentials.rb +3 -1
  66. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/client.rb +1 -0
  67. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/operations.rb +7 -0
  68. data/lib/google/cloud/discovery_engine/v1/license_config_service/client.rb +1044 -0
  69. data/lib/google/cloud/discovery_engine/v1/license_config_service/credentials.rb +49 -0
  70. data/lib/google/cloud/discovery_engine/v1/license_config_service/paths.rb +86 -0
  71. data/lib/google/cloud/discovery_engine/v1/license_config_service/rest/client.rb +959 -0
  72. data/lib/google/cloud/discovery_engine/v1/license_config_service/rest/service_stub.rb +451 -0
  73. data/lib/google/cloud/discovery_engine/v1/license_config_service/rest.rb +52 -0
  74. data/lib/google/cloud/discovery_engine/v1/license_config_service.rb +55 -0
  75. data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +3 -1
  76. data/lib/google/cloud/discovery_engine/v1/project_service/credentials.rb +3 -1
  77. data/lib/google/cloud/discovery_engine/v1/project_service/rest/client.rb +3 -1
  78. data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +7 -0
  79. data/lib/google/cloud/discovery_engine/v1/project_service/rest/service_stub.rb +8 -0
  80. data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +1 -1
  81. data/lib/google/cloud/discovery_engine/v1/rank_service/credentials.rb +3 -1
  82. data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +1 -1
  83. data/lib/google/cloud/discovery_engine/v1/recommendation_service/credentials.rb +3 -1
  84. data/lib/google/cloud/discovery_engine/v1/rest.rb +8 -2
  85. data/lib/google/cloud/discovery_engine/v1/schema_service/credentials.rb +3 -1
  86. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +7 -0
  87. data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +14 -2
  88. data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +21 -0
  89. data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +14 -2
  90. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/credentials.rb +3 -1
  91. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +7 -0
  92. data/lib/google/cloud/discovery_engine/v1/serving_config_service/client.rb +408 -3
  93. data/lib/google/cloud/discovery_engine/v1/serving_config_service/credentials.rb +3 -1
  94. data/lib/google/cloud/discovery_engine/v1/serving_config_service/paths.rb +66 -0
  95. data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/client.rb +380 -3
  96. data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/service_stub.rb +303 -0
  97. data/lib/google/cloud/discovery_engine/v1/session_service/client.rb +25 -9
  98. data/lib/google/cloud/discovery_engine/v1/session_service/credentials.rb +4 -1
  99. data/lib/google/cloud/discovery_engine/v1/session_service/paths.rb +21 -0
  100. data/lib/google/cloud/discovery_engine/v1/session_service/rest/client.rb +25 -9
  101. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/credentials.rb +3 -1
  102. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +7 -0
  103. data/lib/google/cloud/discovery_engine/v1/user_event_service/credentials.rb +4 -1
  104. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +7 -0
  105. data/lib/google/cloud/discovery_engine/v1/user_license_service/client.rb +124 -7
  106. data/lib/google/cloud/discovery_engine/v1/user_license_service/credentials.rb +3 -1
  107. data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/client.rb +117 -7
  108. data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/operations.rb +7 -0
  109. data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/service_stub.rb +61 -0
  110. data/lib/google/cloud/discovery_engine/v1/user_store_service/client.rb +590 -0
  111. data/lib/google/cloud/discovery_engine/v1/user_store_service/credentials.rb +49 -0
  112. data/lib/google/cloud/discovery_engine/v1/user_store_service/paths.rb +71 -0
  113. data/lib/google/cloud/discovery_engine/v1/user_store_service/rest/client.rb +533 -0
  114. data/lib/google/cloud/discovery_engine/v1/user_store_service/rest/service_stub.rb +204 -0
  115. data/lib/google/cloud/discovery_engine/v1/user_store_service/rest.rb +52 -0
  116. data/lib/google/cloud/discovery_engine/v1/user_store_service.rb +55 -0
  117. data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
  118. data/lib/google/cloud/discovery_engine/v1/widget_config_service/client.rb +624 -0
  119. data/lib/google/cloud/discovery_engine/v1/widget_config_service/credentials.rb +50 -0
  120. data/lib/google/cloud/discovery_engine/v1/widget_config_service/paths.rb +101 -0
  121. data/lib/google/cloud/discovery_engine/v1/widget_config_service/rest/client.rb +567 -0
  122. data/lib/google/cloud/discovery_engine/v1/widget_config_service/rest/service_stub.rb +234 -0
  123. data/lib/google/cloud/discovery_engine/v1/widget_config_service/rest.rb +53 -0
  124. data/lib/google/cloud/discovery_engine/v1/widget_config_service.rb +56 -0
  125. data/lib/google/cloud/discovery_engine/v1.rb +9 -3
  126. data/lib/google/cloud/discoveryengine/v1/acl_config_pb.rb +25 -0
  127. data/lib/google/cloud/discoveryengine/v1/acl_config_service_pb.rb +28 -0
  128. data/lib/google/cloud/discoveryengine/v1/acl_config_service_services_pb.rb +49 -0
  129. data/lib/google/cloud/discoveryengine/v1/agent_gateway_setting_pb.rb +25 -0
  130. data/lib/google/cloud/discoveryengine/v1/assist_answer_pb.rb +13 -1
  131. data/lib/google/cloud/discoveryengine/v1/assistant_pb.rb +13 -1
  132. data/lib/google/cloud/discoveryengine/v1/assistant_service_pb.rb +12 -1
  133. data/lib/google/cloud/discoveryengine/v1/assistant_service_services_pb.rb +12 -1
  134. data/lib/google/cloud/discoveryengine/v1/chunk_pb.rb +1 -1
  135. data/lib/google/cloud/discoveryengine/v1/cmek_config_service_pb.rb +1 -1
  136. data/lib/google/cloud/discoveryengine/v1/cmek_config_service_services_pb.rb +1 -1
  137. data/lib/google/cloud/discoveryengine/v1/collection_pb.rb +25 -0
  138. data/lib/google/cloud/discoveryengine/v1/collection_service_pb.rb +32 -0
  139. data/lib/google/cloud/discoveryengine/v1/collection_service_services_pb.rb +65 -0
  140. data/lib/google/cloud/discoveryengine/v1/common_pb.rb +13 -1
  141. data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +16 -1
  142. data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +3 -1
  143. data/lib/google/cloud/discoveryengine/v1/control_service_pb.rb +1 -1
  144. data/lib/google/cloud/discoveryengine/v1/control_service_services_pb.rb +1 -1
  145. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
  146. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +1 -1
  147. data/lib/google/cloud/discoveryengine/v1/data_connector_pb.rb +57 -0
  148. data/lib/google/cloud/discoveryengine/v1/data_connector_service_pb.rb +32 -0
  149. data/lib/google/cloud/discoveryengine/v1/data_connector_service_services_pb.rb +58 -0
  150. data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +10 -1
  151. data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +3 -1
  152. data/lib/google/cloud/discoveryengine/v1/data_store_service_services_pb.rb +20 -1
  153. data/lib/google/cloud/discoveryengine/v1/document_processing_config_pb.rb +1 -1
  154. data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +1 -1
  155. data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +1 -1
  156. data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +11 -1
  157. data/lib/google/cloud/discoveryengine/v1/engine_service_pb.rb +3 -1
  158. data/lib/google/cloud/discoveryengine/v1/engine_service_services_pb.rb +23 -4
  159. data/lib/google/cloud/discoveryengine/v1/feedback_pb.rb +28 -0
  160. data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +7 -1
  161. data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +1 -1
  162. data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_pb.rb +1 -1
  163. data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_pb.rb +1 -1
  164. data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_services_pb.rb +1 -1
  165. data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +1 -1
  166. data/lib/google/cloud/discoveryengine/v1/license_config_pb.rb +28 -0
  167. data/lib/google/cloud/discoveryengine/v1/license_config_service_pb.rb +36 -0
  168. data/lib/google/cloud/discoveryengine/v1/license_config_service_services_pb.rb +63 -0
  169. data/lib/google/cloud/discoveryengine/v1/logging_pb.rb +24 -0
  170. data/lib/google/cloud/discoveryengine/v1/project_pb.rb +11 -1
  171. data/lib/google/cloud/discoveryengine/v1/project_service_pb.rb +2 -1
  172. data/lib/google/cloud/discoveryengine/v1/project_service_services_pb.rb +1 -1
  173. data/lib/google/cloud/discoveryengine/v1/rank_service_pb.rb +1 -1
  174. data/lib/google/cloud/discoveryengine/v1/rank_service_services_pb.rb +1 -1
  175. data/lib/google/cloud/discoveryengine/v1/recommendation_service_pb.rb +1 -1
  176. data/lib/google/cloud/discoveryengine/v1/recommendation_service_services_pb.rb +1 -1
  177. data/lib/google/cloud/discoveryengine/v1/schema_service_pb.rb +1 -1
  178. data/lib/google/cloud/discoveryengine/v1/schema_service_services_pb.rb +1 -1
  179. data/lib/google/cloud/discoveryengine/v1/search_tuning_service_pb.rb +1 -1
  180. data/lib/google/cloud/discoveryengine/v1/search_tuning_service_services_pb.rb +1 -1
  181. data/lib/google/cloud/discoveryengine/v1/serving_config_pb.rb +3 -1
  182. data/lib/google/cloud/discoveryengine/v1/serving_config_service_pb.rb +7 -1
  183. data/lib/google/cloud/discoveryengine/v1/serving_config_service_services_pb.rb +21 -1
  184. data/lib/google/cloud/discoveryengine/v1/session_pb.rb +1 -1
  185. data/lib/google/cloud/discoveryengine/v1/session_service_pb.rb +1 -1
  186. data/lib/google/cloud/discoveryengine/v1/session_service_services_pb.rb +1 -1
  187. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +1 -1
  188. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +1 -1
  189. data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +2 -1
  190. data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
  191. data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +1 -1
  192. data/lib/google/cloud/discoveryengine/v1/user_license_pb.rb +2 -1
  193. data/lib/google/cloud/discoveryengine/v1/user_license_service_pb.rb +3 -1
  194. data/lib/google/cloud/discoveryengine/v1/user_license_service_services_pb.rb +5 -1
  195. data/lib/google/cloud/discoveryengine/v1/user_store_pb.rb +24 -0
  196. data/lib/google/cloud/discoveryengine/v1/user_store_service_pb.rb +29 -0
  197. data/lib/google/cloud/discoveryengine/v1/user_store_service_services_pb.rb +47 -0
  198. data/lib/google/cloud/discoveryengine/v1/widget_config_pb.rb +63 -0
  199. data/lib/google/cloud/discoveryengine/v1/widget_config_service_pb.rb +30 -0
  200. data/lib/google/cloud/discoveryengine/v1/widget_config_service_services_pb.rb +48 -0
  201. data/proto_docs/google/cloud/discoveryengine/v1/acl_config.rb +43 -0
  202. data/proto_docs/google/cloud/discoveryengine/v1/acl_config_service.rb +49 -0
  203. data/proto_docs/google/cloud/discoveryengine/v1/agent_gateway_setting.rb +53 -0
  204. data/proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb +164 -1
  205. data/proto_docs/google/cloud/discoveryengine/v1/assistant.rb +217 -0
  206. data/proto_docs/google/cloud/discoveryengine/v1/assistant_service.rb +179 -6
  207. data/proto_docs/google/cloud/discoveryengine/v1/chunk.rb +4 -0
  208. data/proto_docs/google/cloud/discoveryengine/v1/cmek_config_service.rb +7 -2
  209. data/proto_docs/google/cloud/discoveryengine/v1/collection.rb +51 -0
  210. data/proto_docs/google/cloud/discoveryengine/v1/collection_service.rb +53 -0
  211. data/proto_docs/google/cloud/discoveryengine/v1/common.rb +201 -0
  212. data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +320 -4
  213. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +31 -8
  214. data/proto_docs/google/cloud/discoveryengine/v1/data_connector.rb +875 -0
  215. data/proto_docs/google/cloud/discoveryengine/v1/data_connector_service.rb +142 -0
  216. data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +179 -2
  217. data/proto_docs/google/cloud/discoveryengine/v1/document.rb +9 -4
  218. data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +7 -0
  219. data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +251 -1
  220. data/proto_docs/google/cloud/discoveryengine/v1/feedback.rb +165 -0
  221. data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +107 -0
  222. data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store.rb +3 -0
  223. data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store_service.rb +1 -0
  224. data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +6 -4
  225. data/proto_docs/google/cloud/discoveryengine/v1/license_config.rb +107 -0
  226. data/proto_docs/google/cloud/discoveryengine/v1/license_config_service.rb +220 -0
  227. data/proto_docs/google/cloud/discoveryengine/v1/logging.rb +40 -0
  228. data/proto_docs/google/cloud/discoveryengine/v1/project.rb +229 -0
  229. data/proto_docs/google/cloud/discoveryengine/v1/project_service.rb +18 -0
  230. data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +2 -1
  231. data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +3 -3
  232. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +7 -1
  233. data/proto_docs/google/cloud/discoveryengine/v1/serving_config.rb +43 -0
  234. data/proto_docs/google/cloud/discoveryengine/v1/serving_config_service.rb +71 -0
  235. data/proto_docs/google/cloud/discoveryengine/v1/session.rb +9 -0
  236. data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +16 -6
  237. data/proto_docs/google/cloud/discoveryengine/v1/user_license.rb +16 -1
  238. data/proto_docs/google/cloud/discoveryengine/v1/user_license_service.rb +53 -6
  239. data/proto_docs/google/cloud/discoveryengine/v1/user_store.rb +66 -0
  240. data/proto_docs/google/cloud/discoveryengine/v1/user_store_service.rb +54 -0
  241. data/proto_docs/google/cloud/discoveryengine/v1/widget_config.rb +1082 -0
  242. data/proto_docs/google/cloud/discoveryengine/v1/widget_config_service.rb +102 -0
  243. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  244. data/proto_docs/google/iam/v1/options.rb +50 -0
  245. data/proto_docs/google/iam/v1/policy.rb +426 -0
  246. data/proto_docs/google/type/date.rb +1 -1
  247. data/proto_docs/google/type/datetime.rb +104 -0
  248. data/proto_docs/google/type/expr.rb +75 -0
  249. data/proto_docs/google/type/latlng.rb +38 -0
  250. metadata +103 -1
@@ -0,0 +1,101 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1
24
+ module WidgetConfigService
25
+ # Path helper methods for the WidgetConfigService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified WidgetConfig resource string.
29
+ #
30
+ # @overload widget_config_path(project:, location:, data_store:, widget_config:)
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/locations/{location}/dataStores/{data_store}/widgetConfigs/{widget_config}`
34
+ #
35
+ # @param project [String]
36
+ # @param location [String]
37
+ # @param data_store [String]
38
+ # @param widget_config [String]
39
+ #
40
+ # @overload widget_config_path(project:, location:, collection:, data_store:, widget_config:)
41
+ # The resource will be in the following format:
42
+ #
43
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/widgetConfigs/{widget_config}`
44
+ #
45
+ # @param project [String]
46
+ # @param location [String]
47
+ # @param collection [String]
48
+ # @param data_store [String]
49
+ # @param widget_config [String]
50
+ #
51
+ # @overload widget_config_path(project:, location:, collection:, engine:, widget_config:)
52
+ # The resource will be in the following format:
53
+ #
54
+ # `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/widgetConfigs/{widget_config}`
55
+ #
56
+ # @param project [String]
57
+ # @param location [String]
58
+ # @param collection [String]
59
+ # @param engine [String]
60
+ # @param widget_config [String]
61
+ #
62
+ # @return [::String]
63
+ def widget_config_path **args
64
+ resources = {
65
+ "data_store:location:project:widget_config" => (proc do |project:, location:, data_store:, widget_config:|
66
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
67
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
68
+ raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
69
+
70
+ "projects/#{project}/locations/#{location}/dataStores/#{data_store}/widgetConfigs/#{widget_config}"
71
+ end),
72
+ "collection:data_store:location:project:widget_config" => (proc do |project:, location:, collection:, data_store:, widget_config:|
73
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
74
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
75
+ raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
76
+ raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
77
+
78
+ "projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}/widgetConfigs/#{widget_config}"
79
+ end),
80
+ "collection:engine:location:project:widget_config" => (proc do |project:, location:, collection:, engine:, widget_config:|
81
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
82
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
83
+ raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
84
+ raise ::ArgumentError, "engine cannot contain /" if engine.to_s.include? "/"
85
+
86
+ "projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}/widgetConfigs/#{widget_config}"
87
+ end)
88
+ }
89
+
90
+ resource = resources[args.keys.sort.join(":")]
91
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
92
+ resource.call(**args)
93
+ end
94
+
95
+ extend self
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,567 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/discoveryengine/v1/widget_config_service_pb"
21
+ require "google/cloud/discovery_engine/v1/widget_config_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module DiscoveryEngine
27
+ module V1
28
+ module WidgetConfigService
29
+ module Rest
30
+ ##
31
+ # REST client for the WidgetConfigService service.
32
+ #
33
+ # Service for managing
34
+ # {::Google::Cloud::DiscoveryEngine::V1::WidgetConfig WidgetConfig} configuration.
35
+ #
36
+ class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
40
+ # @private
41
+ DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
42
+
43
+ include Paths
44
+
45
+ # @private
46
+ attr_reader :widget_config_service_stub
47
+
48
+ ##
49
+ # Configure the WidgetConfigService Client class.
50
+ #
51
+ # See {::Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client::Configuration}
52
+ # for a description of the configuration fields.
53
+ #
54
+ # @example
55
+ #
56
+ # # Modify the configuration for all WidgetConfigService clients
57
+ # ::Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client.configure do |config|
58
+ # config.timeout = 10.0
59
+ # end
60
+ #
61
+ # @yield [config] Configure the Client client.
62
+ # @yieldparam config [Client::Configuration]
63
+ #
64
+ # @return [Client::Configuration]
65
+ #
66
+ def self.configure
67
+ @configure ||= begin
68
+ namespace = ["Google", "Cloud", "DiscoveryEngine", "V1"]
69
+ parent_config = while namespace.any?
70
+ parent_name = namespace.join "::"
71
+ parent_const = const_get parent_name
72
+ break parent_const.configure if parent_const.respond_to? :configure
73
+ namespace.pop
74
+ end
75
+ default_config = Client::Configuration.new parent_config
76
+
77
+ default_config
78
+ end
79
+ yield @configure if block_given?
80
+ @configure
81
+ end
82
+
83
+ ##
84
+ # Configure the WidgetConfigService Client instance.
85
+ #
86
+ # The configuration is set to the derived mode, meaning that values can be changed,
87
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
88
+ # should be made on {Client.configure}.
89
+ #
90
+ # See {::Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client::Configuration}
91
+ # for a description of the configuration fields.
92
+ #
93
+ # @yield [config] Configure the Client client.
94
+ # @yieldparam config [Client::Configuration]
95
+ #
96
+ # @return [Client::Configuration]
97
+ #
98
+ def configure
99
+ yield @config if block_given?
100
+ @config
101
+ end
102
+
103
+ ##
104
+ # The effective universe domain
105
+ #
106
+ # @return [String]
107
+ #
108
+ def universe_domain
109
+ @widget_config_service_stub.universe_domain
110
+ end
111
+
112
+ ##
113
+ # Create a new WidgetConfigService REST client object.
114
+ #
115
+ # @example
116
+ #
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client.new
119
+ #
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
124
+ #
125
+ # @yield [config] Configure the WidgetConfigService client.
126
+ # @yieldparam config [Client::Configuration]
127
+ #
128
+ def initialize
129
+ # Create the configuration object
130
+ @config = Configuration.new Client.configure
131
+
132
+ # Yield the configuration if needed
133
+ yield @config if block_given?
134
+
135
+ # Create credentials
136
+ credentials = @config.credentials
137
+ # Use self-signed JWT if the endpoint is unchanged from default,
138
+ # but only if the default endpoint does not have a region prefix.
139
+ enable_self_signed_jwt = @config.endpoint.nil? ||
140
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
141
+ !@config.endpoint.split(".").first.include?("-"))
142
+ credentials ||= Credentials.default scope: @config.scope,
143
+ enable_self_signed_jwt: enable_self_signed_jwt
144
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
+ credentials = Credentials.new credentials, scope: @config.scope
146
+ end
147
+
148
+ @quota_project_id = @config.quota_project
149
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
150
+
151
+ @widget_config_service_stub = ::Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::ServiceStub.new(
152
+ endpoint: @config.endpoint,
153
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
154
+ universe_domain: @config.universe_domain,
155
+ credentials: credentials,
156
+ logger: @config.logger
157
+ )
158
+
159
+ @widget_config_service_stub.logger(stub: true)&.info do |entry|
160
+ entry.set_system_name
161
+ entry.set_service
162
+ entry.message = "Created client for #{entry.service}"
163
+ entry.set_credentials_fields credentials
164
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
165
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
166
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
167
+ end
168
+
169
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
170
+ config.credentials = credentials
171
+ config.quota_project = @quota_project_id
172
+ config.endpoint = @widget_config_service_stub.endpoint
173
+ config.universe_domain = @widget_config_service_stub.universe_domain
174
+ config.logger = @widget_config_service_stub.logger if config.respond_to? :logger=
175
+ end
176
+ end
177
+
178
+ ##
179
+ # Get the associated client for mix-in of the Locations.
180
+ #
181
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
182
+ #
183
+ attr_reader :location_client
184
+
185
+ ##
186
+ # The logger used for request/response debug logging.
187
+ #
188
+ # @return [Logger]
189
+ #
190
+ def logger
191
+ @widget_config_service_stub.logger
192
+ end
193
+
194
+ # Service calls
195
+
196
+ ##
197
+ # Gets a {::Google::Cloud::DiscoveryEngine::V1::WidgetConfig WidgetConfig}.
198
+ #
199
+ # @overload get_widget_config(request, options = nil)
200
+ # Pass arguments to `get_widget_config` via a request object, either of type
201
+ # {::Google::Cloud::DiscoveryEngine::V1::GetWidgetConfigRequest} or an equivalent Hash.
202
+ #
203
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::GetWidgetConfigRequest, ::Hash]
204
+ # A request object representing the call parameters. Required. To specify no
205
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
206
+ # @param options [::Gapic::CallOptions, ::Hash]
207
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
208
+ #
209
+ # @overload get_widget_config(name: nil, accept_cache: nil, get_widget_config_request_option: nil, language_code: nil, model_info_view: nil)
210
+ # Pass arguments to `get_widget_config` via keyword arguments. Note that at
211
+ # least one keyword argument is required. To specify no parameters, or to keep all
212
+ # the default parameter values, pass an empty Hash as a request object (see above).
213
+ #
214
+ # @param name [::String]
215
+ # Required. Full WidgetConfig resource name. Format:
216
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
217
+ # @param accept_cache [::Boolean]
218
+ # Optional. Whether it's acceptable to load the widget config from cache. If
219
+ # set to true, recent changes on widget configs may take a few minutes to
220
+ # reflect on the end user's view. It's recommended to set to true for
221
+ # maturely developed widgets, as it improves widget performance. Set to false
222
+ # to see changes reflected in prod right away, if your widget is under
223
+ # development.
224
+ # @param get_widget_config_request_option [::Google::Cloud::DiscoveryEngine::V1::GetWidgetConfigRequest::GetWidgetConfigRequestOption, ::Hash]
225
+ # Optional. Options for GetWidgetConfigRequest.
226
+ # @param language_code [::String]
227
+ # Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
228
+ # human-readable strings in the response, such as the model selector
229
+ # `display_name` / `description` on
230
+ # `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
231
+ # the default language (English).
232
+ # @param model_info_view [::Google::Cloud::DiscoveryEngine::V1::ModelInfoView]
233
+ # Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
234
+ # the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
235
+ # Management" page to receive the admin-surfaced
236
+ # model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
237
+ # set by the Gemini Enterprise mobile app to receive the mobile model set;
238
+ # unset / `END_USER_WEB` returns the end-user web selector.
239
+ # @yield [result, operation] Access the result along with the TransportOperation object
240
+ # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::WidgetConfig]
241
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
242
+ #
243
+ # @return [::Google::Cloud::DiscoveryEngine::V1::WidgetConfig]
244
+ #
245
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
246
+ #
247
+ # @example Basic example
248
+ # require "google/cloud/discovery_engine/v1"
249
+ #
250
+ # # Create a client object. The client can be reused for multiple calls.
251
+ # client = Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client.new
252
+ #
253
+ # # Create a request. To set request fields, pass in keyword arguments.
254
+ # request = Google::Cloud::DiscoveryEngine::V1::GetWidgetConfigRequest.new
255
+ #
256
+ # # Call the get_widget_config method.
257
+ # result = client.get_widget_config request
258
+ #
259
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::WidgetConfig.
260
+ # p result
261
+ #
262
+ def get_widget_config request, options = nil
263
+ raise ::ArgumentError, "request must be provided" if request.nil?
264
+
265
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::GetWidgetConfigRequest
266
+
267
+ # Converts hash and nil to an options object
268
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
269
+
270
+ # Customize the options with defaults
271
+ call_metadata = @config.rpcs.get_widget_config.metadata.to_h
272
+
273
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
274
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
276
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
277
+ transports_version_send: [:rest]
278
+
279
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
280
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
281
+
282
+ options.apply_defaults timeout: @config.rpcs.get_widget_config.timeout,
283
+ metadata: call_metadata,
284
+ retry_policy: @config.rpcs.get_widget_config.retry_policy
285
+
286
+ options.apply_defaults timeout: @config.timeout,
287
+ metadata: @config.metadata,
288
+ retry_policy: @config.retry_policy
289
+
290
+ @widget_config_service_stub.get_widget_config request, options do |result, operation|
291
+ yield result, operation if block_given?
292
+ end
293
+ rescue ::Gapic::Rest::Error => e
294
+ raise ::Google::Cloud::Error.from_error(e)
295
+ end
296
+
297
+ ##
298
+ # Update a WidgetConfig.
299
+ #
300
+ # @overload update_widget_config(request, options = nil)
301
+ # Pass arguments to `update_widget_config` via a request object, either of type
302
+ # {::Google::Cloud::DiscoveryEngine::V1::UpdateWidgetConfigRequest} or an equivalent Hash.
303
+ #
304
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::UpdateWidgetConfigRequest, ::Hash]
305
+ # A request object representing the call parameters. Required. To specify no
306
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
307
+ # @param options [::Gapic::CallOptions, ::Hash]
308
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
309
+ #
310
+ # @overload update_widget_config(widget_config: nil, update_mask: nil)
311
+ # Pass arguments to `update_widget_config` via keyword arguments. Note that at
312
+ # least one keyword argument is required. To specify no parameters, or to keep all
313
+ # the default parameter values, pass an empty Hash as a request object (see above).
314
+ #
315
+ # @param widget_config [::Google::Cloud::DiscoveryEngine::V1::WidgetConfig, ::Hash]
316
+ # Required. The {::Google::Cloud::DiscoveryEngine::V1::WidgetConfig WidgetConfig}
317
+ # to update.
318
+ #
319
+ # If the caller does not have permission to update the
320
+ # {::Google::Cloud::DiscoveryEngine::V1::WidgetConfig WidgetConfig}, then a
321
+ # PERMISSION_DENIED error is returned.
322
+ #
323
+ # If the {::Google::Cloud::DiscoveryEngine::V1::WidgetConfig WidgetConfig} to
324
+ # update does not exist, a NOT_FOUND error is returned.
325
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
326
+ # Indicates which fields in the provided
327
+ # {::Google::Cloud::DiscoveryEngine::V1::WidgetConfig WidgetConfig} to update. The
328
+ # following are the only supported fields:
329
+ #
330
+ # * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
331
+ #
332
+ # If not set, all supported fields are updated.
333
+ # @yield [result, operation] Access the result along with the TransportOperation object
334
+ # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::WidgetConfig]
335
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
336
+ #
337
+ # @return [::Google::Cloud::DiscoveryEngine::V1::WidgetConfig]
338
+ #
339
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
340
+ #
341
+ # @example Basic example
342
+ # require "google/cloud/discovery_engine/v1"
343
+ #
344
+ # # Create a client object. The client can be reused for multiple calls.
345
+ # client = Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client.new
346
+ #
347
+ # # Create a request. To set request fields, pass in keyword arguments.
348
+ # request = Google::Cloud::DiscoveryEngine::V1::UpdateWidgetConfigRequest.new
349
+ #
350
+ # # Call the update_widget_config method.
351
+ # result = client.update_widget_config request
352
+ #
353
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::WidgetConfig.
354
+ # p result
355
+ #
356
+ def update_widget_config request, options = nil
357
+ raise ::ArgumentError, "request must be provided" if request.nil?
358
+
359
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::UpdateWidgetConfigRequest
360
+
361
+ # Converts hash and nil to an options object
362
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
363
+
364
+ # Customize the options with defaults
365
+ call_metadata = @config.rpcs.update_widget_config.metadata.to_h
366
+
367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
368
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
369
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
370
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
371
+ transports_version_send: [:rest]
372
+
373
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
374
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
375
+
376
+ options.apply_defaults timeout: @config.rpcs.update_widget_config.timeout,
377
+ metadata: call_metadata,
378
+ retry_policy: @config.rpcs.update_widget_config.retry_policy
379
+
380
+ options.apply_defaults timeout: @config.timeout,
381
+ metadata: @config.metadata,
382
+ retry_policy: @config.retry_policy
383
+
384
+ @widget_config_service_stub.update_widget_config request, options do |result, operation|
385
+ yield result, operation if block_given?
386
+ end
387
+ rescue ::Gapic::Rest::Error => e
388
+ raise ::Google::Cloud::Error.from_error(e)
389
+ end
390
+
391
+ ##
392
+ # Configuration class for the WidgetConfigService REST API.
393
+ #
394
+ # This class represents the configuration for WidgetConfigService REST,
395
+ # providing control over timeouts, retry behavior, logging, transport
396
+ # parameters, and other low-level controls. Certain parameters can also be
397
+ # applied individually to specific RPCs. See
398
+ # {::Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client::Configuration::Rpcs}
399
+ # for a list of RPCs that can be configured independently.
400
+ #
401
+ # Configuration can be applied globally to all clients, or to a single client
402
+ # on construction.
403
+ #
404
+ # @example
405
+ #
406
+ # # Modify the global config, setting the timeout for
407
+ # # get_widget_config to 20 seconds,
408
+ # # and all remaining timeouts to 10 seconds.
409
+ # ::Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client.configure do |config|
410
+ # config.timeout = 10.0
411
+ # config.rpcs.get_widget_config.timeout = 20.0
412
+ # end
413
+ #
414
+ # # Apply the above configuration only to a new client.
415
+ # client = ::Google::Cloud::DiscoveryEngine::V1::WidgetConfigService::Rest::Client.new do |config|
416
+ # config.timeout = 10.0
417
+ # config.rpcs.get_widget_config.timeout = 20.0
418
+ # end
419
+ #
420
+ # @!attribute [rw] endpoint
421
+ # A custom service endpoint, as a hostname or hostname:port. The default is
422
+ # nil, indicating to use the default endpoint in the current universe domain.
423
+ # @return [::String,nil]
424
+ # @!attribute [rw] credentials
425
+ # Credentials to send with calls. You may provide any of the following types:
426
+ # * (`String`) The path to a service account key file in JSON format
427
+ # * (`Hash`) A service account key as a Hash
428
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
429
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
430
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
431
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
432
+ # * (`nil`) indicating no credentials
433
+ #
434
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
435
+ # external source for authentication to Google Cloud, you must validate it before
436
+ # providing it to a Google API client library. Providing an unvalidated credential
437
+ # configuration to Google APIs can compromise the security of your systems and data.
438
+ # For more information, refer to [Validate credential configurations from external
439
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
440
+ # @return [::Object]
441
+ # @!attribute [rw] scope
442
+ # The OAuth scopes
443
+ # @return [::Array<::String>]
444
+ # @!attribute [rw] lib_name
445
+ # The library name as recorded in instrumentation and logging
446
+ # @return [::String]
447
+ # @!attribute [rw] lib_version
448
+ # The library version as recorded in instrumentation and logging
449
+ # @return [::String]
450
+ # @!attribute [rw] timeout
451
+ # The call timeout in seconds.
452
+ # @return [::Numeric]
453
+ # @!attribute [rw] metadata
454
+ # Additional headers to be sent with the call.
455
+ # @return [::Hash{::Symbol=>::String}]
456
+ # @!attribute [rw] retry_policy
457
+ # The retry policy. The value is a hash with the following keys:
458
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
459
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
460
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
461
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
462
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
463
+ # trigger a retry.
464
+ # @return [::Hash]
465
+ # @!attribute [rw] quota_project
466
+ # A separate project against which to charge quota.
467
+ # @return [::String]
468
+ # @!attribute [rw] universe_domain
469
+ # The universe domain within which to make requests. This determines the
470
+ # default endpoint URL. The default value of nil uses the environment
471
+ # universe (usually the default "googleapis.com" universe).
472
+ # @return [::String,nil]
473
+ # @!attribute [rw] logger
474
+ # A custom logger to use for request/response debug logging, or the value
475
+ # `:default` (the default) to construct a default logger, or `nil` to
476
+ # explicitly disable logging.
477
+ # @return [::Logger,:default,nil]
478
+ #
479
+ class Configuration
480
+ extend ::Gapic::Config
481
+
482
+ # @private
483
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
484
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
485
+
486
+ config_attr :endpoint, nil, ::String, nil
487
+ config_attr :credentials, nil do |value|
488
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
489
+ allowed.any? { |klass| klass === value }
490
+ end
491
+ config_attr :scope, nil, ::String, ::Array, nil
492
+ config_attr :lib_name, nil, ::String, nil
493
+ config_attr :lib_version, nil, ::String, nil
494
+ config_attr :timeout, nil, ::Numeric, nil
495
+ config_attr :metadata, nil, ::Hash, nil
496
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
497
+ config_attr :quota_project, nil, ::String, nil
498
+ config_attr :universe_domain, nil, ::String, nil
499
+ config_attr :logger, :default, ::Logger, nil, :default
500
+
501
+ # @private
502
+ def initialize parent_config = nil
503
+ @parent_config = parent_config unless parent_config.nil?
504
+
505
+ yield self if block_given?
506
+ end
507
+
508
+ ##
509
+ # Configurations for individual RPCs
510
+ # @return [Rpcs]
511
+ #
512
+ def rpcs
513
+ @rpcs ||= begin
514
+ parent_rpcs = nil
515
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
516
+ Rpcs.new parent_rpcs
517
+ end
518
+ end
519
+
520
+ ##
521
+ # Configuration RPC class for the WidgetConfigService API.
522
+ #
523
+ # Includes fields providing the configuration for each RPC in this service.
524
+ # Each configuration object is of type `Gapic::Config::Method` and includes
525
+ # the following configuration fields:
526
+ #
527
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
528
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
529
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
530
+ # include the following keys:
531
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
532
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
533
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
534
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
535
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
536
+ # trigger a retry.
537
+ #
538
+ class Rpcs
539
+ ##
540
+ # RPC-specific configuration for `get_widget_config`
541
+ # @return [::Gapic::Config::Method]
542
+ #
543
+ attr_reader :get_widget_config
544
+ ##
545
+ # RPC-specific configuration for `update_widget_config`
546
+ # @return [::Gapic::Config::Method]
547
+ #
548
+ attr_reader :update_widget_config
549
+
550
+ # @private
551
+ def initialize parent_rpcs = nil
552
+ get_widget_config_config = parent_rpcs.get_widget_config if parent_rpcs.respond_to? :get_widget_config
553
+ @get_widget_config = ::Gapic::Config::Method.new get_widget_config_config
554
+ update_widget_config_config = parent_rpcs.update_widget_config if parent_rpcs.respond_to? :update_widget_config
555
+ @update_widget_config = ::Gapic::Config::Method.new update_widget_config_config
556
+
557
+ yield self if block_given?
558
+ end
559
+ end
560
+ end
561
+ end
562
+ end
563
+ end
564
+ end
565
+ end
566
+ end
567
+ end