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
@@ -25,7 +25,7 @@ module Google
25
25
  # [AssistResponse][google.cloud.discoveryengine.v1.AssistResponse].
26
26
  # @!attribute [rw] name
27
27
  # @return [::String]
28
- # Immutable. Resource name of the `AssistAnswer`.
28
+ # Immutable. Identifier. Resource name of the `AssistAnswer`.
29
29
  # Format:
30
30
  # `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
31
31
  #
@@ -34,12 +34,25 @@ module Google
34
34
  # @!attribute [rw] state
35
35
  # @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::State]
36
36
  # State of the answer generation.
37
+ # @!attribute [r] connector_display_names
38
+ # @return [::Google::Protobuf::Map{::String => ::String}]
39
+ # Output only. Maps an internal connector agent name (the machine identifier
40
+ # embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
41
+ # connector's human-readable display name. Populated at serving time for
42
+ # custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
43
+ # tool-call chip) can show the connector name instead of its internal
44
+ # identifier. Empty when there are no such connectors.
37
45
  # @!attribute [rw] replies
38
46
  # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::Reply>]
39
47
  # Replies of the assistant.
40
48
  # @!attribute [rw] assist_skipped_reasons
41
49
  # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::AssistSkippedReason>]
42
50
  # Reasons for not answering the assist call.
51
+ # @!attribute [rw] customer_policy_enforcement_result
52
+ # @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult]
53
+ # Optional. The field contains information about the various policy checks'
54
+ # results like the banned phrases or the Model Armor checks. This field is
55
+ # populated only if the assist call was skipped due to a policy violation.
43
56
  class AssistAnswer
44
57
  include ::Google::Protobuf::MessageExts
45
58
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -48,11 +61,113 @@ module Google
48
61
  # @!attribute [rw] grounded_content
49
62
  # @return [::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent]
50
63
  # Possibly grounded response text or media from the assistant.
64
+ # @!attribute [rw] create_time
65
+ # @return [::Google::Protobuf::Timestamp]
66
+ # The time when the reply was created.
51
67
  class Reply
52
68
  include ::Google::Protobuf::MessageExts
53
69
  extend ::Google::Protobuf::MessageExts::ClassMethods
54
70
  end
55
71
 
