@google-ads/admanager 0.4.1 → 0.5.1

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 (291) hide show
  1. package/README.md +83 -0
  2. package/build/protos/google/ads/admanager/v1/ad_break_service.proto +1 -1
  3. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +44 -0
  4. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +62 -0
  5. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +238 -0
  6. package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +7 -7
  7. package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +222 -6
  8. package/build/protos/google/ads/admanager/v1/application_messages.proto +47 -0
  9. package/build/protos/google/ads/admanager/v1/application_service.proto +129 -0
  10. package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +49 -0
  11. package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +129 -0
  12. package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +3 -3
  13. package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +45 -0
  14. package/build/protos/google/ads/admanager/v1/browser_language_service.proto +129 -0
  15. package/build/protos/google/ads/admanager/v1/browser_messages.proto +51 -0
  16. package/build/protos/google/ads/admanager/v1/browser_service.proto +128 -0
  17. package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +41 -0
  18. package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +50 -0
  19. package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +129 -0
  20. package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +44 -0
  21. package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +61 -0
  22. package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +130 -0
  23. package/build/protos/google/ads/admanager/v1/company_messages.proto +14 -12
  24. package/build/protos/google/ads/admanager/v1/company_service.proto +3 -3
  25. package/build/protos/google/ads/admanager/v1/contact_enums.proto +57 -0
  26. package/build/protos/google/ads/admanager/v1/contact_messages.proto +45 -2
  27. package/build/protos/google/ads/admanager/v1/contact_service.proto +244 -0
  28. package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +53 -0
  29. package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +129 -0
  30. package/build/protos/google/ads/admanager/v1/content_label_messages.proto +45 -0
  31. package/build/protos/google/ads/admanager/v1/content_label_service.proto +129 -0
  32. package/build/protos/google/ads/admanager/v1/content_messages.proto +45 -0
  33. package/build/protos/google/ads/admanager/v1/content_service.proto +128 -0
  34. package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +63 -0
  35. package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +253 -0
  36. package/build/protos/google/ads/admanager/v1/creative_template_service.proto +130 -0
  37. package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +47 -0
  38. package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +5 -2
  39. package/build/protos/google/ads/admanager/v1/custom_field_service.proto +185 -3
  40. package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +7 -6
  41. package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +191 -1
  42. package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +9 -9
  43. package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +1 -1
  44. package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +45 -0
  45. package/build/protos/google/ads/admanager/v1/device_capability_service.proto +130 -0
  46. package/build/protos/google/ads/admanager/v1/device_category_service.proto +2 -2
  47. package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +46 -0
  48. package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +131 -0
  49. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +1 -1
  50. package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +47 -0
  51. package/build/protos/google/ads/admanager/v1/geo_target_service.proto +3 -3
  52. package/build/protos/google/ads/admanager/v1/goal.proto +57 -0
  53. package/build/protos/google/ads/admanager/v1/goal_enums.proto +129 -0
  54. package/build/protos/google/ads/admanager/v1/line_item_enums.proto +86 -0
  55. package/build/protos/google/ads/admanager/v1/line_item_messages.proto +93 -0
  56. package/build/protos/google/ads/admanager/v1/line_item_service.proto +128 -0
  57. package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +48 -0
  58. package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +129 -0
  59. package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +54 -0
  60. package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +129 -0
  61. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +55 -0
  62. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +133 -0
  63. package/build/protos/google/ads/admanager/v1/network_messages.proto +8 -8
  64. package/build/protos/google/ads/admanager/v1/network_service.proto +32 -1
  65. package/build/protos/google/ads/admanager/v1/operating_system_service.proto +2 -2
  66. package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +2 -2
  67. package/build/protos/google/ads/admanager/v1/order_messages.proto +11 -10
  68. package/build/protos/google/ads/admanager/v1/order_service.proto +3 -3
  69. package/build/protos/google/ads/admanager/v1/placement_service.proto +220 -3
  70. package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +2 -2
  71. package/build/protos/google/ads/admanager/v1/private_auction_service.proto +2 -2
  72. package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +1 -1
  73. package/build/protos/google/ads/admanager/v1/report_definition.proto +13347 -0
  74. package/build/protos/google/ads/admanager/v1/report_messages.proto +124 -3411
  75. package/build/protos/google/ads/admanager/v1/report_service.proto +10 -8
  76. package/build/protos/google/ads/admanager/v1/report_value.proto +73 -0
  77. package/build/protos/google/ads/admanager/v1/role_service.proto +3 -2
  78. package/build/protos/google/ads/admanager/v1/site_enums.proto +72 -0
  79. package/build/protos/google/ads/admanager/v1/site_messages.proto +77 -0
  80. package/build/protos/google/ads/admanager/v1/site_service.proto +295 -0
  81. package/build/protos/google/ads/admanager/v1/targeting.proto +311 -0
  82. package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +1 -1
  83. package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +3 -0
  84. package/build/protos/google/ads/admanager/v1/team_enums.proto +62 -0
  85. package/build/protos/google/ads/admanager/v1/team_messages.proto +30 -0
  86. package/build/protos/google/ads/admanager/v1/team_service.proto +303 -0
  87. package/build/protos/google/ads/admanager/v1/web_property.proto +54 -0
  88. package/build/protos/protos.d.ts +34075 -11179
  89. package/build/protos/protos.js +102857 -43311
  90. package/build/protos/protos.json +11142 -3881
  91. package/build/src/index.d.ts +61 -1
  92. package/build/src/index.js +43 -3
  93. package/build/src/index.js.map +1 -1
  94. package/build/src/v1/ad_break_service_client.d.ts +465 -0
  95. package/build/src/v1/ad_break_service_client.js +659 -1
  96. package/build/src/v1/ad_break_service_client.js.map +1 -1
  97. package/build/src/v1/ad_break_service_proto_list.json +54 -1
  98. package/build/src/v1/ad_review_center_ad_service_client.d.ts +1634 -0
  99. package/build/src/v1/ad_review_center_ad_service_client.js +2327 -0
  100. package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -0
  101. package/build/src/v1/ad_review_center_ad_service_client_config.json +38 -0
  102. package/build/src/v1/ad_review_center_ad_service_proto_list.json +127 -0
  103. package/build/src/v1/ad_unit_service_client.d.ts +667 -12
  104. package/build/src/v1/ad_unit_service_client.js +966 -56
  105. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  106. package/build/src/v1/ad_unit_service_client_config.json +28 -0
  107. package/build/src/v1/ad_unit_service_proto_list.json +54 -1
  108. package/build/src/v1/application_service_client.d.ts +1369 -0
  109. package/build/src/v1/application_service_client.js +2027 -0
  110. package/build/src/v1/application_service_client.js.map +1 -0
  111. package/build/src/v1/application_service_client_config.json +34 -0
  112. package/build/src/v1/application_service_proto_list.json +127 -0
  113. package/build/src/v1/audience_segment_service_client.d.ts +1369 -0
  114. package/build/src/v1/audience_segment_service_client.js +2027 -0
  115. package/build/src/v1/audience_segment_service_client.js.map +1 -0
  116. package/build/src/v1/audience_segment_service_client_config.json +34 -0
  117. package/build/src/v1/audience_segment_service_proto_list.json +127 -0
  118. package/build/src/v1/bandwidth_group_service_client.d.ts +471 -6
  119. package/build/src/v1/bandwidth_group_service_client.js +663 -5
  120. package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
  121. package/build/src/v1/bandwidth_group_service_proto_list.json +54 -1
  122. package/build/src/v1/browser_language_service_client.d.ts +1369 -0
  123. package/build/src/v1/browser_language_service_client.js +2027 -0
  124. package/build/src/v1/browser_language_service_client.js.map +1 -0
  125. package/build/src/v1/browser_language_service_client_config.json +34 -0
  126. package/build/src/v1/browser_language_service_proto_list.json +127 -0
  127. package/build/src/v1/browser_service_client.d.ts +1369 -0
  128. package/build/src/v1/browser_service_client.js +2027 -0
  129. package/build/src/v1/browser_service_client.js.map +1 -0
  130. package/build/src/v1/browser_service_client_config.json +34 -0
  131. package/build/src/v1/browser_service_proto_list.json +127 -0
  132. package/build/src/v1/cms_metadata_key_service_client.d.ts +1369 -0
  133. package/build/src/v1/cms_metadata_key_service_client.js +2027 -0
  134. package/build/src/v1/cms_metadata_key_service_client.js.map +1 -0
  135. package/build/src/v1/cms_metadata_key_service_client_config.json +34 -0
  136. package/build/src/v1/cms_metadata_key_service_proto_list.json +127 -0
  137. package/build/src/v1/cms_metadata_value_service_client.d.ts +1369 -0
  138. package/build/src/v1/cms_metadata_value_service_client.js +2027 -0
  139. package/build/src/v1/cms_metadata_value_service_client.js.map +1 -0
  140. package/build/src/v1/cms_metadata_value_service_client_config.json +34 -0
  141. package/build/src/v1/cms_metadata_value_service_proto_list.json +127 -0
  142. package/build/src/v1/company_service_client.d.ts +471 -6
  143. package/build/src/v1/company_service_client.js +663 -5
  144. package/build/src/v1/company_service_client.js.map +1 -1
  145. package/build/src/v1/company_service_proto_list.json +54 -1
  146. package/build/src/v1/contact_service_client.d.ts +1480 -0
  147. package/build/src/v1/contact_service_client.js +2171 -0
  148. package/build/src/v1/contact_service_client.js.map +1 -0
  149. package/build/src/v1/contact_service_client_config.json +50 -0
  150. package/build/src/v1/contact_service_proto_list.json +127 -0
  151. package/build/src/v1/content_bundle_service_client.d.ts +1369 -0
  152. package/build/src/v1/content_bundle_service_client.js +2027 -0
  153. package/build/src/v1/content_bundle_service_client.js.map +1 -0
  154. package/build/src/v1/content_bundle_service_client_config.json +34 -0
  155. package/build/src/v1/content_bundle_service_proto_list.json +127 -0
  156. package/build/src/v1/content_label_service_client.d.ts +1369 -0
  157. package/build/src/v1/content_label_service_client.js +2027 -0
  158. package/build/src/v1/content_label_service_client.js.map +1 -0
  159. package/build/src/v1/content_label_service_client_config.json +34 -0
  160. package/build/src/v1/content_label_service_proto_list.json +127 -0
  161. package/build/src/v1/content_service_client.d.ts +1369 -0
  162. package/build/src/v1/content_service_client.js +2027 -0
  163. package/build/src/v1/content_service_client.js.map +1 -0
  164. package/build/src/v1/content_service_client_config.json +34 -0
  165. package/build/src/v1/content_service_proto_list.json +127 -0
  166. package/build/src/v1/creative_template_service_client.d.ts +1369 -0
  167. package/build/src/v1/creative_template_service_client.js +2027 -0
  168. package/build/src/v1/creative_template_service_client.js.map +1 -0
  169. package/build/src/v1/creative_template_service_client_config.json +34 -0
  170. package/build/src/v1/creative_template_service_proto_list.json +127 -0
  171. package/build/src/v1/custom_field_service_client.d.ts +634 -6
  172. package/build/src/v1/custom_field_service_client.js +880 -6
  173. package/build/src/v1/custom_field_service_client.js.map +1 -1
  174. package/build/src/v1/custom_field_service_client_config.json +24 -0
  175. package/build/src/v1/custom_field_service_proto_list.json +54 -1
  176. package/build/src/v1/custom_targeting_key_service_client.d.ts +631 -0
  177. package/build/src/v1/custom_targeting_key_service_client.js +876 -2
  178. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  179. package/build/src/v1/custom_targeting_key_service_client_config.json +24 -0
  180. package/build/src/v1/custom_targeting_key_service_proto_list.json +54 -1
  181. package/build/src/v1/custom_targeting_value_service_client.d.ts +465 -0
  182. package/build/src/v1/custom_targeting_value_service_client.js +659 -1
  183. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  184. package/build/src/v1/custom_targeting_value_service_proto_list.json +54 -1
  185. package/build/src/v1/device_capability_service_client.d.ts +1369 -0
  186. package/build/src/v1/device_capability_service_client.js +2027 -0
  187. package/build/src/v1/device_capability_service_client.js.map +1 -0
  188. package/build/src/v1/device_capability_service_client_config.json +34 -0
  189. package/build/src/v1/device_capability_service_proto_list.json +127 -0
  190. package/build/src/v1/device_category_service_client.d.ts +468 -3
  191. package/build/src/v1/device_category_service_client.js +661 -3
  192. package/build/src/v1/device_category_service_client.js.map +1 -1
  193. package/build/src/v1/device_category_service_proto_list.json +54 -1
  194. package/build/src/v1/device_manufacturer_service_client.d.ts +1370 -0
  195. package/build/src/v1/device_manufacturer_service_client.js +2027 -0
  196. package/build/src/v1/device_manufacturer_service_client.js.map +1 -0
  197. package/build/src/v1/device_manufacturer_service_client_config.json +34 -0
  198. package/build/src/v1/device_manufacturer_service_proto_list.json +127 -0
  199. package/build/src/v1/entity_signals_mapping_service_client.d.ts +465 -0
  200. package/build/src/v1/entity_signals_mapping_service_client.js +659 -1
  201. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  202. package/build/src/v1/entity_signals_mapping_service_proto_list.json +54 -1
  203. package/build/src/v1/gapic_metadata.json +1200 -6
  204. package/build/src/v1/geo_target_service_client.d.ts +471 -6
  205. package/build/src/v1/geo_target_service_client.js +663 -5
  206. package/build/src/v1/geo_target_service_client.js.map +1 -1
  207. package/build/src/v1/geo_target_service_proto_list.json +54 -1
  208. package/build/src/v1/index.d.ts +20 -0
  209. package/build/src/v1/index.js +42 -2
  210. package/build/src/v1/index.js.map +1 -1
  211. package/build/src/v1/line_item_service_client.d.ts +1369 -0
  212. package/build/src/v1/line_item_service_client.js +2027 -0
  213. package/build/src/v1/line_item_service_client.js.map +1 -0
  214. package/build/src/v1/line_item_service_client_config.json +34 -0
  215. package/build/src/v1/line_item_service_proto_list.json +127 -0
  216. package/build/src/v1/mobile_carrier_service_client.d.ts +1369 -0
  217. package/build/src/v1/mobile_carrier_service_client.js +2027 -0
  218. package/build/src/v1/mobile_carrier_service_client.js.map +1 -0
  219. package/build/src/v1/mobile_carrier_service_client_config.json +34 -0
  220. package/build/src/v1/mobile_carrier_service_proto_list.json +127 -0
  221. package/build/src/v1/mobile_device_service_client.d.ts +1369 -0
  222. package/build/src/v1/mobile_device_service_client.js +2027 -0
  223. package/build/src/v1/mobile_device_service_client.js.map +1 -0
  224. package/build/src/v1/mobile_device_service_client_config.json +34 -0
  225. package/build/src/v1/mobile_device_service_proto_list.json +127 -0
  226. package/build/src/v1/mobile_device_submodel_service_client.d.ts +1376 -0
  227. package/build/src/v1/mobile_device_submodel_service_client.js +2031 -0
  228. package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -0
  229. package/build/src/v1/mobile_device_submodel_service_client_config.json +34 -0
  230. package/build/src/v1/mobile_device_submodel_service_proto_list.json +127 -0
  231. package/build/src/v1/network_service_client.d.ts +555 -12
  232. package/build/src/v1/network_service_client.js +757 -16
  233. package/build/src/v1/network_service_client.js.map +1 -1
  234. package/build/src/v1/network_service_proto_list.json +54 -1
  235. package/build/src/v1/operating_system_service_client.d.ts +468 -3
  236. package/build/src/v1/operating_system_service_client.js +661 -3
  237. package/build/src/v1/operating_system_service_client.js.map +1 -1
  238. package/build/src/v1/operating_system_service_proto_list.json +54 -1
  239. package/build/src/v1/operating_system_version_service_client.d.ts +468 -3
  240. package/build/src/v1/operating_system_version_service_client.js +661 -3
  241. package/build/src/v1/operating_system_version_service_client.js.map +1 -1
  242. package/build/src/v1/operating_system_version_service_proto_list.json +54 -1
  243. package/build/src/v1/order_service_client.d.ts +471 -6
  244. package/build/src/v1/order_service_client.js +663 -5
  245. package/build/src/v1/order_service_client.js.map +1 -1
  246. package/build/src/v1/order_service_proto_list.json +54 -1
  247. package/build/src/v1/placement_service_client.d.ts +662 -6
  248. package/build/src/v1/placement_service_client.js +962 -52
  249. package/build/src/v1/placement_service_client.js.map +1 -1
  250. package/build/src/v1/placement_service_client_config.json +28 -0
  251. package/build/src/v1/placement_service_proto_list.json +54 -1
  252. package/build/src/v1/private_auction_deal_service_client.d.ts +468 -3
  253. package/build/src/v1/private_auction_deal_service_client.js +661 -3
  254. package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
  255. package/build/src/v1/private_auction_deal_service_proto_list.json +54 -1
  256. package/build/src/v1/private_auction_service_client.d.ts +468 -3
  257. package/build/src/v1/private_auction_service_client.js +661 -3
  258. package/build/src/v1/private_auction_service_client.js.map +1 -1
  259. package/build/src/v1/private_auction_service_proto_list.json +54 -1
  260. package/build/src/v1/programmatic_buyer_service_client.d.ts +465 -0
  261. package/build/src/v1/programmatic_buyer_service_client.js +659 -1
  262. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
  263. package/build/src/v1/programmatic_buyer_service_proto_list.json +54 -1
  264. package/build/src/v1/report_service_client.d.ts +485 -17
  265. package/build/src/v1/report_service_client.js +669 -9
  266. package/build/src/v1/report_service_client.js.map +1 -1
  267. package/build/src/v1/report_service_proto_list.json +54 -1
  268. package/build/src/v1/role_service_client.d.ts +471 -3
  269. package/build/src/v1/role_service_client.js +663 -3
  270. package/build/src/v1/role_service_client.js.map +1 -1
  271. package/build/src/v1/role_service_proto_list.json +54 -1
  272. package/build/src/v1/site_service_client.d.ts +1530 -0
  273. package/build/src/v1/site_service_client.js +2243 -0
  274. package/build/src/v1/site_service_client.js.map +1 -0
  275. package/build/src/v1/site_service_client_config.json +58 -0
  276. package/build/src/v1/site_service_proto_list.json +127 -0
  277. package/build/src/v1/taxonomy_category_service_client.d.ts +465 -0
  278. package/build/src/v1/taxonomy_category_service_client.js +659 -1
  279. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  280. package/build/src/v1/taxonomy_category_service_proto_list.json +54 -1
  281. package/build/src/v1/team_service_client.d.ts +1532 -0
  282. package/build/src/v1/team_service_client.js +2243 -0
  283. package/build/src/v1/team_service_client.js.map +1 -0
  284. package/build/src/v1/team_service_client_config.json +58 -0
  285. package/build/src/v1/team_service_proto_list.json +127 -0
  286. package/build/src/v1/user_service_client.d.ts +465 -0
  287. package/build/src/v1/user_service_client.js +659 -1
  288. package/build/src/v1/user_service_client.js.map +1 -1
  289. package/build/src/v1/user_service_proto_list.json +54 -1
  290. package/package.json +10 -2
  291. package/LICENSE +0 -202
