/wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V9/Common/AppFeedItem.php

https://gitlab.com/remyvianne/krowkaramel · PHP · 373 lines · 132 code · 38 blank · 203 comment · 0 complexity · f52c2707d0772d4b672d1b0489141572 MD5 · raw file

  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/ads/googleads/v9/common/extensions.proto
  4. namespace Google\Ads\GoogleAds\V9\Common;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Represents an App extension.
  10. *
  11. * Generated from protobuf message <code>google.ads.googleads.v9.common.AppFeedItem</code>
  12. */
  13. class AppFeedItem extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * The visible text displayed when the link is rendered in an ad.
  17. * This string must not be empty, and the length of this string should
  18. * be between 1 and 25, inclusive.
  19. *
  20. * Generated from protobuf field <code>optional string link_text = 9;</code>
  21. */
  22. protected $link_text = null;
  23. /**
  24. * The store-specific ID for the target application.
  25. * This string must not be empty.
  26. *
  27. * Generated from protobuf field <code>optional string app_id = 10;</code>
  28. */
  29. protected $app_id = null;
  30. /**
  31. * The application store that the target application belongs to.
  32. * This field is required.
  33. *
  34. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.AppStoreEnum.AppStore app_store = 3;</code>
  35. */
  36. protected $app_store = 0;
  37. /**
  38. * A list of possible final URLs after all cross domain redirects.
  39. * This list must not be empty.
  40. *
  41. * Generated from protobuf field <code>repeated string final_urls = 11;</code>
  42. */
  43. private $final_urls;
  44. /**
  45. * A list of possible final mobile URLs after all cross domain redirects.
  46. *
  47. * Generated from protobuf field <code>repeated string final_mobile_urls = 12;</code>
  48. */
  49. private $final_mobile_urls;
  50. /**
  51. * URL template for constructing a tracking URL. Default value is "{lpurl}".
  52. *
  53. * Generated from protobuf field <code>optional string tracking_url_template = 13;</code>
  54. */
  55. protected $tracking_url_template = null;
  56. /**
  57. * A list of mappings to be used for substituting URL custom parameter tags in
  58. * the tracking_url_template, final_urls, and/or final_mobile_urls.
  59. *
  60. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.CustomParameter url_custom_parameters = 7;</code>
  61. */
  62. private $url_custom_parameters;
  63. /**
  64. * URL template for appending params to landing page URLs served with parallel
  65. * tracking.
  66. *
  67. * Generated from protobuf field <code>optional string final_url_suffix = 14;</code>
  68. */
  69. protected $final_url_suffix = null;
  70. /**
  71. * Constructor.
  72. *
  73. * @param array $data {
  74. * Optional. Data for populating the Message object.
  75. *
  76. * @type string $link_text
  77. * The visible text displayed when the link is rendered in an ad.
  78. * This string must not be empty, and the length of this string should
  79. * be between 1 and 25, inclusive.
  80. * @type string $app_id
  81. * The store-specific ID for the target application.
  82. * This string must not be empty.
  83. * @type int $app_store
  84. * The application store that the target application belongs to.
  85. * This field is required.
  86. * @type string[]|\Google\Protobuf\Internal\RepeatedField $final_urls
  87. * A list of possible final URLs after all cross domain redirects.
  88. * This list must not be empty.
  89. * @type string[]|\Google\Protobuf\Internal\RepeatedField $final_mobile_urls
  90. * A list of possible final mobile URLs after all cross domain redirects.
  91. * @type string $tracking_url_template
  92. * URL template for constructing a tracking URL. Default value is "{lpurl}".
  93. * @type \Google\Ads\GoogleAds\V9\Common\CustomParameter[]|\Google\Protobuf\Internal\RepeatedField $url_custom_parameters
  94. * A list of mappings to be used for substituting URL custom parameter tags in
  95. * the tracking_url_template, final_urls, and/or final_mobile_urls.
  96. * @type string $final_url_suffix
  97. * URL template for appending params to landing page URLs served with parallel
  98. * tracking.
  99. * }
  100. */
  101. public function __construct($data = NULL) {
  102. \GPBMetadata\Google\Ads\GoogleAds\V9\Common\Extensions::initOnce();
  103. parent::__construct($data);
  104. }
  105. /**
  106. * The visible text displayed when the link is rendered in an ad.
  107. * This string must not be empty, and the length of this string should
  108. * be between 1 and 25, inclusive.
  109. *
  110. * Generated from protobuf field <code>optional string link_text = 9;</code>
  111. * @return string
  112. */
  113. public function getLinkText()
  114. {
  115. return isset($this->link_text) ? $this->link_text : '';
  116. }
  117. public function hasLinkText()
  118. {
  119. return isset($this->link_text);
  120. }
  121. public function clearLinkText()
  122. {
  123. unset($this->link_text);
  124. }
  125. /**
  126. * The visible text displayed when the link is rendered in an ad.
  127. * This string must not be empty, and the length of this string should
  128. * be between 1 and 25, inclusive.
  129. *
  130. * Generated from protobuf field <code>optional string link_text = 9;</code>
  131. * @param string $var
  132. * @return $this
  133. */
  134. public function setLinkText($var)
  135. {
  136. GPBUtil::checkString($var, True);
  137. $this->link_text = $var;
  138. return $this;
  139. }
  140. /**
  141. * The store-specific ID for the target application.
  142. * This string must not be empty.
  143. *
  144. * Generated from protobuf field <code>optional string app_id = 10;</code>
  145. * @return string
  146. */
  147. public function getAppId()
  148. {
  149. return isset($this->app_id) ? $this->app_id : '';
  150. }
  151. public function hasAppId()
  152. {
  153. return isset($this->app_id);
  154. }
  155. public function clearAppId()
  156. {
  157. unset($this->app_id);
  158. }
  159. /**
  160. * The store-specific ID for the target application.
  161. * This string must not be empty.
  162. *
  163. * Generated from protobuf field <code>optional string app_id = 10;</code>
  164. * @param string $var
  165. * @return $this
  166. */
  167. public function setAppId($var)
  168. {
  169. GPBUtil::checkString($var, True);
  170. $this->app_id = $var;
  171. return $this;
  172. }
  173. /**
  174. * The application store that the target application belongs to.
  175. * This field is required.
  176. *
  177. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.AppStoreEnum.AppStore app_store = 3;</code>
  178. * @return int
  179. */
  180. public function getAppStore()
  181. {
  182. return $this->app_store;
  183. }
  184. /**
  185. * The application store that the target application belongs to.
  186. * This field is required.
  187. *
  188. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.AppStoreEnum.AppStore app_store = 3;</code>
  189. * @param int $var
  190. * @return $this
  191. */
  192. public function setAppStore($var)
  193. {
  194. GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V9\Enums\AppStoreEnum\AppStore::class);
  195. $this->app_store = $var;
  196. return $this;
  197. }
  198. /**
  199. * A list of possible final URLs after all cross domain redirects.
  200. * This list must not be empty.
  201. *
  202. * Generated from protobuf field <code>repeated string final_urls = 11;</code>
  203. * @return \Google\Protobuf\Internal\RepeatedField
  204. */
  205. public function getFinalUrls()
  206. {
  207. return $this->final_urls;
  208. }
  209. /**
  210. * A list of possible final URLs after all cross domain redirects.
  211. * This list must not be empty.
  212. *
  213. * Generated from protobuf field <code>repeated string final_urls = 11;</code>
  214. * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
  215. * @return $this
  216. */
  217. public function setFinalUrls($var)
  218. {
  219. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  220. $this->final_urls = $arr;
  221. return $this;
  222. }
  223. /**
  224. * A list of possible final mobile URLs after all cross domain redirects.
  225. *
  226. * Generated from protobuf field <code>repeated string final_mobile_urls = 12;</code>
  227. * @return \Google\Protobuf\Internal\RepeatedField
  228. */
  229. public function getFinalMobileUrls()
  230. {
  231. return $this->final_mobile_urls;
  232. }
  233. /**
  234. * A list of possible final mobile URLs after all cross domain redirects.
  235. *
  236. * Generated from protobuf field <code>repeated string final_mobile_urls = 12;</code>
  237. * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
  238. * @return $this
  239. */
  240. public function setFinalMobileUrls($var)
  241. {
  242. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  243. $this->final_mobile_urls = $arr;
  244. return $this;
  245. }
  246. /**
  247. * URL template for constructing a tracking URL. Default value is "{lpurl}".
  248. *
  249. * Generated from protobuf field <code>optional string tracking_url_template = 13;</code>
  250. * @return string
  251. */
  252. public function getTrackingUrlTemplate()
  253. {
  254. return isset($this->tracking_url_template) ? $this->tracking_url_template : '';
  255. }
  256. public function hasTrackingUrlTemplate()
  257. {
  258. return isset($this->tracking_url_template);
  259. }
  260. public function clearTrackingUrlTemplate()
  261. {
  262. unset($this->tracking_url_template);
  263. }
  264. /**
  265. * URL template for constructing a tracking URL. Default value is "{lpurl}".
  266. *
  267. * Generated from protobuf field <code>optional string tracking_url_template = 13;</code>
  268. * @param string $var
  269. * @return $this
  270. */
  271. public function setTrackingUrlTemplate($var)
  272. {
  273. GPBUtil::checkString($var, True);
  274. $this->tracking_url_template = $var;
  275. return $this;
  276. }
  277. /**
  278. * A list of mappings to be used for substituting URL custom parameter tags in
  279. * the tracking_url_template, final_urls, and/or final_mobile_urls.
  280. *
  281. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.CustomParameter url_custom_parameters = 7;</code>
  282. * @return \Google\Protobuf\Internal\RepeatedField
  283. */
  284. public function getUrlCustomParameters()
  285. {
  286. return $this->url_custom_parameters;
  287. }
  288. /**
  289. * A list of mappings to be used for substituting URL custom parameter tags in
  290. * the tracking_url_template, final_urls, and/or final_mobile_urls.
  291. *
  292. * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.CustomParameter url_custom_parameters = 7;</code>
  293. * @param \Google\Ads\GoogleAds\V9\Common\CustomParameter[]|\Google\Protobuf\Internal\RepeatedField $var
  294. * @return $this
  295. */
  296. public function setUrlCustomParameters($var)
  297. {
  298. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\CustomParameter::class);
  299. $this->url_custom_parameters = $arr;
  300. return $this;
  301. }
  302. /**
  303. * URL template for appending params to landing page URLs served with parallel
  304. * tracking.
  305. *
  306. * Generated from protobuf field <code>optional string final_url_suffix = 14;</code>
  307. * @return string
  308. */
  309. public function getFinalUrlSuffix()
  310. {
  311. return isset($this->final_url_suffix) ? $this->final_url_suffix : '';
  312. }
  313. public function hasFinalUrlSuffix()
  314. {
  315. return isset($this->final_url_suffix);
  316. }
  317. public function clearFinalUrlSuffix()
  318. {
  319. unset($this->final_url_suffix);
  320. }
  321. /**
  322. * URL template for appending params to landing page URLs served with parallel
  323. * tracking.
  324. *
  325. * Generated from protobuf field <code>optional string final_url_suffix = 14;</code>
  326. * @param string $var
  327. * @return $this
  328. */
  329. public function setFinalUrlSuffix($var)
  330. {
  331. GPBUtil::checkString($var, True);
  332. $this->final_url_suffix = $var;
  333. return $this;
  334. }
  335. }