72
+ # Customer policy enforcement results. Contains the results of the various
73
+ # policy checks, like the banned phrases or the Model Armor checks.
74
+ # @!attribute [rw] verdict
75
+ # @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::Verdict]
76
+ # Final verdict of the customer policy enforcement. If only one policy
77
+ # blocked the processing, the verdict is BLOCK.
78
+ # @!attribute [rw] policy_results
79
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::PolicyEnforcementResult>]
80
+ # Customer policy enforcement results.
81
+ # Populated only if the assist call was skipped due to a policy
82
+ # violation. It contains results from those filters that blocked the
83
+ # processing of the query.
84
+ # @!attribute [r] violation_source
85
+ # @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::ViolationSource]
86
+ # Output only. The source of the violation.
87
+ class CustomerPolicyEnforcementResult
88
+ include ::Google::Protobuf::MessageExts
89
+ extend ::Google::Protobuf::MessageExts::ClassMethods
90
+
91
+ # Customer policy enforcement result for the banned phrase policy.
92
+ # @!attribute [rw] banned_phrases
93
+ # @return [::Array<::String>]
94
+ # The banned phrases that were found in the query or the answer.
95
+ class BannedPhraseEnforcementResult
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+
100
+ # Customer policy enforcement result for the Model Armor policy.
101
+ # @!attribute [rw] model_armor_violation
102
+ # @return [::String]
103
+ # The Model Armor violation that was found.
104
+ #
105
+ # Note: The following fields are mutually exclusive: `model_armor_violation`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
106
+ # @!attribute [rw] error
107
+ # @return [::Google::Rpc::Status]
108
+ # The error returned by Model Armor if the policy enforcement failed
109
+ # for some reason.
110
+ #
111
+ # Note: The following fields are mutually exclusive: `error`, `model_armor_violation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
112
+ class ModelArmorEnforcementResult
113
+ include ::Google::Protobuf::MessageExts
114
+ extend ::Google::Protobuf::MessageExts::ClassMethods
115
+ end
116
+
117
+ # Customer policy enforcement result for a single policy type.
118
+ # @!attribute [rw] banned_phrase_enforcement_result
119
+ # @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult]
120
+ # The policy enforcement result for the banned phrase policy.
121
+ #
122
+ # Note: The following fields are mutually exclusive: `banned_phrase_enforcement_result`, `model_armor_enforcement_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
123
+ # @!attribute [rw] model_armor_enforcement_result
124
+ # @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult]
125
+ # The policy enforcement result for the Model Armor policy.
126
+ #
127
+ # Note: The following fields are mutually exclusive: `model_armor_enforcement_result`, `banned_phrase_enforcement_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
128
+ class PolicyEnforcementResult
129
+ include ::Google::Protobuf::MessageExts
130
+ extend ::Google::Protobuf::MessageExts::ClassMethods
131
+ end
132
+
133
+ # The verdict of the customer policy enforcement.
134
+ module Verdict
135
+ # Unknown value.
136
+ UNSPECIFIED = 0
137
+
138
+ # There was no policy violation.
139
+ ALLOW = 1
140
+
141
+ # Processing was blocked by the customer policy.
142
+ BLOCK = 2
143
+ end
144
+
145
+ # If the assist call was skipped due to a policy violation, this contains
146
+ # the source of the violation.
147
+ module ViolationSource
148
+ # Unknown value.
149
+ VIOLATION_SOURCE_UNSPECIFIED = 0
150
+
151
+ # Violation found in the system response.
152
+ SYSTEM = 1
153
+
154
+ # Violation found in the user prompt.
155
+ PROMPT = 2
156
+
157
+ # Violation found in the user attachment.
158
+ ATTACHMENT = 3
159
+ end
160
+ end
161
+
162
+ # @!attribute [rw] key
163
+ # @return [::String]
164
+ # @!attribute [rw] value
165
+ # @return [::String]
166
+ class ConnectorDisplayNamesEntry
167
+ include ::Google::Protobuf::MessageExts
168
+ extend ::Google::Protobuf::MessageExts::ClassMethods
169
+ end
170
+
56
171
  # State of the answer generation.
57
172
  module State
58
173
  # Unknown.
@@ -69,6 +184,10 @@ module Google
69
184
 
70
185
  # Assist operation has been skipped.
71
186
  SKIPPED = 4
187
+
188
+ # Assist operation has been cancelled (e.g. client closed the stream).
189
+ # May contain a partial response.
190
+ CANCELLED = 5
72
191
  end
73
192
 
74
193
  # Possible reasons for not answering an assist call.
@@ -197,6 +316,10 @@ module Google
197
316
  # @!attribute [rw] content
198
317
  # @return [::Google::Cloud::DiscoveryEngine::V1::AssistantContent]
199
318
  # The content.
319
+ # @!attribute [rw] citation_metadata
320
+ # @return [::Google::Cloud::DiscoveryEngine::V1::CitationMetadata]
321
+ # Source attribution of the generated content. See also
322
+ # https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
200
323
  class AssistantGroundedContent
201
324
  include ::Google::Protobuf::MessageExts
202
325
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -205,6 +328,9 @@ module Google
205
328
  # @!attribute [rw] segments
206
329
  # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Segment>]
207
330
  # Grounding information for parts of the text.
331
+ # @!attribute [rw] visual_segments
332
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::VisualSegment>]
333
+ # Grounding information for parts of the visual content.
208
334
  # @!attribute [rw] references
209
335
  # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Reference>]
210
336
  # References for the grounded text.
@@ -235,18 +361,41 @@ module Google
235
361
  extend ::Google::Protobuf::MessageExts::ClassMethods
236
362
  end
237
363
 