@@ -0,0 +1,2171 @@
1
+ "use strict";
2
+ // Copyright 2026 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.ContactServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ const google_gax_1 = require("google-gax");
23
+ /**
24
+ * Client JSON configuration object, loaded from
25
+ * `src/v1/contact_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./contact_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Provides methods for handling `Contact` objects.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class ContactServiceClient {
36
+ _terminated = false;
37
+ _opts;
38
+ _providedCustomServicePath;
39
+ _gaxModule;
40
+ _gaxGrpc;
41
+ _protos;
42
+ _defaults;
43
+ _universeDomain;
44
+ _servicePath;
45
+ _log = google_gax_1.loggingUtils.log('admanager');
46
+ auth;
47
+ descriptors = {
48
+ page: {},
49
+ stream: {},
50
+ longrunning: {},
51
+ batching: {},
52
+ };
53
+ warn;
54
+ innerApiCalls;
55
+ pathTemplates;
56
+ contactServiceStub;
57
+ /**
58
+ * Construct an instance of ContactServiceClient.
59
+ *
60
+ * @param {object} [options] - The configuration object.
61
+ * The options accepted by the constructor are described in detail
62
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
63
+ * The common options are:
64
+ * @param {object} [options.credentials] - Credentials object.
65
+ * @param {string} [options.credentials.client_email]
66
+ * @param {string} [options.credentials.private_key]
67
+ * @param {string} [options.email] - Account email address. Required when
68
+ * using a .pem or .p12 keyFilename.
69
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
70
+ * .p12 key downloaded from the Google Developers Console. If you provide
71
+ * a path to a JSON file, the projectId option below is not necessary.
72
+ * NOTE: .pem and .p12 require you to specify options.email as well.
73
+ * @param {number} [options.port] - The port on which to connect to
74
+ * the remote host.
75
+ * @param {string} [options.projectId] - The project ID from the Google
76
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
77
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
78
+ * app is running in an environment which supports
79
+ * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
80
+ * your project ID will be detected automatically.
81
+ * @param {string} [options.apiEndpoint] - The domain name of the
82
+ * API remote host.
83
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
84
+ * Follows the structure of {@link gapicConfig}.
85
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
86
+ * For more information, please check the
87
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
88
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
89
+ * need to avoid loading the default gRPC version and want to use the fallback
90
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
91
+ * ```
92
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
93
+ * const client = new ContactServiceClient({fallback: true}, gax);
94
+ * ```
95
+ */
96
+ constructor(opts, gaxInstance) {
97
+ // Ensure that options include all the required fields.
98
+ const staticMembers = this.constructor;
99
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
100
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
101
+ }
102
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
103
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
104
+ this._servicePath = 'admanager.' + this._universeDomain;
105
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
106
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
107
+ const port = opts?.port || staticMembers.port;
108
+ const clientConfig = opts?.clientConfig ?? {};
109
+ // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute).
110
+ if (!opts) {
111
+ opts = { fallback: true };
112
+ }
113
+ else {
114
+ opts.fallback = opts.fallback ?? true;
115
+ }
116
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
117
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
118
+ // Request numeric enum values if REST transport is used.
119
+ opts.numericEnums = true;
120
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
121
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
122
+ opts['scopes'] = staticMembers.scopes;
123
+ }
124
+ // Load google-gax module synchronously if needed
125
+ if (!gaxInstance) {
126
+ gaxInstance = require('google-gax');
127
+ }
128
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
129
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
130
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
131
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
132
+ // Save options to use in initialize() method.
133
+ this._opts = opts;
134
+ // Save the auth object to the client, for use by other methods.
135
+ this.auth = this._gaxGrpc.auth;
136
+ // Set useJWTAccessWithScope on the auth object.
137
+ this.auth.useJWTAccessWithScope = true;
138
+ // Set defaultServicePath on the auth object.
139
+ this.auth.defaultServicePath = this._servicePath;
140
+ // Set the default scopes in auth client if needed.
141
+ if (servicePath === this._servicePath) {
142
+ this.auth.defaultScopes = staticMembers.scopes;
143
+ }
144
+ // Determine the client header string.
145
+ const clientHeader = [
146
+ `gax/${this._gaxModule.version}`,
147
+ `gapic/${version}`,
148
+ ];
149
+ if (typeof process === 'object' && 'versions' in process) {
150
+ clientHeader.push(`gl-node/${process.versions.node}`);
151
+ }
152
+ else {
153
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
154
+ }
155
+ if (!opts.fallback) {
156
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
157
+ }
158
+ else {
159
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
160
+ }
161
+ if (opts.libName && opts.libVersion) {
162
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
163
+ }
164
+ // Load the applicable protos.
165
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
166
+ // This API contains "path templates"; forward-slash-separated
167
+ // identifiers to uniquely identify resources within the API.
168
+ // Create useful helper objects for these.
169
+ this.pathTemplates = {
170
+ adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
171
+ adReviewCenterAdPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}'),
172
+ adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
173
+ applicationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/applications/{application}'),
174
+ audienceSegmentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/audienceSegments/{audience_segment}'),
175
+ bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
176
+ browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
177
+ browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
178
+ cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
179
+ cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
180
+ companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
181
+ contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
182
+ contentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/content/{content}'),
183
+ contentBundlePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentBundles/{content_bundle}'),
184
+ contentLabelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentLabels/{content_label}'),
185
+ creativeTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeTemplates/{creative_template}'),
186
+ customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
187
+ customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
188
+ customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
189
+ deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
190
+ deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
191
+ deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
192
+ entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
193
+ geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
194
+ labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
195
+ lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
196
+ liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
197
+ mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
198
+ mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
199
+ mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
200
+ networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
201
+ operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
202
+ operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
203
+ orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
204
+ placementPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/placements/{placement}'),
205
+ privateAuctionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctions/{private_auction}'),
206
+ privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
207
+ programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
208
+ reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
209
+ rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
210
+ sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
211
+ taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
212
+ teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
213
+ userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
214
+ webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
215
+ };
216
+ // Some of the methods on this service return "paged" results,
217
+ // (e.g. 50 results at a time, with tokens to get subsequent
218
+ // pages). Denote the keys used for pagination and results.
219
+ this.descriptors.page = {
220
+ listContacts: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'contacts')
221
+ };
222
+ // Put together the default options sent with requests.
223
+ this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.ContactService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
224
+ // Set up a dictionary of "inner API calls"; the core implementation
225
+ // of calling the API is handled in `google-gax`, with this code
226
+ // merely providing the destination and request information.
227
+ this.innerApiCalls = {};
228
+ // Add a warn function to the client constructor so it can be easily tested.
229
+ this.warn = this._gaxModule.warn;
230
+ }
231
+ /**
232
+ * Initialize the client.
233
+ * Performs asynchronous operations (such as authentication) and prepares the client.
234
+ * This function will be called automatically when any class method is called for the
235
+ * first time, but if you need to initialize it before calling an actual method,
236
+ * feel free to call initialize() directly.
237
+ *
238
+ * You can await on this method if you want to make sure the client is initialized.
239
+ *
240
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
241
+ */
242
+ initialize() {
243
+ // If the client stub promise is already initialized, return immediately.
244
+ if (this.contactServiceStub) {
245
+ return this.contactServiceStub;
246
+ }
247
+ // Put together the "service stub" for
248
+ // google.ads.admanager.v1.ContactService.
249
+ this.contactServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
250
+ this._protos.lookupService('google.ads.admanager.v1.ContactService') :
251
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
252
+ this._protos.google.ads.admanager.v1.ContactService, this._opts, this._providedCustomServicePath);
253
+ // Iterate over each of the methods that the service provides
254
+ // and create an API call method for each.
255
+ const contactServiceStubMethods = ['getContact', 'listContacts', 'createContact', 'batchCreateContacts', 'updateContact', 'batchUpdateContacts'];
256
+ for (const methodName of contactServiceStubMethods) {
257
+ const callPromise = this.contactServiceStub.then(stub => (...args) => {
258
+ if (this._terminated) {
259
+ return Promise.reject('The client has already been closed.');
260
+ }
261
+ const func = stub[methodName];
262
+ return func.apply(stub, args);
263
+ }, (err) => () => {
264
+ throw err;
265
+ });
266
+ const descriptor = this.descriptors.page[methodName] ||
267
+ undefined;
268
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
269
+ this.innerApiCalls[methodName] = apiCall;
270
+ }
271
+ return this.contactServiceStub;
272
+ }
273
+ /**
274
+ * The DNS address for this API service.
275
+ * @deprecated Use the apiEndpoint method of the client instance.
276
+ * @returns {string} The DNS address for this service.
277
+ */
278
+ static get servicePath() {
279
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
280
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
281
+ }
282
+ return 'admanager.googleapis.com';
283
+ }
284
+ /**
285
+ * The DNS address for this API service - same as servicePath.
286
+ * @deprecated Use the apiEndpoint method of the client instance.
287
+ * @returns {string} The DNS address for this service.
288
+ */
289
+ static get apiEndpoint() {
290
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
291
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
292
+ }
293
+ return 'admanager.googleapis.com';
294
+ }
295
+ /**
296
+ * The DNS address for this API service.
297
+ * @returns {string} The DNS address for this service.
298
+ */
299
+ get apiEndpoint() {
300
+ return this._servicePath;
301
+ }
302
+ get universeDomain() {
303
+ return this._universeDomain;
304
+ }
305
+ /**
306
+ * The port for this API service.
307
+ * @returns {number} The default port for this service.
308
+ */
309
+ static get port() {
310
+ return 443;
311
+ }
312
+ /**
313
+ * The scopes needed to make gRPC calls for every method defined
314
+ * in this service.
315
+ * @returns {string[]} List of default scopes.
316
+ */
317
+ static get scopes() {
318
+ return [
319
+ 'https://www.googleapis.com/auth/admanager'
320
+ ];
321
+ }
322
+ /**
323
+ * Return the project ID used by this class.
324
+ * @returns {Promise} A promise that resolves to string containing the project ID.
325
+ */
326
+ getProjectId(callback) {
327
+ if (callback) {
328
+ this.auth.getProjectId(callback);
329
+ return;
330
+ }
331
+ return this.auth.getProjectId();
332
+ }
333
+ getContact(request, optionsOrCallback, callback) {
334
+ request = request || {};
335
+ let options;
336
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
337
+ callback = optionsOrCallback;
338
+ options = {};
339
+ }
340
+ else {
341
+ options = optionsOrCallback;
342
+ }
343
+ options = options || {};
344
+ options.otherArgs = options.otherArgs || {};
345
+ options.otherArgs.headers = options.otherArgs.headers || {};
346
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
347
+ 'name': request.name ?? '',
348
+ });
349
+ this.initialize().catch(err => { throw err; });
350
+ this._log.info('getContact request %j', request);
351
+ const wrappedCallback = callback
352
+ ? (error, response, options, rawResponse) => {
353
+ this._log.info('getContact response %j', response);
354
+ callback(error, response, options, rawResponse); // We verified callback above.
355
+ }
356
+ : undefined;
357
+ return this.innerApiCalls.getContact(request, options, wrappedCallback)
358
+ ?.then(([response, options, rawResponse]) => {
359
+ this._log.info('getContact response %j', response);
360
+ return [response, options, rawResponse];
361
+ }).catch((error) => {
362
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
363
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
364
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
365
+ }
366
+ throw error;
367
+ });
368
+ }
369
+ createContact(request, optionsOrCallback, callback) {
370
+ request = request || {};
371
+ let options;
372
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
373
+ callback = optionsOrCallback;
374
+ options = {};
375
+ }
376
+ else {
377
+ options = optionsOrCallback;
378
+ }
379
+ options = options || {};
380
+ options.otherArgs = options.otherArgs || {};
381
+ options.otherArgs.headers = options.otherArgs.headers || {};
382
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
383
+ 'parent': request.parent ?? '',
384
+ });
385
+ this.initialize().catch(err => { throw err; });
386
+ this._log.info('createContact request %j', request);
387
+ const wrappedCallback = callback
388
+ ? (error, response, options, rawResponse) => {
389
+ this._log.info('createContact response %j', response);
390
+ callback(error, response, options, rawResponse); // We verified callback above.
391
+ }
392
+ : undefined;
393
+ return this.innerApiCalls.createContact(request, options, wrappedCallback)
394
+ ?.then(([response, options, rawResponse]) => {
395
+ this._log.info('createContact response %j', response);
396
+ return [response, options, rawResponse];
397
+ }).catch((error) => {
398
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
399
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
400
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
401
+ }
402
+ throw error;
403
+ });
404
+ }
405
+ batchCreateContacts(request, optionsOrCallback, callback) {
406
+ request = request || {};
407
+ let options;
408
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
409
+ callback = optionsOrCallback;
410
+ options = {};
411
+ }
412
+ else {
413
+ options = optionsOrCallback;
414
+ }
415
+ options = options || {};
416
+ options.otherArgs = options.otherArgs || {};
417
+ options.otherArgs.headers = options.otherArgs.headers || {};
418
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
419
+ 'parent': request.parent ?? '',
420
+ });
421
+ this.initialize().catch(err => { throw err; });
422
+ this._log.info('batchCreateContacts request %j', request);
423
+ const wrappedCallback = callback
424
+ ? (error, response, options, rawResponse) => {
425
+ this._log.info('batchCreateContacts response %j', response);
426
+ callback(error, response, options, rawResponse); // We verified callback above.
427
+ }
428
+ : undefined;
429
+ return this.innerApiCalls.batchCreateContacts(request, options, wrappedCallback)
430
+ ?.then(([response, options, rawResponse]) => {
431
+ this._log.info('batchCreateContacts response %j', response);
432
+ return [response, options, rawResponse];
433
+ }).catch((error) => {
434
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
435
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
436
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
437
+ }
438
+ throw error;
439
+ });
440
+ }
441
+ updateContact(request, optionsOrCallback, callback) {
442
+ request = request || {};
443
+ let options;
444
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
445
+ callback = optionsOrCallback;
446
+ options = {};
447
+ }
448
+ else {
449
+ options = optionsOrCallback;
450
+ }
451
+ options = options || {};
452
+ options.otherArgs = options.otherArgs || {};
453
+ options.otherArgs.headers = options.otherArgs.headers || {};
454
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
455
+ 'contact.name': request.contact.name ?? '',
456
+ });
457
+ this.initialize().catch(err => { throw err; });
458
+ this._log.info('updateContact request %j', request);
459
+ const wrappedCallback = callback
460
+ ? (error, response, options, rawResponse) => {
461
+ this._log.info('updateContact response %j', response);
462
+ callback(error, response, options, rawResponse); // We verified callback above.
463
+ }
464
+ : undefined;
465
+ return this.innerApiCalls.updateContact(request, options, wrappedCallback)
466
+ ?.then(([response, options, rawResponse]) => {
467
+ this._log.info('updateContact response %j', response);
468
+ return [response, options, rawResponse];
469
+ }).catch((error) => {
470
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
471
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
472
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
473
+ }
474
+ throw error;
475
+ });
476
+ }
477
+ batchUpdateContacts(request, optionsOrCallback, callback) {
478
+ request = request || {};
479
+ let options;
480
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
481
+ callback = optionsOrCallback;
482
+ options = {};
483
+ }
484
+ else {
485
+ options = optionsOrCallback;
486
+ }
487
+ options = options || {};
488
+ options.otherArgs = options.otherArgs || {};
489
+ options.otherArgs.headers = options.otherArgs.headers || {};
490
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
491
+ 'parent': request.parent ?? '',
492
+ });
493
+ this.initialize().catch(err => { throw err; });
494
+ this._log.info('batchUpdateContacts request %j', request);
495
+ const wrappedCallback = callback
496
+ ? (error, response, options, rawResponse) => {
497
+ this._log.info('batchUpdateContacts response %j', response);
498
+ callback(error, response, options, rawResponse); // We verified callback above.
499
+ }
500
+ : undefined;
501
+ return this.innerApiCalls.batchUpdateContacts(request, options, wrappedCallback)
502
+ ?.then(([response, options, rawResponse]) => {
503
+ this._log.info('batchUpdateContacts response %j', response);
504
+ return [response, options, rawResponse];
505
+ }).catch((error) => {
506
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
507
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
508
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
509
+ }
510
+ throw error;
511
+ });
512
+ }
513
+ listContacts(request, optionsOrCallback, callback) {
514
+ request = request || {};
515
+ let options;
516
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
517
+ callback = optionsOrCallback;
518
+ options = {};
519
+ }
520
+ else {
521
+ options = optionsOrCallback;
522
+ }
523
+ options = options || {};
524
+ options.otherArgs = options.otherArgs || {};
525
+ options.otherArgs.headers = options.otherArgs.headers || {};
526
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
527
+ 'parent': request.parent ?? '',
528
+ });
529
+ this.initialize().catch(err => { throw err; });
530
+ const wrappedCallback = callback
531
+ ? (error, values, nextPageRequest, rawResponse) => {
532
+ this._log.info('listContacts values %j', values);
533
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
534
+ }
535
+ : undefined;
536
+ this._log.info('listContacts request %j', request);
537
+ return this.innerApiCalls
538
+ .listContacts(request, options, wrappedCallback)
539
+ ?.then(([response, input, output]) => {
540
+ this._log.info('listContacts values %j', response);
541
+ return [response, input, output];
542
+ });
543
+ }
544
+ /**
545
+ * Equivalent to `listContacts`, but returns a NodeJS Stream object.
546
+ * @param {Object} request
547
+ * The request object that will be sent.
548
+ * @param {string} request.parent
549
+ * Required. The parent, which owns this collection of Contacts.
550
+ * Format: `networks/{network_code}`
551
+ * @param {number} [request.pageSize]
552
+ * Optional. The maximum number of `Contacts` to return. The service may
553
+ * return fewer than this value. If unspecified, at most 50 `Contacts` will be
554
+ * returned. The maximum value is 1000; values greater than 1000 will be
555
+ * coerced to 1000.
556
+ * @param {string} [request.pageToken]
557
+ * Optional. A page token, received from a previous `ListContacts` call.
558
+ * Provide this to retrieve the subsequent page.
559
+ *
560
+ * When paginating, all other parameters provided to `ListContacts` must match
561
+ * the call that provided the page token.
562
+ * @param {string} [request.filter]
563
+ * Optional. Expression to filter the response.
564
+ * See syntax details at
565
+ * https://developers.google.com/ad-manager/api/beta/filters
566
+ * @param {string} [request.orderBy]
567
+ * Optional. Expression to specify sorting order.
568
+ * See syntax details at
569
+ * https://developers.google.com/ad-manager/api/beta/filters#order
570
+ * @param {number} [request.skip]
571
+ * Optional. Number of individual resources to skip while paginating.
572
+ * @param {object} [options]
573
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
574
+ * @returns {Stream}
575
+ * An object stream which emits an object representing {@link protos.google.ads.admanager.v1.Contact|Contact} on 'data' event.
576
+ * The client library will perform auto-pagination by default: it will call the API as many
577
+ * times as needed. Note that it can affect your quota.
578
+ * We recommend using `listContactsAsync()`
579
+ * method described below for async iteration which you can stop as needed.
580
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
581
+ * for more details and examples.
582
+ */
583
+ listContactsStream(request, options) {
584
+ request = request || {};
585
+ options = options || {};
586
+ options.otherArgs = options.otherArgs || {};
587
+ options.otherArgs.headers = options.otherArgs.headers || {};
588
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
589
+ 'parent': request.parent ?? '',
590
+ });
591
+ const defaultCallSettings = this._defaults['listContacts'];
592
+ const callSettings = defaultCallSettings.merge(options);
593
+ this.initialize().catch(err => { throw err; });
594
+ this._log.info('listContacts stream %j', request);
595
+ return this.descriptors.page.listContacts.createStream(this.innerApiCalls.listContacts, request, callSettings);
596
+ }
597
+ /**
598
+ * Equivalent to `listContacts`, but returns an iterable object.
599
+ *
600
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
601
+ * @param {Object} request
602
+ * The request object that will be sent.
603
+ * @param {string} request.parent
604
+ * Required. The parent, which owns this collection of Contacts.
605
+ * Format: `networks/{network_code}`
606
+ * @param {number} [request.pageSize]
607
+ * Optional. The maximum number of `Contacts` to return. The service may
608
+ * return fewer than this value. If unspecified, at most 50 `Contacts` will be
609
+ * returned. The maximum value is 1000; values greater than 1000 will be
610
+ * coerced to 1000.
611
+ * @param {string} [request.pageToken]
612
+ * Optional. A page token, received from a previous `ListContacts` call.
613
+ * Provide this to retrieve the subsequent page.
614
+ *
615
+ * When paginating, all other parameters provided to `ListContacts` must match
616
+ * the call that provided the page token.
617
+ * @param {string} [request.filter]
618
+ * Optional. Expression to filter the response.
619
+ * See syntax details at
620
+ * https://developers.google.com/ad-manager/api/beta/filters
621
+ * @param {string} [request.orderBy]
622
+ * Optional. Expression to specify sorting order.
623
+ * See syntax details at
624
+ * https://developers.google.com/ad-manager/api/beta/filters#order
625
+ * @param {number} [request.skip]
626
+ * Optional. Number of individual resources to skip while paginating.
627
+ * @param {object} [options]
628
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
629
+ * @returns {Object}
630
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
631
+ * When you iterate the returned iterable, each element will be an object representing
632
+ * {@link protos.google.ads.admanager.v1.Contact|Contact}. The API will be called under the hood as needed, once per the page,
633
+ * so you can stop the iteration when you don't need more results.
634
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
635
+ * for more details and examples.
636
+ * @example <caption>include:samples/generated/v1/contact_service.list_contacts.js</caption>
637
+ * region_tag:admanager_v1_generated_ContactService_ListContacts_async
638
+ */
639
+ listContactsAsync(request, options) {
640
+ request = request || {};
641
+ options = options || {};
642
+ options.otherArgs = options.otherArgs || {};
643
+ options.otherArgs.headers = options.otherArgs.headers || {};
644
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
645
+ 'parent': request.parent ?? '',
646
+ });
647
+ const defaultCallSettings = this._defaults['listContacts'];
648
+ const callSettings = defaultCallSettings.merge(options);
649
+ this.initialize().catch(err => { throw err; });
650
+ this._log.info('listContacts iterate %j', request);
651
+ return this.descriptors.page.listContacts.asyncIterate(this.innerApiCalls['listContacts'], request, callSettings);
652
+ }
653
+ // --------------------
654
+ // -- Path templates --
655
+ // --------------------
656
+ /**
657
+ * Return a fully-qualified adBreak resource name string.
658
+ *
659
+ * @param {string} network_code
660
+ * @param {string} asset_key
661
+ * @param {string} ad_break
662
+ * @returns {string} Resource name string.
663
+ */
664
+ adBreakPath(networkCode, assetKey, adBreak) {
665
+ return this.pathTemplates.adBreakPathTemplate.render({
666
+ network_code: networkCode,
667
+ asset_key: assetKey,
668
+ ad_break: adBreak,
669
+ });
670
+ }
671
+ /**
672
+ * Parse the network_code from AdBreak resource.
673
+ *
674
+ * @param {string} adBreakName
675
+ * A fully-qualified path representing AdBreak resource.
676
+ * @returns {string} A string representing the network_code.
677
+ */
678
+ matchNetworkCodeFromAdBreakName(adBreakName) {
679
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
680
+ }
681
+ /**
682
+ * Parse the asset_key from AdBreak resource.
683
+ *
684
+ * @param {string} adBreakName
685
+ * A fully-qualified path representing AdBreak resource.
686
+ * @returns {string} A string representing the asset_key.
687
+ */
688
+ matchAssetKeyFromAdBreakName(adBreakName) {
689
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
690
+ }
691
+ /**
692
+ * Parse the ad_break from AdBreak resource.
693
+ *
694
+ * @param {string} adBreakName
695
+ * A fully-qualified path representing AdBreak resource.
696
+ * @returns {string} A string representing the ad_break.
697
+ */
698
+ matchAdBreakFromAdBreakName(adBreakName) {
699
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
700
+ }
701
+ /**
702
+ * Return a fully-qualified adReviewCenterAd resource name string.
703
+ *
704
+ * @param {string} network_code
705
+ * @param {string} web_property_code
706
+ * @param {string} ad_review_center_ad
707
+ * @returns {string} Resource name string.
708
+ */
709
+ adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
710
+ return this.pathTemplates.adReviewCenterAdPathTemplate.render({
711
+ network_code: networkCode,
712
+ web_property_code: webPropertyCode,
713
+ ad_review_center_ad: adReviewCenterAd,
714
+ });
715
+ }
716
+ /**
717
+ * Parse the network_code from AdReviewCenterAd resource.
718
+ *
719
+ * @param {string} adReviewCenterAdName
720
+ * A fully-qualified path representing AdReviewCenterAd resource.
721
+ * @returns {string} A string representing the network_code.
722
+ */
723
+ matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
724
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
725
+ }
726
+ /**
727
+ * Parse the web_property_code from AdReviewCenterAd resource.
728
+ *
729
+ * @param {string} adReviewCenterAdName
730
+ * A fully-qualified path representing AdReviewCenterAd resource.
731
+ * @returns {string} A string representing the web_property_code.
732
+ */
733
+ matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
734
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
735
+ }
736
+ /**
737
+ * Parse the ad_review_center_ad from AdReviewCenterAd resource.
738
+ *
739
+ * @param {string} adReviewCenterAdName
740
+ * A fully-qualified path representing AdReviewCenterAd resource.
741
+ * @returns {string} A string representing the ad_review_center_ad.
742
+ */
743
+ matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
744
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
745
+ }
746
+ /**
747
+ * Return a fully-qualified adUnit resource name string.
748
+ *
749
+ * @param {string} network_code
750
+ * @param {string} ad_unit
751
+ * @returns {string} Resource name string.
752
+ */
753
+ adUnitPath(networkCode, adUnit) {
754
+ return this.pathTemplates.adUnitPathTemplate.render({
755
+ network_code: networkCode,
756
+ ad_unit: adUnit,
757
+ });
758
+ }
759
+ /**
760
+ * Parse the network_code from AdUnit resource.
761
+ *
762
+ * @param {string} adUnitName
763
+ * A fully-qualified path representing AdUnit resource.
764
+ * @returns {string} A string representing the network_code.
765
+ */
766
+ matchNetworkCodeFromAdUnitName(adUnitName) {
767
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
768
+ }
769
+ /**
770
+ * Parse the ad_unit from AdUnit resource.
771
+ *
772
+ * @param {string} adUnitName
773
+ * A fully-qualified path representing AdUnit resource.
774
+ * @returns {string} A string representing the ad_unit.
775
+ */
776
+ matchAdUnitFromAdUnitName(adUnitName) {
777
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
778
+ }
779
+ /**
780
+ * Return a fully-qualified application resource name string.
781
+ *
782
+ * @param {string} network_code
783
+ * @param {string} application
784
+ * @returns {string} Resource name string.
785
+ */
786
+ applicationPath(networkCode, application) {
787
+ return this.pathTemplates.applicationPathTemplate.render({
788
+ network_code: networkCode,
789
+ application: application,
790
+ });
791
+ }
792
+ /**
793
+ * Parse the network_code from Application resource.
794
+ *
795
+ * @param {string} applicationName
796
+ * A fully-qualified path representing Application resource.
797
+ * @returns {string} A string representing the network_code.
798
+ */
799
+ matchNetworkCodeFromApplicationName(applicationName) {
800
+ return this.pathTemplates.applicationPathTemplate.match(applicationName).network_code;
801
+ }
802
+ /**
803
+ * Parse the application from Application resource.
804
+ *
805
+ * @param {string} applicationName
806
+ * A fully-qualified path representing Application resource.
807
+ * @returns {string} A string representing the application.
808
+ */
809
+ matchApplicationFromApplicationName(applicationName) {
810
+ return this.pathTemplates.applicationPathTemplate.match(applicationName).application;
811
+ }
812
+ /**
813
+ * Return a fully-qualified audienceSegment resource name string.
814
+ *
815
+ * @param {string} network_code
816
+ * @param {string} audience_segment
817
+ * @returns {string} Resource name string.
818
+ */
819
+ audienceSegmentPath(networkCode, audienceSegment) {
820
+ return this.pathTemplates.audienceSegmentPathTemplate.render({
821
+ network_code: networkCode,
822
+ audience_segment: audienceSegment,
823
+ });
824
+ }
825
+ /**
826
+ * Parse the network_code from AudienceSegment resource.
827
+ *
828
+ * @param {string} audienceSegmentName
829
+ * A fully-qualified path representing AudienceSegment resource.
830
+ * @returns {string} A string representing the network_code.
831
+ */
832
+ matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
833
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
834
+ }
835
+ /**
836
+ * Parse the audience_segment from AudienceSegment resource.
837
+ *
838
+ * @param {string} audienceSegmentName
839
+ * A fully-qualified path representing AudienceSegment resource.
840
+ * @returns {string} A string representing the audience_segment.
841
+ */
842
+ matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
843
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
844
+ }
845
+ /**
846
+ * Return a fully-qualified bandwidthGroup resource name string.
847
+ *
848
+ * @param {string} network_code
849
+ * @param {string} bandwidth_group
850
+ * @returns {string} Resource name string.
851
+ */
852
+ bandwidthGroupPath(networkCode, bandwidthGroup) {
853
+ return this.pathTemplates.bandwidthGroupPathTemplate.render({
854
+ network_code: networkCode,
855
+ bandwidth_group: bandwidthGroup,
856
+ });
857
+ }
858
+ /**
859
+ * Parse the network_code from BandwidthGroup resource.
860
+ *
861
+ * @param {string} bandwidthGroupName
862
+ * A fully-qualified path representing BandwidthGroup resource.
863
+ * @returns {string} A string representing the network_code.
864
+ */
865
+ matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
866
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
867
+ }
868
+ /**
869
+ * Parse the bandwidth_group from BandwidthGroup resource.
870
+ *
871
+ * @param {string} bandwidthGroupName
872
+ * A fully-qualified path representing BandwidthGroup resource.
873
+ * @returns {string} A string representing the bandwidth_group.
874
+ */
875
+ matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
876
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
877
+ }
878
+ /**
879
+ * Return a fully-qualified browser resource name string.
880
+ *
881
+ * @param {string} network_code
882
+ * @param {string} browser
883
+ * @returns {string} Resource name string.
884
+ */
885
+ browserPath(networkCode, browser) {
886
+ return this.pathTemplates.browserPathTemplate.render({
887
+ network_code: networkCode,
888
+ browser: browser,
889
+ });
890
+ }
891
+ /**
892
+ * Parse the network_code from Browser resource.
893
+ *
894
+ * @param {string} browserName
895
+ * A fully-qualified path representing Browser resource.
896
+ * @returns {string} A string representing the network_code.
897
+ */
898
+ matchNetworkCodeFromBrowserName(browserName) {
899
+ return this.pathTemplates.browserPathTemplate.match(browserName).network_code;
900
+ }
901
+ /**
902
+ * Parse the browser from Browser resource.
903
+ *
904
+ * @param {string} browserName
905
+ * A fully-qualified path representing Browser resource.
906
+ * @returns {string} A string representing the browser.
907
+ */
908
+ matchBrowserFromBrowserName(browserName) {
909
+ return this.pathTemplates.browserPathTemplate.match(browserName).browser;
910
+ }
911
+ /**
912
+ * Return a fully-qualified browserLanguage resource name string.
913
+ *
914
+ * @param {string} network_code
915
+ * @param {string} browser_language
916
+ * @returns {string} Resource name string.
917
+ */
918
+ browserLanguagePath(networkCode, browserLanguage) {
919
+ return this.pathTemplates.browserLanguagePathTemplate.render({
920
+ network_code: networkCode,
921
+ browser_language: browserLanguage,
922
+ });
923
+ }
924
+ /**
925
+ * Parse the network_code from BrowserLanguage resource.
926
+ *
927
+ * @param {string} browserLanguageName
928
+ * A fully-qualified path representing BrowserLanguage resource.
929
+ * @returns {string} A string representing the network_code.
930
+ */
931
+ matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
932
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
933
+ }
934
+ /**
935
+ * Parse the browser_language from BrowserLanguage resource.
936
+ *
937
+ * @param {string} browserLanguageName
938
+ * A fully-qualified path representing BrowserLanguage resource.
939
+ * @returns {string} A string representing the browser_language.
940
+ */
941
+ matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
942
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
943
+ }
944
+ /**
945
+ * Return a fully-qualified cmsMetadataKey resource name string.
946
+ *
947
+ * @param {string} network_code
948
+ * @param {string} cms_metadata_key
949
+ * @returns {string} Resource name string.
950
+ */
951
+ cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
952
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
953
+ network_code: networkCode,
954
+ cms_metadata_key: cmsMetadataKey,
955
+ });
956
+ }
957
+ /**
958
+ * Parse the network_code from CmsMetadataKey resource.
959
+ *
960
+ * @param {string} cmsMetadataKeyName
961
+ * A fully-qualified path representing CmsMetadataKey resource.
962
+ * @returns {string} A string representing the network_code.
963
+ */
964
+ matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
965
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
966
+ }
967
+ /**
968
+ * Parse the cms_metadata_key from CmsMetadataKey resource.
969
+ *
970
+ * @param {string} cmsMetadataKeyName
971
+ * A fully-qualified path representing CmsMetadataKey resource.
972
+ * @returns {string} A string representing the cms_metadata_key.
973
+ */
974
+ matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
975
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
976
+ }
977
+ /**
978
+ * Return a fully-qualified cmsMetadataValue resource name string.
979
+ *
980
+ * @param {string} network_code
981
+ * @param {string} cms_metadata_value
982
+ * @returns {string} Resource name string.
983
+ */
984
+ cmsMetadataValuePath(networkCode, cmsMetadataValue) {
985
+ return this.pathTemplates.cmsMetadataValuePathTemplate.render({
986
+ network_code: networkCode,
987
+ cms_metadata_value: cmsMetadataValue,
988
+ });
989
+ }
990
+ /**
991
+ * Parse the network_code from CmsMetadataValue resource.
992
+ *
993
+ * @param {string} cmsMetadataValueName
994
+ * A fully-qualified path representing CmsMetadataValue resource.
995
+ * @returns {string} A string representing the network_code.
996
+ */
997
+ matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
998
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
999
+ }
1000
+ /**
1001
+ * Parse the cms_metadata_value from CmsMetadataValue resource.
1002
+ *
1003
+ * @param {string} cmsMetadataValueName
1004
+ * A fully-qualified path representing CmsMetadataValue resource.
1005
+ * @returns {string} A string representing the cms_metadata_value.
1006
+ */
1007
+ matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
1008
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
1009
+ }
1010
+ /**
1011
+ * Return a fully-qualified company resource name string.
1012
+ *
1013
+ * @param {string} network_code
1014
+ * @param {string} company
1015
+ * @returns {string} Resource name string.
1016
+ */
1017
+ companyPath(networkCode, company) {
1018
+ return this.pathTemplates.companyPathTemplate.render({
1019
+ network_code: networkCode,
1020
+ company: company,
1021
+ });
1022
+ }
1023
+ /**
1024
+ * Parse the network_code from Company resource.
1025
+ *
1026
+ * @param {string} companyName
1027
+ * A fully-qualified path representing Company resource.
1028
+ * @returns {string} A string representing the network_code.
1029
+ */
1030
+ matchNetworkCodeFromCompanyName(companyName) {
1031
+ return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
1032
+ }
1033
+ /**
1034
+ * Parse the company from Company resource.
1035
+ *
1036
+ * @param {string} companyName
1037
+ * A fully-qualified path representing Company resource.
1038
+ * @returns {string} A string representing the company.
1039
+ */
1040
+ matchCompanyFromCompanyName(companyName) {
1041
+ return this.pathTemplates.companyPathTemplate.match(companyName).company;
1042
+ }
1043
+ /**
1044
+ * Return a fully-qualified contact resource name string.
1045
+ *
1046
+ * @param {string} network_code
1047
+ * @param {string} contact
1048
+ * @returns {string} Resource name string.
1049
+ */
1050
+ contactPath(networkCode, contact) {
1051
+ return this.pathTemplates.contactPathTemplate.render({
1052
+ network_code: networkCode,
1053
+ contact: contact,
1054
+ });
1055
+ }
1056
+ /**
1057
+ * Parse the network_code from Contact resource.
1058
+ *
1059
+ * @param {string} contactName
1060
+ * A fully-qualified path representing Contact resource.
1061
+ * @returns {string} A string representing the network_code.
1062
+ */
1063
+ matchNetworkCodeFromContactName(contactName) {
1064
+ return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
1065
+ }
1066
+ /**
1067
+ * Parse the contact from Contact resource.
1068
+ *
1069
+ * @param {string} contactName
1070
+ * A fully-qualified path representing Contact resource.
1071
+ * @returns {string} A string representing the contact.
1072
+ */
1073
+ matchContactFromContactName(contactName) {
1074
+ return this.pathTemplates.contactPathTemplate.match(contactName).contact;
1075
+ }
1076
+ /**
1077
+ * Return a fully-qualified content resource name string.
1078
+ *
1079
+ * @param {string} network_code
1080
+ * @param {string} content
1081
+ * @returns {string} Resource name string.
1082
+ */
1083
+ contentPath(networkCode, content) {
1084
+ return this.pathTemplates.contentPathTemplate.render({
1085
+ network_code: networkCode,
1086
+ content: content,
1087
+ });
1088
+ }
1089
+ /**
1090
+ * Parse the network_code from Content resource.
1091
+ *
1092
+ * @param {string} contentName
1093
+ * A fully-qualified path representing Content resource.
1094
+ * @returns {string} A string representing the network_code.
1095
+ */
1096
+ matchNetworkCodeFromContentName(contentName) {
1097
+ return this.pathTemplates.contentPathTemplate.match(contentName).network_code;
1098
+ }
1099
+ /**
1100
+ * Parse the content from Content resource.
1101
+ *
1102
+ * @param {string} contentName
1103
+ * A fully-qualified path representing Content resource.
1104
+ * @returns {string} A string representing the content.
1105
+ */
1106
+ matchContentFromContentName(contentName) {
1107
+ return this.pathTemplates.contentPathTemplate.match(contentName).content;
1108
+ }
1109
+ /**
1110
+ * Return a fully-qualified contentBundle resource name string.
1111
+ *
1112
+ * @param {string} network_code
1113
+ * @param {string} content_bundle
1114
+ * @returns {string} Resource name string.
1115
+ */
1116
+ contentBundlePath(networkCode, contentBundle) {
1117
+ return this.pathTemplates.contentBundlePathTemplate.render({
1118
+ network_code: networkCode,
1119
+ content_bundle: contentBundle,
1120
+ });
1121
+ }
1122
+ /**
1123
+ * Parse the network_code from ContentBundle resource.
1124
+ *
1125
+ * @param {string} contentBundleName
1126
+ * A fully-qualified path representing ContentBundle resource.
1127
+ * @returns {string} A string representing the network_code.
1128
+ */
1129
+ matchNetworkCodeFromContentBundleName(contentBundleName) {
1130
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).network_code;
1131
+ }
1132
+ /**
1133
+ * Parse the content_bundle from ContentBundle resource.
1134
+ *
1135
+ * @param {string} contentBundleName
1136
+ * A fully-qualified path representing ContentBundle resource.
1137
+ * @returns {string} A string representing the content_bundle.
1138
+ */
1139
+ matchContentBundleFromContentBundleName(contentBundleName) {
1140
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).content_bundle;
1141
+ }
1142
+ /**
1143
+ * Return a fully-qualified contentLabel resource name string.
1144
+ *
1145
+ * @param {string} network_code
1146
+ * @param {string} content_label
1147
+ * @returns {string} Resource name string.
1148
+ */
1149
+ contentLabelPath(networkCode, contentLabel) {
1150
+ return this.pathTemplates.contentLabelPathTemplate.render({
1151
+ network_code: networkCode,
1152
+ content_label: contentLabel,
1153
+ });
1154
+ }
1155
+ /**
1156
+ * Parse the network_code from ContentLabel resource.
1157
+ *
1158
+ * @param {string} contentLabelName
1159
+ * A fully-qualified path representing ContentLabel resource.
1160
+ * @returns {string} A string representing the network_code.
1161
+ */
1162
+ matchNetworkCodeFromContentLabelName(contentLabelName) {
1163
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).network_code;
1164
+ }
1165
+ /**
1166
+ * Parse the content_label from ContentLabel resource.
1167
+ *
1168
+ * @param {string} contentLabelName
1169
+ * A fully-qualified path representing ContentLabel resource.
1170
+ * @returns {string} A string representing the content_label.
1171
+ */
1172
+ matchContentLabelFromContentLabelName(contentLabelName) {
1173
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).content_label;
1174
+ }
1175
+ /**
1176
+ * Return a fully-qualified creativeTemplate resource name string.
1177
+ *
1178
+ * @param {string} network_code
1179
+ * @param {string} creative_template
1180
+ * @returns {string} Resource name string.
1181
+ */
1182
+ creativeTemplatePath(networkCode, creativeTemplate) {
1183
+ return this.pathTemplates.creativeTemplatePathTemplate.render({
1184
+ network_code: networkCode,
1185
+ creative_template: creativeTemplate,
1186
+ });
1187
+ }
1188
+ /**
1189
+ * Parse the network_code from CreativeTemplate resource.
1190
+ *
1191
+ * @param {string} creativeTemplateName
1192
+ * A fully-qualified path representing CreativeTemplate resource.
1193
+ * @returns {string} A string representing the network_code.
1194
+ */
1195
+ matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
1196
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
1197
+ }
1198
+ /**
1199
+ * Parse the creative_template from CreativeTemplate resource.
1200
+ *
1201
+ * @param {string} creativeTemplateName
1202
+ * A fully-qualified path representing CreativeTemplate resource.
1203
+ * @returns {string} A string representing the creative_template.
1204
+ */
1205
+ matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
1206
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
1207
+ }
1208
+ /**
1209
+ * Return a fully-qualified customField resource name string.
1210
+ *
1211
+ * @param {string} network_code
1212
+ * @param {string} custom_field
1213
+ * @returns {string} Resource name string.
1214
+ */
1215
+ customFieldPath(networkCode, customField) {
1216
+ return this.pathTemplates.customFieldPathTemplate.render({
1217
+ network_code: networkCode,
1218
+ custom_field: customField,
1219
+ });
1220
+ }
1221
+ /**
1222
+ * Parse the network_code from CustomField resource.
1223
+ *
1224
+ * @param {string} customFieldName
1225
+ * A fully-qualified path representing CustomField resource.
1226
+ * @returns {string} A string representing the network_code.
1227
+ */
1228
+ matchNetworkCodeFromCustomFieldName(customFieldName) {
1229
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
1230
+ }
1231
+ /**
1232
+ * Parse the custom_field from CustomField resource.
1233
+ *
1234
+ * @param {string} customFieldName
1235
+ * A fully-qualified path representing CustomField resource.
1236
+ * @returns {string} A string representing the custom_field.
1237
+ */
1238
+ matchCustomFieldFromCustomFieldName(customFieldName) {
1239
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
1240
+ }
1241
+ /**
1242
+ * Return a fully-qualified customTargetingKey resource name string.
1243
+ *
1244
+ * @param {string} network_code
1245
+ * @param {string} custom_targeting_key
1246
+ * @returns {string} Resource name string.
1247
+ */
1248
+ customTargetingKeyPath(networkCode, customTargetingKey) {
1249
+ return this.pathTemplates.customTargetingKeyPathTemplate.render({
1250
+ network_code: networkCode,
1251
+ custom_targeting_key: customTargetingKey,
1252
+ });
1253
+ }
1254
+ /**
1255
+ * Parse the network_code from CustomTargetingKey resource.
1256
+ *
1257
+ * @param {string} customTargetingKeyName
1258
+ * A fully-qualified path representing CustomTargetingKey resource.
1259
+ * @returns {string} A string representing the network_code.
1260
+ */
1261
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName) {
1262
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).network_code;
1263
+ }
1264
+ /**
1265
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
1266
+ *
1267
+ * @param {string} customTargetingKeyName
1268
+ * A fully-qualified path representing CustomTargetingKey resource.
1269
+ * @returns {string} A string representing the custom_targeting_key.
1270
+ */
1271
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName) {
1272
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).custom_targeting_key;
1273
+ }
1274
+ /**
1275
+ * Return a fully-qualified customTargetingValue resource name string.
1276
+ *
1277
+ * @param {string} network_code
1278
+ * @param {string} custom_targeting_value
1279
+ * @returns {string} Resource name string.
1280
+ */
1281
+ customTargetingValuePath(networkCode, customTargetingValue) {
1282
+ return this.pathTemplates.customTargetingValuePathTemplate.render({
1283
+ network_code: networkCode,
1284
+ custom_targeting_value: customTargetingValue,
1285
+ });
1286
+ }
1287
+ /**
1288
+ * Parse the network_code from CustomTargetingValue resource.
1289
+ *
1290
+ * @param {string} customTargetingValueName
1291
+ * A fully-qualified path representing CustomTargetingValue resource.
1292
+ * @returns {string} A string representing the network_code.
1293
+ */
1294
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
1295
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
1296
+ }
1297
+ /**
1298
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
1299
+ *
1300
+ * @param {string} customTargetingValueName
1301
+ * A fully-qualified path representing CustomTargetingValue resource.
1302
+ * @returns {string} A string representing the custom_targeting_value.
1303
+ */
1304
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
1305
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
1306
+ }
1307
+ /**
1308
+ * Return a fully-qualified deviceCapability resource name string.
1309
+ *
1310
+ * @param {string} network_code
1311
+ * @param {string} device_capability
1312
+ * @returns {string} Resource name string.
1313
+ */
1314
+ deviceCapabilityPath(networkCode, deviceCapability) {
1315
+ return this.pathTemplates.deviceCapabilityPathTemplate.render({
1316
+ network_code: networkCode,
1317
+ device_capability: deviceCapability,
1318
+ });
1319
+ }
1320
+ /**
1321
+ * Parse the network_code from DeviceCapability resource.
1322
+ *
1323
+ * @param {string} deviceCapabilityName
1324
+ * A fully-qualified path representing DeviceCapability resource.
1325
+ * @returns {string} A string representing the network_code.
1326
+ */
1327
+ matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
1328
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
1329
+ }
1330
+ /**
1331
+ * Parse the device_capability from DeviceCapability resource.
1332
+ *
1333
+ * @param {string} deviceCapabilityName
1334
+ * A fully-qualified path representing DeviceCapability resource.
1335
+ * @returns {string} A string representing the device_capability.
1336
+ */
1337
+ matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
1338
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
1339
+ }
1340
+ /**
1341
+ * Return a fully-qualified deviceCategory resource name string.
1342
+ *
1343
+ * @param {string} network_code
1344
+ * @param {string} device_category
1345
+ * @returns {string} Resource name string.
1346
+ */
1347
+ deviceCategoryPath(networkCode, deviceCategory) {
1348
+ return this.pathTemplates.deviceCategoryPathTemplate.render({
1349
+ network_code: networkCode,
1350
+ device_category: deviceCategory,
1351
+ });
1352
+ }
1353
+ /**
1354
+ * Parse the network_code from DeviceCategory resource.
1355
+ *
1356
+ * @param {string} deviceCategoryName
1357
+ * A fully-qualified path representing DeviceCategory resource.
1358
+ * @returns {string} A string representing the network_code.
1359
+ */
1360
+ matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
1361
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
1362
+ }
1363
+ /**
1364
+ * Parse the device_category from DeviceCategory resource.
1365
+ *
1366
+ * @param {string} deviceCategoryName
1367
+ * A fully-qualified path representing DeviceCategory resource.
1368
+ * @returns {string} A string representing the device_category.
1369
+ */
1370
+ matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
1371
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
1372
+ }
1373
+ /**
1374
+ * Return a fully-qualified deviceManufacturer resource name string.
1375
+ *
1376
+ * @param {string} network_code
1377
+ * @param {string} device_manufacturer
1378
+ * @returns {string} Resource name string.
1379
+ */
1380
+ deviceManufacturerPath(networkCode, deviceManufacturer) {
1381
+ return this.pathTemplates.deviceManufacturerPathTemplate.render({
1382
+ network_code: networkCode,
1383
+ device_manufacturer: deviceManufacturer,
1384
+ });
1385
+ }
1386
+ /**
1387
+ * Parse the network_code from DeviceManufacturer resource.
1388
+ *
1389
+ * @param {string} deviceManufacturerName
1390
+ * A fully-qualified path representing DeviceManufacturer resource.
1391
+ * @returns {string} A string representing the network_code.
1392
+ */
1393
+ matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
1394
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
1395
+ }
1396
+ /**
1397
+ * Parse the device_manufacturer from DeviceManufacturer resource.
1398
+ *
1399
+ * @param {string} deviceManufacturerName
1400
+ * A fully-qualified path representing DeviceManufacturer resource.
1401
+ * @returns {string} A string representing the device_manufacturer.
1402
+ */
1403
+ matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
1404
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
1405
+ }
1406
+ /**
1407
+ * Return a fully-qualified entitySignalsMapping resource name string.
1408
+ *
1409
+ * @param {string} network_code
1410
+ * @param {string} entity_signals_mapping
1411
+ * @returns {string} Resource name string.
1412
+ */
1413
+ entitySignalsMappingPath(networkCode, entitySignalsMapping) {
1414
+ return this.pathTemplates.entitySignalsMappingPathTemplate.render({
1415
+ network_code: networkCode,
1416
+ entity_signals_mapping: entitySignalsMapping,
1417
+ });
1418
+ }
1419
+ /**
1420
+ * Parse the network_code from EntitySignalsMapping resource.
1421
+ *
1422
+ * @param {string} entitySignalsMappingName
1423
+ * A fully-qualified path representing EntitySignalsMapping resource.
1424
+ * @returns {string} A string representing the network_code.
1425
+ */
1426
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName) {
1427
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).network_code;
1428
+ }
1429
+ /**
1430
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
1431
+ *
1432
+ * @param {string} entitySignalsMappingName
1433
+ * A fully-qualified path representing EntitySignalsMapping resource.
1434
+ * @returns {string} A string representing the entity_signals_mapping.
1435
+ */
1436
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
1437
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
1438
+ }
1439
+ /**
1440
+ * Return a fully-qualified geoTarget resource name string.
1441
+ *
1442
+ * @param {string} network_code
1443
+ * @param {string} geo_target
1444
+ * @returns {string} Resource name string.
1445
+ */
1446
+ geoTargetPath(networkCode, geoTarget) {
1447
+ return this.pathTemplates.geoTargetPathTemplate.render({
1448
+ network_code: networkCode,
1449
+ geo_target: geoTarget,
1450
+ });
1451
+ }
1452
+ /**
1453
+ * Parse the network_code from GeoTarget resource.
1454
+ *
1455
+ * @param {string} geoTargetName
1456
+ * A fully-qualified path representing GeoTarget resource.
1457
+ * @returns {string} A string representing the network_code.
1458
+ */
1459
+ matchNetworkCodeFromGeoTargetName(geoTargetName) {
1460
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
1461
+ }
1462
+ /**
1463
+ * Parse the geo_target from GeoTarget resource.
1464
+ *
1465
+ * @param {string} geoTargetName
1466
+ * A fully-qualified path representing GeoTarget resource.
1467
+ * @returns {string} A string representing the geo_target.
1468
+ */
1469
+ matchGeoTargetFromGeoTargetName(geoTargetName) {
1470
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
1471
+ }
1472
+ /**
1473
+ * Return a fully-qualified label resource name string.
1474
+ *
1475
+ * @param {string} network_code
1476
+ * @param {string} label
1477
+ * @returns {string} Resource name string.
1478
+ */
1479
+ labelPath(networkCode, label) {
1480
+ return this.pathTemplates.labelPathTemplate.render({
1481
+ network_code: networkCode,
1482
+ label: label,
1483
+ });
1484
+ }
1485
+ /**
1486
+ * Parse the network_code from Label resource.
1487
+ *
1488
+ * @param {string} labelName
1489
+ * A fully-qualified path representing Label resource.
1490
+ * @returns {string} A string representing the network_code.
1491
+ */
1492
+ matchNetworkCodeFromLabelName(labelName) {
1493
+ return this.pathTemplates.labelPathTemplate.match(labelName).network_code;
1494
+ }
1495
+ /**
1496
+ * Parse the label from Label resource.
1497
+ *
1498
+ * @param {string} labelName
1499
+ * A fully-qualified path representing Label resource.
1500
+ * @returns {string} A string representing the label.
1501
+ */
1502
+ matchLabelFromLabelName(labelName) {
1503
+ return this.pathTemplates.labelPathTemplate.match(labelName).label;
1504
+ }
1505
+ /**
1506
+ * Return a fully-qualified lineItem resource name string.
1507
+ *
1508
+ * @param {string} network_code
1509
+ * @param {string} line_item
1510
+ * @returns {string} Resource name string.
1511
+ */
1512
+ lineItemPath(networkCode, lineItem) {
1513
+ return this.pathTemplates.lineItemPathTemplate.render({
1514
+ network_code: networkCode,
1515
+ line_item: lineItem,
1516
+ });
1517
+ }
1518
+ /**
1519
+ * Parse the network_code from LineItem resource.
1520
+ *
1521
+ * @param {string} lineItemName
1522
+ * A fully-qualified path representing LineItem resource.
1523
+ * @returns {string} A string representing the network_code.
1524
+ */
1525
+ matchNetworkCodeFromLineItemName(lineItemName) {
1526
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName).network_code;
1527
+ }
1528
+ /**
1529
+ * Parse the line_item from LineItem resource.
1530
+ *
1531
+ * @param {string} lineItemName
1532
+ * A fully-qualified path representing LineItem resource.
1533
+ * @returns {string} A string representing the line_item.
1534
+ */
1535
+ matchLineItemFromLineItemName(lineItemName) {
1536
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName).line_item;
1537
+ }
1538
+ /**
1539
+ * Return a fully-qualified liveStreamEvent resource name string.
1540
+ *
1541
+ * @param {string} network_code
1542
+ * @param {string} live_stream_event
1543
+ * @returns {string} Resource name string.
1544
+ */
1545
+ liveStreamEventPath(networkCode, liveStreamEvent) {
1546
+ return this.pathTemplates.liveStreamEventPathTemplate.render({
1547
+ network_code: networkCode,
1548
+ live_stream_event: liveStreamEvent,
1549
+ });
1550
+ }
1551
+ /**
1552
+ * Parse the network_code from LiveStreamEvent resource.
1553
+ *
1554
+ * @param {string} liveStreamEventName
1555
+ * A fully-qualified path representing LiveStreamEvent resource.
1556
+ * @returns {string} A string representing the network_code.
1557
+ */
1558
+ matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
1559
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
1560
+ }
1561
+ /**
1562
+ * Parse the live_stream_event from LiveStreamEvent resource.
1563
+ *
1564
+ * @param {string} liveStreamEventName
1565
+ * A fully-qualified path representing LiveStreamEvent resource.
1566
+ * @returns {string} A string representing the live_stream_event.
1567
+ */
1568
+ matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
1569
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
1570
+ }
1571
+ /**
1572
+ * Return a fully-qualified mobileCarrier resource name string.
1573
+ *
1574
+ * @param {string} network_code
1575
+ * @param {string} mobile_carrier
1576
+ * @returns {string} Resource name string.
1577
+ */
1578
+ mobileCarrierPath(networkCode, mobileCarrier) {
1579
+ return this.pathTemplates.mobileCarrierPathTemplate.render({
1580
+ network_code: networkCode,
1581
+ mobile_carrier: mobileCarrier,
1582
+ });
1583
+ }
1584
+ /**
1585
+ * Parse the network_code from MobileCarrier resource.
1586
+ *
1587
+ * @param {string} mobileCarrierName
1588
+ * A fully-qualified path representing MobileCarrier resource.
1589
+ * @returns {string} A string representing the network_code.
1590
+ */
1591
+ matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
1592
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).network_code;
1593
+ }
1594
+ /**
1595
+ * Parse the mobile_carrier from MobileCarrier resource.
1596
+ *
1597
+ * @param {string} mobileCarrierName
1598
+ * A fully-qualified path representing MobileCarrier resource.
1599
+ * @returns {string} A string representing the mobile_carrier.
1600
+ */
1601
+ matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
1602
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).mobile_carrier;
1603
+ }
1604
+ /**
1605
+ * Return a fully-qualified mobileDevice resource name string.
1606
+ *
1607
+ * @param {string} network_code
1608
+ * @param {string} mobile_device
1609
+ * @returns {string} Resource name string.
1610
+ */
1611
+ mobileDevicePath(networkCode, mobileDevice) {
1612
+ return this.pathTemplates.mobileDevicePathTemplate.render({
1613
+ network_code: networkCode,
1614
+ mobile_device: mobileDevice,
1615
+ });
1616
+ }
1617
+ /**
1618
+ * Parse the network_code from MobileDevice resource.
1619
+ *
1620
+ * @param {string} mobileDeviceName
1621
+ * A fully-qualified path representing MobileDevice resource.
1622
+ * @returns {string} A string representing the network_code.
1623
+ */
1624
+ matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
1625
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).network_code;
1626
+ }
1627
+ /**
1628
+ * Parse the mobile_device from MobileDevice resource.
1629
+ *
1630
+ * @param {string} mobileDeviceName
1631
+ * A fully-qualified path representing MobileDevice resource.
1632
+ * @returns {string} A string representing the mobile_device.
1633
+ */
1634
+ matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
1635
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).mobile_device;
1636
+ }
1637
+ /**
1638
+ * Return a fully-qualified mobileDeviceSubmodel resource name string.
1639
+ *
1640
+ * @param {string} network_code
1641
+ * @param {string} mobile_device_submodel
1642
+ * @returns {string} Resource name string.
1643
+ */
1644
+ mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
1645
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
1646
+ network_code: networkCode,
1647
+ mobile_device_submodel: mobileDeviceSubmodel,
1648
+ });
1649
+ }
1650
+ /**
1651
+ * Parse the network_code from MobileDeviceSubmodel resource.
1652
+ *
1653
+ * @param {string} mobileDeviceSubmodelName
1654
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1655
+ * @returns {string} A string representing the network_code.
1656
+ */
1657
+ matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1658
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
1659
+ }
1660
+ /**
1661
+ * Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
1662
+ *
1663
+ * @param {string} mobileDeviceSubmodelName
1664
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1665
+ * @returns {string} A string representing the mobile_device_submodel.
1666
+ */
1667
+ matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1668
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
1669
+ }
1670
+ /**
1671
+ * Return a fully-qualified network resource name string.
1672
+ *
1673
+ * @param {string} network_code
1674
+ * @returns {string} Resource name string.
1675
+ */
1676
+ networkPath(networkCode) {
1677
+ return this.pathTemplates.networkPathTemplate.render({
1678
+ network_code: networkCode,
1679
+ });
1680
+ }
1681
+ /**
1682
+ * Parse the network_code from Network resource.
1683
+ *
1684
+ * @param {string} networkName
1685
+ * A fully-qualified path representing Network resource.
1686
+ * @returns {string} A string representing the network_code.
1687
+ */
1688
+ matchNetworkCodeFromNetworkName(networkName) {
1689
+ return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
1690
+ }
1691
+ /**
1692
+ * Return a fully-qualified operatingSystem resource name string.
1693
+ *
1694
+ * @param {string} network_code
1695
+ * @param {string} operating_system
1696
+ * @returns {string} Resource name string.
1697
+ */
1698
+ operatingSystemPath(networkCode, operatingSystem) {
1699
+ return this.pathTemplates.operatingSystemPathTemplate.render({
1700
+ network_code: networkCode,
1701
+ operating_system: operatingSystem,
1702
+ });
1703
+ }
1704
+ /**
1705
+ * Parse the network_code from OperatingSystem resource.
1706
+ *
1707
+ * @param {string} operatingSystemName
1708
+ * A fully-qualified path representing OperatingSystem resource.
1709
+ * @returns {string} A string representing the network_code.
1710
+ */
1711
+ matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
1712
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
1713
+ }
1714
+ /**
1715
+ * Parse the operating_system from OperatingSystem resource.
1716
+ *
1717
+ * @param {string} operatingSystemName
1718
+ * A fully-qualified path representing OperatingSystem resource.
1719
+ * @returns {string} A string representing the operating_system.
1720
+ */
1721
+ matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
1722
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
1723
+ }
1724
+ /**
1725
+ * Return a fully-qualified operatingSystemVersion resource name string.
1726
+ *
1727
+ * @param {string} network_code
1728
+ * @param {string} operating_system_version
1729
+ * @returns {string} Resource name string.
1730
+ */
1731
+ operatingSystemVersionPath(networkCode, operatingSystemVersion) {
1732
+ return this.pathTemplates.operatingSystemVersionPathTemplate.render({
1733
+ network_code: networkCode,
1734
+ operating_system_version: operatingSystemVersion,
1735
+ });
1736
+ }
1737
+ /**
1738
+ * Parse the network_code from OperatingSystemVersion resource.
1739
+ *
1740
+ * @param {string} operatingSystemVersionName
1741
+ * A fully-qualified path representing OperatingSystemVersion resource.
1742
+ * @returns {string} A string representing the network_code.
1743
+ */
1744
+ matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
1745
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
1746
+ }
1747
+ /**
1748
+ * Parse the operating_system_version from OperatingSystemVersion resource.
1749
+ *
1750
+ * @param {string} operatingSystemVersionName
1751
+ * A fully-qualified path representing OperatingSystemVersion resource.
1752
+ * @returns {string} A string representing the operating_system_version.
1753
+ */
1754
+ matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
1755
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
1756
+ }
1757
+ /**
1758
+ * Return a fully-qualified order resource name string.
1759
+ *
1760
+ * @param {string} network_code
1761
+ * @param {string} order
1762
+ * @returns {string} Resource name string.
1763
+ */
1764
+ orderPath(networkCode, order) {
1765
+ return this.pathTemplates.orderPathTemplate.render({
1766
+ network_code: networkCode,
1767
+ order: order,
1768
+ });
1769
+ }
1770
+ /**
1771
+ * Parse the network_code from Order resource.
1772
+ *
1773
+ * @param {string} orderName
1774
+ * A fully-qualified path representing Order resource.
1775
+ * @returns {string} A string representing the network_code.
1776
+ */
1777
+ matchNetworkCodeFromOrderName(orderName) {
1778
+ return this.pathTemplates.orderPathTemplate.match(orderName).network_code;
1779
+ }
1780
+ /**
1781
+ * Parse the order from Order resource.
1782
+ *
1783
+ * @param {string} orderName
1784
+ * A fully-qualified path representing Order resource.
1785
+ * @returns {string} A string representing the order.
1786
+ */
1787
+ matchOrderFromOrderName(orderName) {
1788
+ return this.pathTemplates.orderPathTemplate.match(orderName).order;
1789
+ }
1790
+ /**
1791
+ * Return a fully-qualified placement resource name string.
1792
+ *
1793
+ * @param {string} network_code
1794
+ * @param {string} placement
1795
+ * @returns {string} Resource name string.
1796
+ */
1797
+ placementPath(networkCode, placement) {
1798
+ return this.pathTemplates.placementPathTemplate.render({
1799
+ network_code: networkCode,
1800
+ placement: placement,
1801
+ });
1802
+ }
1803
+ /**
1804
+ * Parse the network_code from Placement resource.
1805
+ *
1806
+ * @param {string} placementName
1807
+ * A fully-qualified path representing Placement resource.
1808
+ * @returns {string} A string representing the network_code.
1809
+ */
1810
+ matchNetworkCodeFromPlacementName(placementName) {
1811
+ return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
1812
+ }
1813
+ /**
1814
+ * Parse the placement from Placement resource.
1815
+ *
1816
+ * @param {string} placementName
1817
+ * A fully-qualified path representing Placement resource.
1818
+ * @returns {string} A string representing the placement.
1819
+ */
1820
+ matchPlacementFromPlacementName(placementName) {
1821
+ return this.pathTemplates.placementPathTemplate.match(placementName).placement;
1822
+ }
1823
+ /**
1824
+ * Return a fully-qualified privateAuction resource name string.
1825
+ *
1826
+ * @param {string} network_code
1827
+ * @param {string} private_auction
1828
+ * @returns {string} Resource name string.
1829
+ */
1830
+ privateAuctionPath(networkCode, privateAuction) {
1831
+ return this.pathTemplates.privateAuctionPathTemplate.render({
1832
+ network_code: networkCode,
1833
+ private_auction: privateAuction,
1834
+ });
1835
+ }
1836
+ /**
1837
+ * Parse the network_code from PrivateAuction resource.
1838
+ *
1839
+ * @param {string} privateAuctionName
1840
+ * A fully-qualified path representing PrivateAuction resource.
1841
+ * @returns {string} A string representing the network_code.
1842
+ */
1843
+ matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
1844
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
1845
+ }
1846
+ /**
1847
+ * Parse the private_auction from PrivateAuction resource.
1848
+ *
1849
+ * @param {string} privateAuctionName
1850
+ * A fully-qualified path representing PrivateAuction resource.
1851
+ * @returns {string} A string representing the private_auction.
1852
+ */
1853
+ matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
1854
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
1855
+ }
1856
+ /**
1857
+ * Return a fully-qualified privateAuctionDeal resource name string.
1858
+ *
1859
+ * @param {string} network_code
1860
+ * @param {string} private_auction_deal
1861
+ * @returns {string} Resource name string.
1862
+ */
1863
+ privateAuctionDealPath(networkCode, privateAuctionDeal) {
1864
+ return this.pathTemplates.privateAuctionDealPathTemplate.render({
1865
+ network_code: networkCode,
1866
+ private_auction_deal: privateAuctionDeal,
1867
+ });
1868
+ }
1869
+ /**
1870
+ * Parse the network_code from PrivateAuctionDeal resource.
1871
+ *
1872
+ * @param {string} privateAuctionDealName
1873
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1874
+ * @returns {string} A string representing the network_code.
1875
+ */
1876
+ matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
1877
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
1878
+ }
1879
+ /**
1880
+ * Parse the private_auction_deal from PrivateAuctionDeal resource.
1881
+ *
1882
+ * @param {string} privateAuctionDealName
1883
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1884
+ * @returns {string} A string representing the private_auction_deal.
1885
+ */
1886
+ matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
1887
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
1888
+ }
1889
+ /**
1890
+ * Return a fully-qualified programmaticBuyer resource name string.
1891
+ *
1892
+ * @param {string} network_code
1893
+ * @param {string} programmatic_buyer
1894
+ * @returns {string} Resource name string.
1895
+ */
1896
+ programmaticBuyerPath(networkCode, programmaticBuyer) {
1897
+ return this.pathTemplates.programmaticBuyerPathTemplate.render({
1898
+ network_code: networkCode,
1899
+ programmatic_buyer: programmaticBuyer,
1900
+ });
1901
+ }
1902
+ /**
1903
+ * Parse the network_code from ProgrammaticBuyer resource.
1904
+ *
1905
+ * @param {string} programmaticBuyerName
1906
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1907
+ * @returns {string} A string representing the network_code.
1908
+ */
1909
+ matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
1910
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
1911
+ }
1912
+ /**
1913
+ * Parse the programmatic_buyer from ProgrammaticBuyer resource.
1914
+ *
1915
+ * @param {string} programmaticBuyerName
1916
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1917
+ * @returns {string} A string representing the programmatic_buyer.
1918
+ */
1919
+ matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
1920
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
1921
+ }
1922
+ /**
1923
+ * Return a fully-qualified report resource name string.
1924
+ *
1925
+ * @param {string} network_code
1926
+ * @param {string} report
1927
+ * @returns {string} Resource name string.
1928
+ */
1929
+ reportPath(networkCode, report) {
1930
+ return this.pathTemplates.reportPathTemplate.render({
1931
+ network_code: networkCode,
1932
+ report: report,
1933
+ });
1934
+ }
1935
+ /**
1936
+ * Parse the network_code from Report resource.
1937
+ *
1938
+ * @param {string} reportName
1939
+ * A fully-qualified path representing Report resource.
1940
+ * @returns {string} A string representing the network_code.
1941
+ */
1942
+ matchNetworkCodeFromReportName(reportName) {
1943
+ return this.pathTemplates.reportPathTemplate.match(reportName).network_code;
1944
+ }
1945
+ /**
1946
+ * Parse the report from Report resource.
1947
+ *
1948
+ * @param {string} reportName
1949
+ * A fully-qualified path representing Report resource.
1950
+ * @returns {string} A string representing the report.
1951
+ */
1952
+ matchReportFromReportName(reportName) {
1953
+ return this.pathTemplates.reportPathTemplate.match(reportName).report;
1954
+ }
1955
+ /**
1956
+ * Return a fully-qualified role resource name string.
1957
+ *
1958
+ * @param {string} network_code
1959
+ * @param {string} role
1960
+ * @returns {string} Resource name string.
1961
+ */
1962
+ rolePath(networkCode, role) {
1963
+ return this.pathTemplates.rolePathTemplate.render({
1964
+ network_code: networkCode,
1965
+ role: role,
1966
+ });
1967
+ }
1968
+ /**
1969
+ * Parse the network_code from Role resource.
1970
+ *
1971
+ * @param {string} roleName
1972
+ * A fully-qualified path representing Role resource.
1973
+ * @returns {string} A string representing the network_code.
1974
+ */
1975
+ matchNetworkCodeFromRoleName(roleName) {
1976
+ return this.pathTemplates.rolePathTemplate.match(roleName).network_code;
1977
+ }
1978
+ /**
1979
+ * Parse the role from Role resource.
1980
+ *
1981
+ * @param {string} roleName
1982
+ * A fully-qualified path representing Role resource.
1983
+ * @returns {string} A string representing the role.
1984
+ */
1985
+ matchRoleFromRoleName(roleName) {
1986
+ return this.pathTemplates.rolePathTemplate.match(roleName).role;
1987
+ }
1988
+ /**
1989
+ * Return a fully-qualified site resource name string.
1990
+ *
1991
+ * @param {string} network_code
1992
+ * @param {string} site
1993
+ * @returns {string} Resource name string.
1994
+ */
1995
+ sitePath(networkCode, site) {
1996
+ return this.pathTemplates.sitePathTemplate.render({
1997
+ network_code: networkCode,
1998
+ site: site,
1999
+ });
2000
+ }
2001
+ /**
2002
+ * Parse the network_code from Site resource.
2003
+ *
2004
+ * @param {string} siteName
2005
+ * A fully-qualified path representing Site resource.
2006
+ * @returns {string} A string representing the network_code.
2007
+ */
2008
+ matchNetworkCodeFromSiteName(siteName) {
2009
+ return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
2010
+ }
2011
+ /**
2012
+ * Parse the site from Site resource.
2013
+ *
2014
+ * @param {string} siteName
2015
+ * A fully-qualified path representing Site resource.
2016
+ * @returns {string} A string representing the site.
2017
+ */
2018
+ matchSiteFromSiteName(siteName) {
2019
+ return this.pathTemplates.sitePathTemplate.match(siteName).site;
2020
+ }
2021
+ /**
2022
+ * Return a fully-qualified taxonomyCategory resource name string.
2023
+ *
2024
+ * @param {string} network_code
2025
+ * @param {string} taxonomy_category
2026
+ * @returns {string} Resource name string.
2027
+ */
2028
+ taxonomyCategoryPath(networkCode, taxonomyCategory) {
2029
+ return this.pathTemplates.taxonomyCategoryPathTemplate.render({
2030
+ network_code: networkCode,
2031
+ taxonomy_category: taxonomyCategory,
2032
+ });
2033
+ }
2034
+ /**
2035
+ * Parse the network_code from TaxonomyCategory resource.
2036
+ *
2037
+ * @param {string} taxonomyCategoryName
2038
+ * A fully-qualified path representing TaxonomyCategory resource.
2039
+ * @returns {string} A string representing the network_code.
2040
+ */
2041
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName) {
2042
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).network_code;
2043
+ }
2044
+ /**
2045
+ * Parse the taxonomy_category from TaxonomyCategory resource.
2046
+ *
2047
+ * @param {string} taxonomyCategoryName
2048
+ * A fully-qualified path representing TaxonomyCategory resource.
2049
+ * @returns {string} A string representing the taxonomy_category.
2050
+ */
2051
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName) {
2052
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).taxonomy_category;
2053
+ }
2054
+ /**
2055
+ * Return a fully-qualified team resource name string.
2056
+ *
2057
+ * @param {string} network_code
2058
+ * @param {string} team
2059
+ * @returns {string} Resource name string.
2060
+ */
2061
+ teamPath(networkCode, team) {
2062
+ return this.pathTemplates.teamPathTemplate.render({
2063
+ network_code: networkCode,
2064
+ team: team,
2065
+ });
2066
+ }
2067
+ /**
2068
+ * Parse the network_code from Team resource.
2069
+ *
2070
+ * @param {string} teamName
2071
+ * A fully-qualified path representing Team resource.
2072
+ * @returns {string} A string representing the network_code.
2073
+ */
2074
+ matchNetworkCodeFromTeamName(teamName) {
2075
+ return this.pathTemplates.teamPathTemplate.match(teamName).network_code;
2076
+ }
2077
+ /**
2078
+ * Parse the team from Team resource.
2079
+ *
2080
+ * @param {string} teamName
2081
+ * A fully-qualified path representing Team resource.
2082
+ * @returns {string} A string representing the team.
2083
+ */
2084
+ matchTeamFromTeamName(teamName) {
2085
+ return this.pathTemplates.teamPathTemplate.match(teamName).team;
2086
+ }
2087
+ /**
2088
+ * Return a fully-qualified user resource name string.
2089
+ *
2090
+ * @param {string} network_code
2091
+ * @param {string} user
2092
+ * @returns {string} Resource name string.
2093
+ */
2094
+ userPath(networkCode, user) {
2095
+ return this.pathTemplates.userPathTemplate.render({
2096
+ network_code: networkCode,
2097
+ user: user,
2098
+ });
2099
+ }
2100
+ /**
2101
+ * Parse the network_code from User resource.
2102
+ *
2103
+ * @param {string} userName
2104
+ * A fully-qualified path representing User resource.
2105
+ * @returns {string} A string representing the network_code.
2106
+ */
2107
+ matchNetworkCodeFromUserName(userName) {
2108
+ return this.pathTemplates.userPathTemplate.match(userName).network_code;
2109
+ }
2110
+ /**
2111
+ * Parse the user from User resource.
2112
+ *
2113
+ * @param {string} userName
2114
+ * A fully-qualified path representing User resource.
2115
+ * @returns {string} A string representing the user.
2116
+ */
2117
+ matchUserFromUserName(userName) {
2118
+ return this.pathTemplates.userPathTemplate.match(userName).user;
2119
+ }
2120
+ /**
2121
+ * Return a fully-qualified webProperty resource name string.
2122
+ *
2123
+ * @param {string} network_code
2124
+ * @param {string} web_property
2125
+ * @returns {string} Resource name string.
2126
+ */
2127
+ webPropertyPath(networkCode, webProperty) {
2128
+ return this.pathTemplates.webPropertyPathTemplate.render({
2129
+ network_code: networkCode,
2130
+ web_property: webProperty,
2131
+ });
2132
+ }
2133
+ /**
2134
+ * Parse the network_code from WebProperty resource.
2135
+ *
2136
+ * @param {string} webPropertyName
2137
+ * A fully-qualified path representing WebProperty resource.
2138
+ * @returns {string} A string representing the network_code.
2139
+ */
2140
+ matchNetworkCodeFromWebPropertyName(webPropertyName) {
2141
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).network_code;
2142
+ }
2143
+ /**
2144
+ * Parse the web_property from WebProperty resource.
2145
+ *
2146
+ * @param {string} webPropertyName
2147
+ * A fully-qualified path representing WebProperty resource.
2148
+ * @returns {string} A string representing the web_property.
2149
+ */
2150
+ matchWebPropertyFromWebPropertyName(webPropertyName) {
2151
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).web_property;
2152
+ }
2153
+ /**
2154
+ * Terminate the gRPC channel and close the client.
2155
+ *
2156
+ * The client will no longer be usable and all future behavior is undefined.
2157
+ * @returns {Promise} A promise that resolves when the client is closed.
2158
+ */
2159
+ close() {
2160
+ if (this.contactServiceStub && !this._terminated) {
2161
+ return this.contactServiceStub.then(stub => {
2162
+ this._log.info('ending gRPC channel');
2163
+ this._terminated = true;
2164
+ stub.close();
2165
+ });
2166
+ }
2167
+ return Promise.resolve();
2168
+ }
2169
+ }
2170
+ exports.ContactServiceClient = ContactServiceClient;
2171
+ //# sourceMappingURL=contact_service_client.js.map