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

https://gitlab.com/remyvianne/krowkaramel · PHP · 473 lines · 202 code · 56 blank · 215 comment · 0 complexity · 3d71fd87b8f2898c90977e366dcb2042 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 affiliate location extension.
  10. *
  11. * Generated from protobuf message <code>google.ads.googleads.v9.common.AffiliateLocationFeedItem</code>
  12. */
  13. class AffiliateLocationFeedItem extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * The name of the business.
  17. *
  18. * Generated from protobuf field <code>optional string business_name = 11;</code>
  19. */
  20. protected $business_name = null;
  21. /**
  22. * Line 1 of the business address.
  23. *
  24. * Generated from protobuf field <code>optional string address_line_1 = 12;</code>
  25. */
  26. protected $address_line_1 = null;
  27. /**
  28. * Line 2 of the business address.
  29. *
  30. * Generated from protobuf field <code>optional string address_line_2 = 13;</code>
  31. */
  32. protected $address_line_2 = null;
  33. /**
  34. * City of the business address.
  35. *
  36. * Generated from protobuf field <code>optional string city = 14;</code>
  37. */
  38. protected $city = null;
  39. /**
  40. * Province of the business address.
  41. *
  42. * Generated from protobuf field <code>optional string province = 15;</code>
  43. */
  44. protected $province = null;
  45. /**
  46. * Postal code of the business address.
  47. *
  48. * Generated from protobuf field <code>optional string postal_code = 16;</code>
  49. */
  50. protected $postal_code = null;
  51. /**
  52. * Country code of the business address.
  53. *
  54. * Generated from protobuf field <code>optional string country_code = 17;</code>
  55. */
  56. protected $country_code = null;
  57. /**
  58. * Phone number of the business.
  59. *
  60. * Generated from protobuf field <code>optional string phone_number = 18;</code>
  61. */
  62. protected $phone_number = null;
  63. /**
  64. * Id of the retail chain that is advertised as a seller of your product.
  65. *
  66. * Generated from protobuf field <code>optional int64 chain_id = 19;</code>
  67. */
  68. protected $chain_id = null;
  69. /**
  70. * Name of chain.
  71. *
  72. * Generated from protobuf field <code>optional string chain_name = 20;</code>
  73. */
  74. protected $chain_name = null;
  75. /**
  76. * Constructor.
  77. *
  78. * @param array $data {
  79. * Optional. Data for populating the Message object.
  80. *
  81. * @type string $business_name
  82. * The name of the business.
  83. * @type string $address_line_1
  84. * Line 1 of the business address.
  85. * @type string $address_line_2
  86. * Line 2 of the business address.
  87. * @type string $city
  88. * City of the business address.
  89. * @type string $province
  90. * Province of the business address.
  91. * @type string $postal_code
  92. * Postal code of the business address.
  93. * @type string $country_code
  94. * Country code of the business address.
  95. * @type string $phone_number
  96. * Phone number of the business.
  97. * @type int|string $chain_id
  98. * Id of the retail chain that is advertised as a seller of your product.
  99. * @type string $chain_name
  100. * Name of chain.
  101. * }
  102. */
  103. public function __construct($data = NULL) {
  104. \GPBMetadata\Google\Ads\GoogleAds\V9\Common\Extensions::initOnce();
  105. parent::__construct($data);
  106. }
  107. /**
  108. * The name of the business.
  109. *
  110. * Generated from protobuf field <code>optional string business_name = 11;</code>
  111. * @return string
  112. */
  113. public function getBusinessName()
  114. {
  115. return isset($this->business_name) ? $this->business_name : '';
  116. }
  117. public function hasBusinessName()
  118. {
  119. return isset($this->business_name);
  120. }
  121. public function clearBusinessName()
  122. {
  123. unset($this->business_name);
  124. }
  125. /**
  126. * The name of the business.
  127. *
  128. * Generated from protobuf field <code>optional string business_name = 11;</code>
  129. * @param string $var
  130. * @return $this
  131. */
  132. public function setBusinessName($var)
  133. {
  134. GPBUtil::checkString($var, True);
  135. $this->business_name = $var;
  136. return $this;
  137. }
  138. /**
  139. * Line 1 of the business address.
  140. *
  141. * Generated from protobuf field <code>optional string address_line_1 = 12;</code>
  142. * @return string
  143. */
  144. public function getAddressLine1()
  145. {
  146. return isset($this->address_line_1) ? $this->address_line_1 : '';
  147. }
  148. public function hasAddressLine1()
  149. {
  150. return isset($this->address_line_1);
  151. }
  152. public function clearAddressLine1()
  153. {
  154. unset($this->address_line_1);
  155. }
  156. /**
  157. * Line 1 of the business address.
  158. *
  159. * Generated from protobuf field <code>optional string address_line_1 = 12;</code>
  160. * @param string $var
  161. * @return $this
  162. */
  163. public function setAddressLine1($var)
  164. {
  165. GPBUtil::checkString($var, True);
  166. $this->address_line_1 = $var;
  167. return $this;
  168. }
  169. /**
  170. * Line 2 of the business address.
  171. *
  172. * Generated from protobuf field <code>optional string address_line_2 = 13;</code>
  173. * @return string
  174. */
  175. public function getAddressLine2()
  176. {
  177. return isset($this->address_line_2) ? $this->address_line_2 : '';
  178. }
  179. public function hasAddressLine2()
  180. {
  181. return isset($this->address_line_2);
  182. }
  183. public function clearAddressLine2()
  184. {
  185. unset($this->address_line_2);
  186. }
  187. /**
  188. * Line 2 of the business address.
  189. *
  190. * Generated from protobuf field <code>optional string address_line_2 = 13;</code>
  191. * @param string $var
  192. * @return $this
  193. */
  194. public function setAddressLine2($var)
  195. {
  196. GPBUtil::checkString($var, True);
  197. $this->address_line_2 = $var;
  198. return $this;
  199. }
  200. /**
  201. * City of the business address.
  202. *
  203. * Generated from protobuf field <code>optional string city = 14;</code>
  204. * @return string
  205. */
  206. public function getCity()
  207. {
  208. return isset($this->city) ? $this->city : '';
  209. }
  210. public function hasCity()
  211. {
  212. return isset($this->city);
  213. }
  214. public function clearCity()
  215. {
  216. unset($this->city);
  217. }
  218. /**
  219. * City of the business address.
  220. *
  221. * Generated from protobuf field <code>optional string city = 14;</code>
  222. * @param string $var
  223. * @return $this
  224. */
  225. public function setCity($var)
  226. {
  227. GPBUtil::checkString($var, True);
  228. $this->city = $var;
  229. return $this;
  230. }
  231. /**
  232. * Province of the business address.
  233. *
  234. * Generated from protobuf field <code>optional string province = 15;</code>
  235. * @return string
  236. */
  237. public function getProvince()
  238. {
  239. return isset($this->province) ? $this->province : '';
  240. }
  241. public function hasProvince()
  242. {
  243. return isset($this->province);
  244. }
  245. public function clearProvince()
  246. {
  247. unset($this->province);
  248. }
  249. /**
  250. * Province of the business address.
  251. *
  252. * Generated from protobuf field <code>optional string province = 15;</code>
  253. * @param string $var
  254. * @return $this
  255. */
  256. public function setProvince($var)
  257. {
  258. GPBUtil::checkString($var, True);
  259. $this->province = $var;
  260. return $this;
  261. }
  262. /**
  263. * Postal code of the business address.
  264. *
  265. * Generated from protobuf field <code>optional string postal_code = 16;</code>
  266. * @return string
  267. */
  268. public function getPostalCode()
  269. {
  270. return isset($this->postal_code) ? $this->postal_code : '';
  271. }
  272. public function hasPostalCode()
  273. {
  274. return isset($this->postal_code);
  275. }
  276. public function clearPostalCode()
  277. {
  278. unset($this->postal_code);
  279. }
  280. /**
  281. * Postal code of the business address.
  282. *
  283. * Generated from protobuf field <code>optional string postal_code = 16;</code>
  284. * @param string $var
  285. * @return $this
  286. */
  287. public function setPostalCode($var)
  288. {
  289. GPBUtil::checkString($var, True);
  290. $this->postal_code = $var;
  291. return $this;
  292. }
  293. /**
  294. * Country code of the business address.
  295. *
  296. * Generated from protobuf field <code>optional string country_code = 17;</code>
  297. * @return string
  298. */
  299. public function getCountryCode()
  300. {
  301. return isset($this->country_code) ? $this->country_code : '';
  302. }
  303. public function hasCountryCode()
  304. {
  305. return isset($this->country_code);
  306. }
  307. public function clearCountryCode()
  308. {
  309. unset($this->country_code);
  310. }
  311. /**
  312. * Country code of the business address.
  313. *
  314. * Generated from protobuf field <code>optional string country_code = 17;</code>
  315. * @param string $var
  316. * @return $this
  317. */
  318. public function setCountryCode($var)
  319. {
  320. GPBUtil::checkString($var, True);
  321. $this->country_code = $var;
  322. return $this;
  323. }
  324. /**
  325. * Phone number of the business.
  326. *
  327. * Generated from protobuf field <code>optional string phone_number = 18;</code>
  328. * @return string
  329. */
  330. public function getPhoneNumber()
  331. {
  332. return isset($this->phone_number) ? $this->phone_number : '';
  333. }
  334. public function hasPhoneNumber()
  335. {
  336. return isset($this->phone_number);
  337. }
  338. public function clearPhoneNumber()
  339. {
  340. unset($this->phone_number);
  341. }
  342. /**
  343. * Phone number of the business.
  344. *
  345. * Generated from protobuf field <code>optional string phone_number = 18;</code>
  346. * @param string $var
  347. * @return $this
  348. */
  349. public function setPhoneNumber($var)
  350. {
  351. GPBUtil::checkString($var, True);
  352. $this->phone_number = $var;
  353. return $this;
  354. }
  355. /**
  356. * Id of the retail chain that is advertised as a seller of your product.
  357. *
  358. * Generated from protobuf field <code>optional int64 chain_id = 19;</code>
  359. * @return int|string
  360. */
  361. public function getChainId()
  362. {
  363. return isset($this->chain_id) ? $this->chain_id : 0;
  364. }
  365. public function hasChainId()
  366. {
  367. return isset($this->chain_id);
  368. }
  369. public function clearChainId()
  370. {
  371. unset($this->chain_id);
  372. }
  373. /**
  374. * Id of the retail chain that is advertised as a seller of your product.
  375. *
  376. * Generated from protobuf field <code>optional int64 chain_id = 19;</code>
  377. * @param int|string $var
  378. * @return $this
  379. */
  380. public function setChainId($var)
  381. {
  382. GPBUtil::checkInt64($var);
  383. $this->chain_id = $var;
  384. return $this;
  385. }
  386. /**
  387. * Name of chain.
  388. *
  389. * Generated from protobuf field <code>optional string chain_name = 20;</code>
  390. * @return string
  391. */
  392. public function getChainName()
  393. {
  394. return isset($this->chain_name) ? $this->chain_name : '';
  395. }
  396. public function hasChainName()
  397. {
  398. return isset($this->chain_name);
  399. }
  400. public function clearChainName()
  401. {
  402. unset($this->chain_name);
  403. }
  404. /**
  405. * Name of chain.
  406. *
  407. * Generated from protobuf field <code>optional string chain_name = 20;</code>
  408. * @param string $var
  409. * @return $this
  410. */
  411. public function setChainName($var)
  412. {
  413. GPBUtil::checkString($var, True);
  414. $this->chain_name = $var;
  415. return $this;
  416. }
  417. }