364
+ # Grounding information for a visual segment.
365
+ # @!attribute [rw] reference_indices
366
+ # @return [::Array<::Integer>]
367
+ # References for the visual segment.
368
+ # @!attribute [rw] content_id
369
+ # @return [::String]
370
+ # The content id of the visual segment. In order to display the citation
371
+ # of the visual element, this content_id needs to match with the
372
+ # `grounded_content.content_metadata.content_id` field.
373
+ class VisualSegment
374
+ include ::Google::Protobuf::MessageExts
375
+ extend ::Google::Protobuf::MessageExts::ClassMethods
376
+ end
377
+
238
378
  # Referenced content and related document metadata.
239
379
  # @!attribute [rw] content
240
380
  # @return [::String]
241
381
  # Referenced text content.
382
+ # @!attribute [rw] code_snippet
383
+ # @return [::String]
384
+ # Chunk of code snippet from the referenced document.
242
385
  # @!attribute [rw] document_metadata
243
386
  # @return [::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata]
244
387
  # Document metadata.
388
+ # @!attribute [r] chunk_metadata
389
+ # @return [::Google::Protobuf::Struct]
390
+ # Output only. Generic structured chunk metadata from upstream data
391
+ # source connectors.
245
392
  class Reference
246
393
  include ::Google::Protobuf::MessageExts
247
394
  extend ::Google::Protobuf::MessageExts::ClassMethods
248
395
 
249
396
  # Document metadata.
397
+ # @!attribute [rw] language
398
+ # @return [::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata::Language]
250
399
  # @!attribute [rw] document
251
400
  # @return [::String]
252
401
  # Document resource name.
@@ -265,9 +414,23 @@ module Google
265
414
  # Domain name from the document URI. Note that the `uri` field may
266
415
  # contain a URL that redirects to the actual website, in which case
267
416
  # this will contain the domain name of the target site.
417
+ # @!attribute [rw] mime_type
418
+ # @return [::String]
419
+ # The mime type of the document.
420
+ # https://www.iana.org/assignments/media-types/media-types.xhtml.
268
421
  class DocumentMetadata
269
422
  include ::Google::Protobuf::MessageExts
270
423
  extend ::Google::Protobuf::MessageExts::ClassMethods
424
+
425
+ # Language of the referenced content. For now, it is only used for
426
+ # code.
427
+ module Language
428
+ LANGUAGE_UNSPECIFIED = 0
429
+
430
+ PYTHON = 1
431
+
432
+ SQL = 2
433
+ end
271
434
  end
272
435
  end
273
436
  end
@@ -29,9 +29,226 @@ module Google
29
29
  # `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
30
30
  #
31
31
  # It must be a UTF-8 encoded string with a length limit of 1024 characters.
32
+ # @!attribute [rw] display_name
33
+ # @return [::String]
34
+ # Required. The assistant display name.
35
+ #
36
+ # It must be a UTF-8 encoded string with a length limit of 128 characters.
37
+ # @!attribute [rw] description
38
+ # @return [::String]
39
+ # Optional. Description for additional information. Expected to be shown on
40
+ # the configuration UI, not to the users of the assistant.
41
+ # @!attribute [rw] generation_config
42
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::GenerationConfig]
43
+ # Optional. Configuration for the generation of the assistant response.
44
+ # @!attribute [rw] web_grounding_type
45
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::WebGroundingType]
46
+ # Optional. The type of web grounding to use.
47
+ # @!attribute [rw] default_web_grounding_toggle_off
48
+ # @return [::Boolean]
49
+ # Optional. This field controls the default web grounding toggle for end
50
+ # users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
51
+ # or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
52
+ # set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
53
+ # or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
54
+ # grounding enabled by default on UI. If true, grounding toggle will be
55
+ # disabled by default on UI. End users can still enable web grounding in
56
+ # the UI if web grounding is enabled.
57
+ # @!attribute [rw] enabled_tools
58
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::DiscoveryEngine::V1::Assistant::ToolList}]
59
+ # Optional. Note: not implemented yet. Use
60
+ # [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
61
+ # instead. The enabled tools on this assistant. The keys are connector name,
62
+ # for example
63
+ # "projects/\\{projectId}/locations/\\{locationId}/collections/\\{collectionId}/dataconnector
64
+ # The values consist of admin enabled tools towards the connector
65
+ # instance. Admin can selectively enable multiple tools on any of the
66
+ # connector instances that they created in the project. For example
67
+ # \\{"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
68
+ # "transferTicket")],
69
+ # "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
70
+ # @!attribute [rw] customer_policy
71
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy]
72
+ # Optional. Customer policy for the assistant.
73
+ # @!attribute [r] create_time
74
+ # @return [::Google::Protobuf::Timestamp]
75
+ # Output only. Represents the time when this Assistant was created.
76
+ # @!attribute [r] update_time
77
+ # @return [::Google::Protobuf::Timestamp]
78
+ # Output only. Represents the time when this Assistant was most recently
79
+ # updated.
32
80
  class Assistant
