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,1044 @@
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/license_config_service_pb"
21
+ require "google/cloud/location"
22
+
23
+ module Google
24
+ module Cloud
25
+ module DiscoveryEngine
26
+ module V1
27
+ module LicenseConfigService
28
+ ##
29
+ # Client for the LicenseConfigService service.
30
+ #
31
+ # Service for managing license config related resources.
32
+ #
33
+ class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
37
+ # @private
38
+ DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
39
+
40
+ include Paths
41
+
42
+ # @private
43
+ attr_reader :license_config_service_stub
44
+
45
+ ##
46
+ # Configure the LicenseConfigService Client class.
47
+ #
48
+ # See {::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all LicenseConfigService clients
54
+ # ::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
57
+ #
58
+ # @yield [config] Configure the Client client.
59
+ # @yieldparam config [Client::Configuration]
60
+ #
61
+ # @return [Client::Configuration]
62
+ #
63
+ def self.configure
64
+ @configure ||= begin
65
+ namespace = ["Google", "Cloud", "DiscoveryEngine", "V1"]
66
+ parent_config = while namespace.any?
67
+ parent_name = namespace.join "::"
68
+ parent_const = const_get parent_name
69
+ break parent_const.configure if parent_const.respond_to? :configure
70
+ namespace.pop
71
+ end
72
+ default_config = Client::Configuration.new parent_config
73
+
74
+ default_config
75
+ end
76
+ yield @configure if block_given?
77
+ @configure
78
+ end
79
+
80
+ ##
81
+ # Configure the LicenseConfigService Client instance.
82
+ #
83
+ # The configuration is set to the derived mode, meaning that values can be changed,
84
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
85
+ # should be made on {Client.configure}.
86
+ #
87
+ # See {::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client::Configuration}
88
+ # for a description of the configuration fields.
89
+ #
90
+ # @yield [config] Configure the Client client.
91
+ # @yieldparam config [Client::Configuration]
92
+ #
93
+ # @return [Client::Configuration]
94
+ #
95
+ def configure
96
+ yield @config if block_given?
97
+ @config
98
+ end
99
+
100
+ ##
101
+ # The effective universe domain
102
+ #
103
+ # @return [String]
104
+ #
105
+ def universe_domain
106
+ @license_config_service_stub.universe_domain
107
+ end
108
+
109
+ ##
110
+ # Create a new LicenseConfigService client object.
111
+ #
112
+ # @example
113
+ #
114
+ # # Create a client using the default configuration
115
+ # client = ::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new
116
+ #
117
+ # # Create a client using a custom configuration
118
+ # client = ::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new do |config|
119
+ # config.timeout = 10.0
120
+ # end
121
+ #
122
+ # @yield [config] Configure the LicenseConfigService client.
123
+ # @yieldparam config [Client::Configuration]
124
+ #
125
+ def initialize
126
+ # These require statements are intentionally placed here to initialize
127
+ # the gRPC module only when it's required.
128
+ # See https://github.com/googleapis/toolkit/issues/446
129
+ require "gapic/grpc"
130
+ require "google/cloud/discoveryengine/v1/license_config_service_services_pb"
131
+
132
+ # Create the configuration object
133
+ @config = Configuration.new Client.configure
134
+
135
+ # Yield the configuration if needed
136
+ yield @config if block_given?
137
+
138
+ # Create credentials
139
+ credentials = @config.credentials
140
+ # Use self-signed JWT if the endpoint is unchanged from default,
141
+ # but only if the default endpoint does not have a region prefix.
142
+ enable_self_signed_jwt = @config.endpoint.nil? ||
143
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
144
+ !@config.endpoint.split(".").first.include?("-"))
145
+ credentials ||= Credentials.default scope: @config.scope,
146
+ enable_self_signed_jwt: enable_self_signed_jwt
147
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
148
+ credentials = Credentials.new credentials, scope: @config.scope
149
+ end
150
+ @quota_project_id = @config.quota_project
151
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
152
+
153
+ @license_config_service_stub = ::Gapic::ServiceStub.new(
154
+ ::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Stub,
155
+ credentials: credentials,
156
+ endpoint: @config.endpoint,
157
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
158
+ universe_domain: @config.universe_domain,
159
+ channel_args: @config.channel_args,
160
+ interceptors: @config.interceptors,
161
+ channel_pool_config: @config.channel_pool,
162
+ logger: @config.logger
163
+ )
164
+
165
+ @license_config_service_stub.stub_logger&.info do |entry|
166
+ entry.set_system_name
167
+ entry.set_service
168
+ entry.message = "Created client for #{entry.service}"
169
+ entry.set_credentials_fields credentials
170
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
171
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
172
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
173
+ end
174
+
175
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
176
+ config.credentials = credentials
177
+ config.quota_project = @quota_project_id
178
+ config.endpoint = @license_config_service_stub.endpoint
179
+ config.universe_domain = @license_config_service_stub.universe_domain
180
+ config.logger = @license_config_service_stub.logger if config.respond_to? :logger=
181
+ end
182
+ end
183
+
184
+ ##
185
+ # Get the associated client for mix-in of the Locations.
186
+ #
187
+ # @return [Google::Cloud::Location::Locations::Client]
188
+ #
189
+ attr_reader :location_client
190
+
191
+ ##
192
+ # The logger used for request/response debug logging.
193
+ #
194
+ # @return [Logger]
195
+ #
196
+ def logger
197
+ @license_config_service_stub.logger
198
+ end
199
+
200
+ # Service calls
201
+
202
+ ##
203
+ # Creates a {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig}
204
+ # This method should only be used for creating NotebookLm licenses or Gemini
205
+ # Enterprise free trial licenses.
206
+ #
207
+ # @overload create_license_config(request, options = nil)
208
+ # Pass arguments to `create_license_config` via a request object, either of type
209
+ # {::Google::Cloud::DiscoveryEngine::V1::CreateLicenseConfigRequest} or an equivalent Hash.
210
+ #
211
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::CreateLicenseConfigRequest, ::Hash]
212
+ # A request object representing the call parameters. Required. To specify no
213
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
214
+ # @param options [::Gapic::CallOptions, ::Hash]
215
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
216
+ #
217
+ # @overload create_license_config(parent: nil, license_config: nil, license_config_id: nil)
218
+ # Pass arguments to `create_license_config` via keyword arguments. Note that at
219
+ # least one keyword argument is required. To specify no parameters, or to keep all
220
+ # the default parameter values, pass an empty Hash as a request object (see above).
221
+ #
222
+ # @param parent [::String]
223
+ # Required. The parent resource name, such as
224
+ # `projects/{project}/locations/{location}`.
225
+ # @param license_config [::Google::Cloud::DiscoveryEngine::V1::LicenseConfig, ::Hash]
226
+ # Required. The
227
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig} to create.
228
+ # @param license_config_id [::String]
229
+ # Optional. The ID to use for the
230
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig}, which will
231
+ # become the final component of the
232
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig}'s resource
233
+ # name. We are using the tier (product edition) name as the license config id
234
+ # such as `search` or `search_and_assistant`.
235
+ #
236
+ # @yield [response, operation] Access the result along with the RPC operation
237
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::LicenseConfig]
238
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
239
+ #
240
+ # @return [::Google::Cloud::DiscoveryEngine::V1::LicenseConfig]
241
+ #
242
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
243
+ #
244
+ # @example Basic example
245
+ # require "google/cloud/discovery_engine/v1"
246
+ #
247
+ # # Create a client object. The client can be reused for multiple calls.
248
+ # client = Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new
249
+ #
250
+ # # Create a request. To set request fields, pass in keyword arguments.
251
+ # request = Google::Cloud::DiscoveryEngine::V1::CreateLicenseConfigRequest.new
252
+ #
253
+ # # Call the create_license_config method.
254
+ # result = client.create_license_config request
255
+ #
256
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::LicenseConfig.
257
+ # p result
258
+ #
259
+ def create_license_config request, options = nil
260
+ raise ::ArgumentError, "request must be provided" if request.nil?
261
+
262
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::CreateLicenseConfigRequest
263
+
264
+ # Converts hash and nil to an options object
265
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
266
+
267
+ # Customize the options with defaults
268
+ metadata = @config.rpcs.create_license_config.metadata.to_h
269
+
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
271
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
272
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
273
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
274
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
275
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
276
+
277
+ header_params = {}
278
+ if request.parent
279
+ header_params["parent"] = request.parent
280
+ end
281
+
282
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
283
+ metadata[:"x-goog-request-params"] ||= request_params_header
284
+
285
+ options.apply_defaults timeout: @config.rpcs.create_license_config.timeout,
286
+ metadata: metadata,
287
+ retry_policy: @config.rpcs.create_license_config.retry_policy
288
+
289
+ options.apply_defaults timeout: @config.timeout,
290
+ metadata: @config.metadata,
291
+ retry_policy: @config.retry_policy
292
+
293
+ @license_config_service_stub.call_rpc :create_license_config, request, options: options do |response, operation|
294
+ yield response, operation if block_given?
295
+ end
296
+ rescue ::GRPC::BadStatus => e
297
+ raise ::Google::Cloud::Error.from_error(e)
298
+ end
299
+
300
+ ##
301
+ # Updates the {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig}
302
+ #
303
+ # @overload update_license_config(request, options = nil)
304
+ # Pass arguments to `update_license_config` via a request object, either of type
305
+ # {::Google::Cloud::DiscoveryEngine::V1::UpdateLicenseConfigRequest} or an equivalent Hash.
306
+ #
307
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::UpdateLicenseConfigRequest, ::Hash]
308
+ # A request object representing the call parameters. Required. To specify no
309
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
310
+ # @param options [::Gapic::CallOptions, ::Hash]
311
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
312
+ #
313
+ # @overload update_license_config(license_config: nil, update_mask: nil)
314
+ # Pass arguments to `update_license_config` via keyword arguments. Note that at
315
+ # least one keyword argument is required. To specify no parameters, or to keep all
316
+ # the default parameter values, pass an empty Hash as a request object (see above).
317
+ #
318
+ # @param license_config [::Google::Cloud::DiscoveryEngine::V1::LicenseConfig, ::Hash]
319
+ # Required. The
320
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig} to update.
321
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
322
+ # Optional. Indicates which fields in the provided
323
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig} to update.
324
+ #
325
+ # If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
326
+ # is returned.
327
+ #
328
+ # @yield [response, operation] Access the result along with the RPC operation
329
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::LicenseConfig]
330
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
331
+ #
332
+ # @return [::Google::Cloud::DiscoveryEngine::V1::LicenseConfig]
333
+ #
334
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
335
+ #
336
+ # @example Basic example
337
+ # require "google/cloud/discovery_engine/v1"
338
+ #
339
+ # # Create a client object. The client can be reused for multiple calls.
340
+ # client = Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new
341
+ #
342
+ # # Create a request. To set request fields, pass in keyword arguments.
343
+ # request = Google::Cloud::DiscoveryEngine::V1::UpdateLicenseConfigRequest.new
344
+ #
345
+ # # Call the update_license_config method.
346
+ # result = client.update_license_config request
347
+ #
348
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::LicenseConfig.
349
+ # p result
350
+ #
351
+ def update_license_config request, options = nil
352
+ raise ::ArgumentError, "request must be provided" if request.nil?
353
+
354
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::UpdateLicenseConfigRequest
355
+
356
+ # Converts hash and nil to an options object
357
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
358
+
359
+ # Customize the options with defaults
360
+ metadata = @config.rpcs.update_license_config.metadata.to_h
361
+
362
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
363
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
364
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
365
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
366
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
367
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
368
+
369
+ header_params = {}
370
+ if request.license_config&.name
371
+ header_params["license_config.name"] = request.license_config.name
372
+ end
373
+
374
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
375
+ metadata[:"x-goog-request-params"] ||= request_params_header
376
+
377
+ options.apply_defaults timeout: @config.rpcs.update_license_config.timeout,
378
+ metadata: metadata,
379
+ retry_policy: @config.rpcs.update_license_config.retry_policy
380
+
381
+ options.apply_defaults timeout: @config.timeout,
382
+ metadata: @config.metadata,
383
+ retry_policy: @config.retry_policy
384
+
385
+ @license_config_service_stub.call_rpc :update_license_config, request, options: options do |response, operation|
386
+ yield response, operation if block_given?
387
+ end
388
+ rescue ::GRPC::BadStatus => e
389
+ raise ::Google::Cloud::Error.from_error(e)
390
+ end
391
+
392
+ ##
393
+ # Gets a {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig}.
394
+ #
395
+ # @overload get_license_config(request, options = nil)
396
+ # Pass arguments to `get_license_config` via a request object, either of type
397
+ # {::Google::Cloud::DiscoveryEngine::V1::GetLicenseConfigRequest} or an equivalent Hash.
398
+ #
399
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::GetLicenseConfigRequest, ::Hash]
400
+ # A request object representing the call parameters. Required. To specify no
401
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
402
+ # @param options [::Gapic::CallOptions, ::Hash]
403
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
404
+ #
405
+ # @overload get_license_config(name: nil)
406
+ # Pass arguments to `get_license_config` via keyword arguments. Note that at
407
+ # least one keyword argument is required. To specify no parameters, or to keep all
408
+ # the default parameter values, pass an empty Hash as a request object (see above).
409
+ #
410
+ # @param name [::String]
411
+ # Required. Full resource name of
412
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig}, such as
413
+ # `projects/{project}/locations/{location}/licenseConfigs/*`.
414
+ #
415
+ # If the caller does not have permission to access the
416
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig}, regardless
417
+ # of whether or not it exists, a PERMISSION_DENIED error is returned.
418
+ #
419
+ # If the requested
420
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig} does not
421
+ # exist, a NOT_FOUND error is returned.
422
+ #
423
+ # @yield [response, operation] Access the result along with the RPC operation
424
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::LicenseConfig]
425
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
426
+ #
427
+ # @return [::Google::Cloud::DiscoveryEngine::V1::LicenseConfig]
428
+ #
429
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
430
+ #
431
+ # @example Basic example
432
+ # require "google/cloud/discovery_engine/v1"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Cloud::DiscoveryEngine::V1::GetLicenseConfigRequest.new
439
+ #
440
+ # # Call the get_license_config method.
441
+ # result = client.get_license_config request
442
+ #
443
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::LicenseConfig.
444
+ # p result
445
+ #
446
+ def get_license_config request, options = nil
447
+ raise ::ArgumentError, "request must be provided" if request.nil?
448
+
449
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::GetLicenseConfigRequest
450
+
451
+ # Converts hash and nil to an options object
452
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
453
+
454
+ # Customize the options with defaults
455
+ metadata = @config.rpcs.get_license_config.metadata.to_h
456
+
457
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
458
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
459
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
460
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
461
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
462
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
463
+
464
+ header_params = {}
465
+ if request.name
466
+ header_params["name"] = request.name
467
+ end
468
+
469
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
470
+ metadata[:"x-goog-request-params"] ||= request_params_header
471
+
472
+ options.apply_defaults timeout: @config.rpcs.get_license_config.timeout,
473
+ metadata: metadata,
474
+ retry_policy: @config.rpcs.get_license_config.retry_policy
475
+
476
+ options.apply_defaults timeout: @config.timeout,
477
+ metadata: @config.metadata,
478
+ retry_policy: @config.retry_policy
479
+
480
+ @license_config_service_stub.call_rpc :get_license_config, request, options: options do |response, operation|
481
+ yield response, operation if block_given?
482
+ end
483
+ rescue ::GRPC::BadStatus => e
484
+ raise ::Google::Cloud::Error.from_error(e)
485
+ end
486
+
487
+ ##
488
+ # Lists all the
489
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig}s associated
490
+ # with the project.
491
+ #
492
+ # @overload list_license_configs(request, options = nil)
493
+ # Pass arguments to `list_license_configs` via a request object, either of type
494
+ # {::Google::Cloud::DiscoveryEngine::V1::ListLicenseConfigsRequest} or an equivalent Hash.
495
+ #
496
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::ListLicenseConfigsRequest, ::Hash]
497
+ # A request object representing the call parameters. Required. To specify no
498
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
499
+ # @param options [::Gapic::CallOptions, ::Hash]
500
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
501
+ #
502
+ # @overload list_license_configs(parent: nil, page_size: nil, page_token: nil, filter: nil)
503
+ # Pass arguments to `list_license_configs` via keyword arguments. Note that at
504
+ # least one keyword argument is required. To specify no parameters, or to keep all
505
+ # the default parameter values, pass an empty Hash as a request object (see above).
506
+ #
507
+ # @param parent [::String]
508
+ # Required. The parent branch resource name, such as
509
+ # `projects/{project}/locations/{location}`.
510
+ # @param page_size [::Integer]
511
+ # Optional. Not supported.
512
+ # @param page_token [::String]
513
+ # Optional. Not supported.
514
+ # @param filter [::String]
515
+ # Optional. The filter to apply to the list results.
516
+ #
517
+ # The supported fields are:
518
+ #
519
+ # * `subscription_tier`
520
+ # * `state`
521
+ #
522
+ # Examples:
523
+ #
524
+ # * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
525
+ # active search license configs.
526
+ # * `state=ACTIVE` - Lists all active license configs.
527
+ #
528
+ # The filter string should be a comma-separated list of field=value pairs.
529
+ #
530
+ # @yield [response, operation] Access the result along with the RPC operation
531
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::LicenseConfig>]
532
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
533
+ #
534
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::LicenseConfig>]
535
+ #
536
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
537
+ #
538
+ # @example Basic example
539
+ # require "google/cloud/discovery_engine/v1"
540
+ #
541
+ # # Create a client object. The client can be reused for multiple calls.
542
+ # client = Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new
543
+ #
544
+ # # Create a request. To set request fields, pass in keyword arguments.
545
+ # request = Google::Cloud::DiscoveryEngine::V1::ListLicenseConfigsRequest.new
546
+ #
547
+ # # Call the list_license_configs method.
548
+ # result = client.list_license_configs request
549
+ #
550
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
551
+ # # over elements, and API calls will be issued to fetch pages as needed.
552
+ # result.each do |item|
553
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1::LicenseConfig.
554
+ # p item
555
+ # end
556
+ #
557
+ def list_license_configs request, options = nil
558
+ raise ::ArgumentError, "request must be provided" if request.nil?
559
+
560
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::ListLicenseConfigsRequest
561
+
562
+ # Converts hash and nil to an options object
563
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
564
+
565
+ # Customize the options with defaults
566
+ metadata = @config.rpcs.list_license_configs.metadata.to_h
567
+
568
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
569
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
570
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
571
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
572
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
573
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
574
+
575
+ header_params = {}
576
+ if request.parent
577
+ header_params["parent"] = request.parent
578
+ end
579
+
580
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
581
+ metadata[:"x-goog-request-params"] ||= request_params_header
582
+
583
+ options.apply_defaults timeout: @config.rpcs.list_license_configs.timeout,
584
+ metadata: metadata,
585
+ retry_policy: @config.rpcs.list_license_configs.retry_policy
586
+
587
+ options.apply_defaults timeout: @config.timeout,
588
+ metadata: @config.metadata,
589
+ retry_policy: @config.retry_policy
590
+
591
+ @license_config_service_stub.call_rpc :list_license_configs, request, options: options do |response, operation|
592
+ response = ::Gapic::PagedEnumerable.new @license_config_service_stub, :list_license_configs, request, response, operation, options
593
+ yield response, operation if block_given?
594
+ throw :response, response
595
+ end
596
+ rescue ::GRPC::BadStatus => e
597
+ raise ::Google::Cloud::Error.from_error(e)
598
+ end
599
+
600
+ ##
601
+ # Distributes a
602
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig} from billing
603
+ # account level to project level.
604
+ #
605
+ # @overload distribute_license_config(request, options = nil)
606
+ # Pass arguments to `distribute_license_config` via a request object, either of type
607
+ # {::Google::Cloud::DiscoveryEngine::V1::DistributeLicenseConfigRequest} or an equivalent Hash.
608
+ #
609
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::DistributeLicenseConfigRequest, ::Hash]
610
+ # A request object representing the call parameters. Required. To specify no
611
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
612
+ # @param options [::Gapic::CallOptions, ::Hash]
613
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
614
+ #
615
+ # @overload distribute_license_config(billing_account_license_config: nil, project_number: nil, location: nil, license_count: nil, license_config_id: nil)
616
+ # Pass arguments to `distribute_license_config` via keyword arguments. Note that at
617
+ # least one keyword argument is required. To specify no parameters, or to keep all
618
+ # the default parameter values, pass an empty Hash as a request object (see above).
619
+ #
620
+ # @param billing_account_license_config [::String]
621
+ # Required. Full resource name of [BillingAccountLicenseConfig][].
622
+ #
623
+ # Format:
624
+ # `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
625
+ # @param project_number [::Integer]
626
+ # Required. The target GCP project number to distribute the license config
627
+ # to.
628
+ # @param location [::String]
629
+ # Required. The target GCP project region to distribute the license config
630
+ # to.
631
+ # @param license_count [::Integer]
632
+ # Required. The number of licenses to distribute.
633
+ # @param license_config_id [::String]
634
+ # Optional. Distribute seats to this license config instead of creating a new
635
+ # one. If not specified, a new license config will be created from the
636
+ # billing account license config.
637
+ #
638
+ # @yield [response, operation] Access the result along with the RPC operation
639
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::DistributeLicenseConfigResponse]
640
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
641
+ #
642
+ # @return [::Google::Cloud::DiscoveryEngine::V1::DistributeLicenseConfigResponse]
643
+ #
644
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
645
+ #
646
+ # @example Basic example
647
+ # require "google/cloud/discovery_engine/v1"
648
+ #
649
+ # # Create a client object. The client can be reused for multiple calls.
650
+ # client = Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new
651
+ #
652
+ # # Create a request. To set request fields, pass in keyword arguments.
653
+ # request = Google::Cloud::DiscoveryEngine::V1::DistributeLicenseConfigRequest.new
654
+ #
655
+ # # Call the distribute_license_config method.
656
+ # result = client.distribute_license_config request
657
+ #
658
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::DistributeLicenseConfigResponse.
659
+ # p result
660
+ #
661
+ def distribute_license_config request, options = nil
662
+ raise ::ArgumentError, "request must be provided" if request.nil?
663
+
664
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::DistributeLicenseConfigRequest
665
+
666
+ # Converts hash and nil to an options object
667
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
668
+
669
+ # Customize the options with defaults
670
+ metadata = @config.rpcs.distribute_license_config.metadata.to_h
671
+
672
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
673
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
674
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
675
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
676
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
677
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
678
+
679
+ header_params = {}
680
+ if request.billing_account_license_config
681
+ header_params["billing_account_license_config"] = request.billing_account_license_config
682
+ end
683
+
684
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
685
+ metadata[:"x-goog-request-params"] ||= request_params_header
686
+
687
+ options.apply_defaults timeout: @config.rpcs.distribute_license_config.timeout,
688
+ metadata: metadata,
689
+ retry_policy: @config.rpcs.distribute_license_config.retry_policy
690
+
691
+ options.apply_defaults timeout: @config.timeout,
692
+ metadata: @config.metadata,
693
+ retry_policy: @config.retry_policy
694
+
695
+ @license_config_service_stub.call_rpc :distribute_license_config, request, options: options do |response, operation|
696
+ yield response, operation if block_given?
697
+ end
698
+ rescue ::GRPC::BadStatus => e
699
+ raise ::Google::Cloud::Error.from_error(e)
700
+ end
701
+
702
+ ##
703
+ # This method is called from the billing account side to retract the
704
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig} from the
705
+ # given project back to the billing account.
706
+ #
707
+ # @overload retract_license_config(request, options = nil)
708
+ # Pass arguments to `retract_license_config` via a request object, either of type
709
+ # {::Google::Cloud::DiscoveryEngine::V1::RetractLicenseConfigRequest} or an equivalent Hash.
710
+ #
711
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::RetractLicenseConfigRequest, ::Hash]
712
+ # A request object representing the call parameters. Required. To specify no
713
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
714
+ # @param options [::Gapic::CallOptions, ::Hash]
715
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
716
+ #
717
+ # @overload retract_license_config(billing_account_license_config: nil, license_config: nil, full_retract: nil, license_count: nil)
718
+ # Pass arguments to `retract_license_config` via keyword arguments. Note that at
719
+ # least one keyword argument is required. To specify no parameters, or to keep all
720
+ # the default parameter values, pass an empty Hash as a request object (see above).
721
+ #
722
+ # @param billing_account_license_config [::String]
723
+ # Required. Full resource name of [BillingAccountLicenseConfig][].
724
+ #
725
+ # Format:
726
+ # `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
727
+ # @param license_config [::String]
728
+ # Required. Full resource name of
729
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfig LicenseConfig}.
730
+ #
731
+ # Format:
732
+ # `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
733
+ # @param full_retract [::Boolean]
734
+ # Optional. If set to true, retract the entire license config. Otherwise,
735
+ # retract the specified license count.
736
+ # @param license_count [::Integer]
737
+ # Optional. The number of licenses to retract. Only used when full_retract is
738
+ # false.
739
+ #
740
+ # @yield [response, operation] Access the result along with the RPC operation
741
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::RetractLicenseConfigResponse]
742
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
743
+ #
744
+ # @return [::Google::Cloud::DiscoveryEngine::V1::RetractLicenseConfigResponse]
745
+ #
746
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
747
+ #
748
+ # @example Basic example
749
+ # require "google/cloud/discovery_engine/v1"
750
+ #
751
+ # # Create a client object. The client can be reused for multiple calls.
752
+ # client = Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new
753
+ #
754
+ # # Create a request. To set request fields, pass in keyword arguments.
755
+ # request = Google::Cloud::DiscoveryEngine::V1::RetractLicenseConfigRequest.new
756
+ #
757
+ # # Call the retract_license_config method.
758
+ # result = client.retract_license_config request
759
+ #
760
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::RetractLicenseConfigResponse.
761
+ # p result
762
+ #
763
+ def retract_license_config request, options = nil
764
+ raise ::ArgumentError, "request must be provided" if request.nil?
765
+
766
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::RetractLicenseConfigRequest
767
+
768
+ # Converts hash and nil to an options object
769
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
770
+
771
+ # Customize the options with defaults
772
+ metadata = @config.rpcs.retract_license_config.metadata.to_h
773
+
774
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
775
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
776
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
777
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
778
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
779
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
780
+
781
+ header_params = {}
782
+ if request.billing_account_license_config
783
+ header_params["billing_account_license_config"] = request.billing_account_license_config
784
+ end
785
+
786
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
787
+ metadata[:"x-goog-request-params"] ||= request_params_header
788
+
789
+ options.apply_defaults timeout: @config.rpcs.retract_license_config.timeout,
790
+ metadata: metadata,
791
+ retry_policy: @config.rpcs.retract_license_config.retry_policy
792
+
793
+ options.apply_defaults timeout: @config.timeout,
794
+ metadata: @config.metadata,
795
+ retry_policy: @config.retry_policy
796
+
797
+ @license_config_service_stub.call_rpc :retract_license_config, request, options: options do |response, operation|
798
+ yield response, operation if block_given?
799
+ end
800
+ rescue ::GRPC::BadStatus => e
801
+ raise ::Google::Cloud::Error.from_error(e)
802
+ end
803
+
804
+ ##
805
+ # Configuration class for the LicenseConfigService API.
806
+ #
807
+ # This class represents the configuration for LicenseConfigService,
808
+ # providing control over timeouts, retry behavior, logging, transport
809
+ # parameters, and other low-level controls. Certain parameters can also be
810
+ # applied individually to specific RPCs. See
811
+ # {::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client::Configuration::Rpcs}
812
+ # for a list of RPCs that can be configured independently.
813
+ #
814
+ # Configuration can be applied globally to all clients, or to a single client
815
+ # on construction.
816
+ #
817
+ # @example
818
+ #
819
+ # # Modify the global config, setting the timeout for
820
+ # # create_license_config to 20 seconds,
821
+ # # and all remaining timeouts to 10 seconds.
822
+ # ::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.configure do |config|
823
+ # config.timeout = 10.0
824
+ # config.rpcs.create_license_config.timeout = 20.0
825
+ # end
826
+ #
827
+ # # Apply the above configuration only to a new client.
828
+ # client = ::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new do |config|
829
+ # config.timeout = 10.0
830
+ # config.rpcs.create_license_config.timeout = 20.0
831
+ # end
832
+ #
833
+ # @!attribute [rw] endpoint
834
+ # A custom service endpoint, as a hostname or hostname:port. The default is
835
+ # nil, indicating to use the default endpoint in the current universe domain.
836
+ # @return [::String,nil]
837
+ # @!attribute [rw] credentials
838
+ # Credentials to send with calls. You may provide any of the following types:
839
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
840
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
841
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
842
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
843
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
844
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
845
+ # * (`nil`) indicating no credentials
846
+ #
847
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
848
+ # is deprecated. Providing an unvalidated credential configuration to
849
+ # Google APIs can compromise the security of your systems and data.
850
+ #
851
+ # @example
852
+ #
853
+ # # The recommended way to provide credentials is to use the `make_creds` method
854
+ # # on the appropriate credentials class for your environment.
855
+ #
856
+ # require "googleauth"
857
+ #
858
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
859
+ # json_key_io: ::File.open("/path/to/keyfile.json")
860
+ # )
861
+ #
862
+ # client = ::Google::Cloud::DiscoveryEngine::V1::LicenseConfigService::Client.new do |config|
863
+ # config.credentials = credentials
864
+ # end
865
+ #
866
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
867
+ # external source for authentication to Google Cloud, you must validate it before
868
+ # providing it to a Google API client library. Providing an unvalidated credential
869
+ # configuration to Google APIs can compromise the security of your systems and data.
870
+ # For more information, refer to [Validate credential configurations from external
871
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
872
+ # @return [::Object]
873
+ # @!attribute [rw] scope
874
+ # The OAuth scopes
875
+ # @return [::Array<::String>]
876
+ # @!attribute [rw] lib_name
877
+ # The library name as recorded in instrumentation and logging
878
+ # @return [::String]
879
+ # @!attribute [rw] lib_version
880
+ # The library version as recorded in instrumentation and logging
881
+ # @return [::String]
882
+ # @!attribute [rw] channel_args
883
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
884
+ # `GRPC::Core::Channel` object is provided as the credential.
885
+ # @return [::Hash]
886
+ # @!attribute [rw] interceptors
887
+ # An array of interceptors that are run before calls are executed.
888
+ # @return [::Array<::GRPC::ClientInterceptor>]
889
+ # @!attribute [rw] timeout
890
+ # The call timeout in seconds.
891
+ # @return [::Numeric]
892
+ # @!attribute [rw] metadata
893
+ # Additional gRPC headers to be sent with the call.
894
+ # @return [::Hash{::Symbol=>::String}]
895
+ # @!attribute [rw] retry_policy
896
+ # The retry policy. The value is a hash with the following keys:
897
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
898
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
899
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
900
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
901
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
902
+ # trigger a retry.
903
+ # @return [::Hash]
904
+ # @!attribute [rw] quota_project
905
+ # A separate project against which to charge quota.
906
+ # @return [::String]
907
+ # @!attribute [rw] universe_domain
908
+ # The universe domain within which to make requests. This determines the
909
+ # default endpoint URL. The default value of nil uses the environment
910
+ # universe (usually the default "googleapis.com" universe).
911
+ # @return [::String,nil]
912
+ # @!attribute [rw] logger
913
+ # A custom logger to use for request/response debug logging, or the value
914
+ # `:default` (the default) to construct a default logger, or `nil` to
915
+ # explicitly disable logging.
916
+ # @return [::Logger,:default,nil]
917
+ #
918
+ class Configuration
919
+ extend ::Gapic::Config
920
+
921
+ # @private
922
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
923
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
924
+
925
+ config_attr :endpoint, nil, ::String, nil
926
+ config_attr :credentials, nil do |value|
927
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
928
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
929
+ allowed.any? { |klass| klass === value }
930
+ end
931
+ config_attr :scope, nil, ::String, ::Array, nil
932
+ config_attr :lib_name, nil, ::String, nil
933
+ config_attr :lib_version, nil, ::String, nil
934
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
935
+ config_attr :interceptors, nil, ::Array, nil
936
+ config_attr :timeout, nil, ::Numeric, nil
937
+ config_attr :metadata, nil, ::Hash, nil
938
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
939
+ config_attr :quota_project, nil, ::String, nil
940
+ config_attr :universe_domain, nil, ::String, nil
941
+ config_attr :logger, :default, ::Logger, nil, :default
942
+
943
+ # @private
944
+ def initialize parent_config = nil
945
+ @parent_config = parent_config unless parent_config.nil?
946
+
947
+ yield self if block_given?
948
+ end
949
+
950
+ ##
951
+ # Configurations for individual RPCs
952
+ # @return [Rpcs]
953
+ #
954
+ def rpcs
955
+ @rpcs ||= begin
956
+ parent_rpcs = nil
957
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
958
+ Rpcs.new parent_rpcs
959
+ end
960
+ end
961
+
962
+ ##
963
+ # Configuration for the channel pool
964
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
965
+ #
966
+ def channel_pool
967
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
968
+ end
969
+
970
+ ##
971
+ # Configuration RPC class for the LicenseConfigService API.
972
+ #
973
+ # Includes fields providing the configuration for each RPC in this service.
974
+ # Each configuration object is of type `Gapic::Config::Method` and includes
975
+ # the following configuration fields:
976
+ #
977
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
978
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
979
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
980
+ # include the following keys:
981
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
982
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
983
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
984
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
985
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
986
+ # trigger a retry.
987
+ #
988
+ class Rpcs
989
+ ##
990
+ # RPC-specific configuration for `create_license_config`
991
+ # @return [::Gapic::Config::Method]
992
+ #
993
+ attr_reader :create_license_config
994
+ ##
995
+ # RPC-specific configuration for `update_license_config`
996
+ # @return [::Gapic::Config::Method]
997
+ #
998
+ attr_reader :update_license_config
999
+ ##
1000
+ # RPC-specific configuration for `get_license_config`
1001
+ # @return [::Gapic::Config::Method]
1002
+ #
1003
+ attr_reader :get_license_config
1004
+ ##
1005
+ # RPC-specific configuration for `list_license_configs`
1006
+ # @return [::Gapic::Config::Method]
1007
+ #
1008
+ attr_reader :list_license_configs
1009
+ ##
1010
+ # RPC-specific configuration for `distribute_license_config`
1011
+ # @return [::Gapic::Config::Method]
1012
+ #
1013
+ attr_reader :distribute_license_config
1014
+ ##
1015
+ # RPC-specific configuration for `retract_license_config`
1016
+ # @return [::Gapic::Config::Method]
1017
+ #
1018
+ attr_reader :retract_license_config
1019
+
1020
+ # @private
1021
+ def initialize parent_rpcs = nil
1022
+ create_license_config_config = parent_rpcs.create_license_config if parent_rpcs.respond_to? :create_license_config
1023
+ @create_license_config = ::Gapic::Config::Method.new create_license_config_config
1024
+ update_license_config_config = parent_rpcs.update_license_config if parent_rpcs.respond_to? :update_license_config
1025
+ @update_license_config = ::Gapic::Config::Method.new update_license_config_config
1026
+ get_license_config_config = parent_rpcs.get_license_config if parent_rpcs.respond_to? :get_license_config
1027
+ @get_license_config = ::Gapic::Config::Method.new get_license_config_config
1028
+ list_license_configs_config = parent_rpcs.list_license_configs if parent_rpcs.respond_to? :list_license_configs
1029
+ @list_license_configs = ::Gapic::Config::Method.new list_license_configs_config
1030
+ distribute_license_config_config = parent_rpcs.distribute_license_config if parent_rpcs.respond_to? :distribute_license_config
1031
+ @distribute_license_config = ::Gapic::Config::Method.new distribute_license_config_config
1032
+ retract_license_config_config = parent_rpcs.retract_license_config if parent_rpcs.respond_to? :retract_license_config
1033
+ @retract_license_config = ::Gapic::Config::Method.new retract_license_config_config
1034
+
1035
+ yield self if block_given?
1036
+ end
1037
+ end
1038
+ end
1039
+ end
1040
+ end
1041
+ end
1042
+ end
1043
+ end
1044
+ end