33
81
  include ::Google::Protobuf::MessageExts
34
82
  extend ::Google::Protobuf::MessageExts::ClassMethods
83
+
84
+ # Configuration for the generation of the assistant response.
85
+ # @!attribute [rw] default_model_id
86
+ # @return [::String]
87
+ # Optional. The default model to use for assistant.
88
+ # @!attribute [rw] allowed_model_ids
89
+ # @return [::Array<::String>]
90
+ # Optional. The list of models that are allowed to be used for assistant.
91
+ # @!attribute [rw] system_instruction
92
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::GenerationConfig::SystemInstruction]
93
+ # System instruction, also known as the prompt preamble for LLM calls.
94
+ # See also
95
+ # https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
96
+ # @!attribute [rw] default_language
97
+ # @return [::String]
98
+ # The default language to use for the generation of the assistant
99
+ # response.
100
+ # Use an ISO 639-1 language code such as `en`.
101
+ # If not specified, the language will be automatically detected.
102
+ class GenerationConfig
103
+ include ::Google::Protobuf::MessageExts
104
+ extend ::Google::Protobuf::MessageExts::ClassMethods
105
+
106
+ # System instruction, also known as the prompt preamble for LLM calls.
107
+ # @!attribute [rw] additional_system_instruction
108
+ # @return [::String]
109
+ # Optional. Additional system instruction that will be added to the
110
+ # default system instruction.
111
+ class SystemInstruction
112
+ include ::Google::Protobuf::MessageExts
113
+ extend ::Google::Protobuf::MessageExts::ClassMethods
114
+ end
115
+ end
116
+
117
+ # Information to identify a tool.
118
+ # @!attribute [rw] tool_name
119
+ # @return [::String]
120
+ # The name of the tool as defined by
121
+ # DataConnectorService.QueryAvailableActions.
122
+ # Note: it's using `action` in the DataConnectorService apis, but they are
123
+ # the same as the `tool` here.
124
+ # @!attribute [rw] tool_display_name
125
+ # @return [::String]
126
+ # The display name of the tool.
127
+ class ToolInfo
128
+ include ::Google::Protobuf::MessageExts
129
+ extend ::Google::Protobuf::MessageExts::ClassMethods
130
+ end
131
+
132
+ # The enabled tools on a connector
133
+ # @!attribute [rw] tool_info
134
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Assistant::ToolInfo>]
135
+ # The list of tools with corresponding tool information.
136
+ class ToolList
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+ end
140
+
141
+ # Customer-defined policy for the assistant.
142
+ # @!attribute [rw] banned_phrases
143
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::BannedPhrase>]
144
+ # Optional. List of banned phrases.
145
+ # @!attribute [rw] model_armor_config
146
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::ModelArmorConfig]
147
+ # Optional. Model Armor configuration to be used for sanitizing user
148
+ # prompts and assistant responses.
149
+ # @!attribute [rw] data_protection_policy
150
+ # @return [::Google::Cloud::DiscoveryEngine::V1::DataProtectionPolicy]
151
+ # Optional. Data protection policy to be used for sanitizing file uploads.
152
+ class CustomerPolicy
153
+ include ::Google::Protobuf::MessageExts
154
+ extend ::Google::Protobuf::MessageExts::ClassMethods
155
+
156
+ # Definition of a customer-defined banned phrase. A banned phrase is not
157
+ # allowed to appear in the user query or the LLM response, or else the
158
+ # answer will be refused.
159
+ # @!attribute [rw] phrase
160
+ # @return [::String]
161
+ # Required. The raw string content to be banned.
162
+ # @!attribute [rw] match_type
163
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::BannedPhrase::BannedPhraseMatchType]
164
+ # Optional. Match type for the banned phrase.
165
+ # @!attribute [rw] ignore_diacritics
166
+ # @return [::Boolean]
167
+ # Optional. If true, diacritical marks (e.g., accents, umlauts) are
168
+ # ignored when matching banned phrases. For example, "cafe" would match
169
+ # "café".
170
+ class BannedPhrase
171
+ include ::Google::Protobuf::MessageExts
172
+ extend ::Google::Protobuf::MessageExts::ClassMethods
173
+
174
+ # The matching method for the banned phrase.
175
+ module BannedPhraseMatchType
176
+ # Defaults to SIMPLE_STRING_MATCH.
177
+ BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0
178
+
179
+ # The banned phrase matches if it is found anywhere in the text as an
180
+ # exact substring.
181
+ SIMPLE_STRING_MATCH = 1
182
+
183
+ # Banned phrase only matches if the pattern found in the text is
184
+ # surrounded by word delimiters. The phrase itself may still contain
185
+ # word delimiters.
186
+ WORD_BOUNDARY_STRING_MATCH = 2
187
+ end
188
+ end
189
+
190
+ # Configuration for customer defined Model Armor templates to be used for
191
+ # sanitizing user prompts and assistant responses.
192
+ # @!attribute [rw] user_prompt_template
193
+ # @return [::String]
194
+ # Optional. The resource name of the Model Armor template for sanitizing
195
+ # user prompts. Format:
196
+ # `projects/{project}/locations/{location}/templates/{template_id}`
197
+ #
198
+ # If not specified, no sanitization will be applied to the user prompt.
199
+ # @!attribute [rw] response_template
200
+ # @return [::String]
201
+ # Optional. The resource name of the Model Armor template for sanitizing
202
+ # assistant responses. Format:
203
+ # `projects/{project}/locations/{location}/templates/{template_id}`
204
+ #
205
+ # If not specified, no sanitization will be applied to the assistant
206
+ # response.
207
+ # @!attribute [rw] failure_mode
208
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::ModelArmorConfig::FailureMode]
209
+ # Optional. Defines the failure mode for Model Armor sanitization.
210
+ class ModelArmorConfig
211
+ include ::Google::Protobuf::MessageExts
212
+ extend ::Google::Protobuf::MessageExts::ClassMethods
213
+
214
+ # Determines the behavior when Model Armor fails to process a request.
215
+ module FailureMode
216
+ # Unspecified failure mode, default behavior is `FAIL_CLOSED`.
217
+ FAILURE_MODE_UNSPECIFIED = 0
218
+
219
+ # In case of a Model Armor processing failure, the request is allowed
220
+ # to proceed without any changes.
221
+ FAIL_OPEN = 1
222
+
223
+ # In case of a Model Armor processing failure, the request is rejected.
224
+ FAIL_CLOSED = 2
225
+ end
226
+ end
227
+ end
228
+
229
+ # @!attribute [rw] key
230
+ # @return [::String]
231
+ # @!attribute [rw] value
232
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::ToolList]
233
+ class EnabledToolsEntry
234
+ include ::Google::Protobuf::MessageExts
235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
236
+ end
237
+
238
+ # The type of web grounding to use.
239
+ module WebGroundingType
240
+ # Default, unspecified setting. This is the same as disabled.
241
+ WEB_GROUNDING_TYPE_UNSPECIFIED = 0
242
+
243
+ # Web grounding is disabled.
244
+ WEB_GROUNDING_TYPE_DISABLED = 1
245
+
246
+ # Grounding with Google Search is enabled.
247
+ WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2
248
+
249
+ # Grounding with Enterprise Web Search is enabled.
250
+ WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3
251
+ end
35
252
  end
36
253
  end
37
254
  end