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

https://gitlab.com/remyvianne/krowkaramel · PHP · 385 lines · 164 code · 46 blank · 175 comment · 0 complexity · 5930791e1e48f838268808ba0a4c075e 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 a location extension.
  10. *
  11. * Generated from protobuf message <code>google.ads.googleads.v9.common.LocationFeedItem</code>
  12. */
  13. class LocationFeedItem extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * The name of the business.
  17. *
  18. * Generated from protobuf field <code>optional string business_name = 9;</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 = 10;</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 = 11;</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 = 12;</code>
  37. */
  38. protected $city = null;
  39. /**
  40. * Province of the business address.
  41. *
  42. * Generated from protobuf field <code>optional string province = 13;</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 = 14;</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 = 15;</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 = 16;</code>
  61. */
  62. protected $phone_number = null;
  63. /**
  64. * Constructor.
  65. *
  66. * @param array $data {
  67. * Optional. Data for populating the Message object.
  68. *
  69. * @type string $business_name
  70. * The name of the business.
  71. * @type string $address_line_1
  72. * Line 1 of the business address.
  73. * @type string $address_line_2
  74. * Line 2 of the business address.
  75. * @type string $city
  76. * City of the business address.
  77. * @type string $province
  78. * Province of the business address.
  79. * @type string $postal_code
  80. * Postal code of the business address.
  81. * @type string $country_code
  82. * Country code of the business address.
  83. * @type string $phone_number
  84. * Phone number of the business.
  85. * }
  86. */
  87. public function __construct($data = NULL) {
  88. \GPBMetadata\Google\Ads\GoogleAds\V9\Common\Extensions::initOnce();
  89. parent::__construct($data);
  90. }
  91. /**
  92. * The name of the business.
  93. *
  94. * Generated from protobuf field <code>optional string business_name = 9;</code>
  95. * @return string
  96. */
  97. public function getBusinessName()
  98. {
  99. return isset($this->business_name) ? $this->business_name : '';
  100. }
  101. public function hasBusinessName()
  102. {
  103. return isset($this->business_name);
  104. }
  105. public function clearBusinessName()
  106. {
  107. unset($this->business_name);
  108. }
  109. /**
  110. * The name of the business.
  111. *
  112. * Generated from protobuf field <code>optional string business_name = 9;</code>
  113. * @param string $var
  114. * @return $this
  115. */
  116. public function setBusinessName($var)
  117. {
  118. GPBUtil::checkString($var, True);
  119. $this->business_name = $var;
  120. return $this;
  121. }
  122. /**
  123. * Line 1 of the business address.
  124. *
  125. * Generated from protobuf field <code>optional string address_line_1 = 10;</code>
  126. * @return string
  127. */
  128. public function getAddressLine1()
  129. {
  130. return isset($this->address_line_1) ? $this->address_line_1 : '';
  131. }
  132. public function hasAddressLine1()
  133. {
  134. return isset($this->address_line_1);
  135. }
  136. public function clearAddressLine1()
  137. {
  138. unset($this->address_line_1);
  139. }
  140. /**
  141. * Line 1 of the business address.
  142. *
  143. * Generated from protobuf field <code>optional string address_line_1 = 10;</code>
  144. * @param string $var
  145. * @return $this
  146. */
  147. public function setAddressLine1($var)
  148. {
  149. GPBUtil::checkString($var, True);
  150. $this->address_line_1 = $var;
  151. return $this;
  152. }
  153. /**
  154. * Line 2 of the business address.
  155. *
  156. * Generated from protobuf field <code>optional string address_line_2 = 11;</code>
  157. * @return string
  158. */
  159. public function getAddressLine2()
  160. {
  161. return isset($this->address_line_2) ? $this->address_line_2 : '';
  162. }
  163. public function hasAddressLine2()
  164. {
  165. return isset($this->address_line_2);
  166. }
  167. public function clearAddressLine2()
  168. {
  169. unset($this->address_line_2);
  170. }
  171. /**
  172. * Line 2 of the business address.
  173. *
  174. * Generated from protobuf field <code>optional string address_line_2 = 11;</code>
  175. * @param string $var
  176. * @return $this
  177. */
  178. public function setAddressLine2($var)
  179. {
  180. GPBUtil::checkString($var, True);
  181. $this->address_line_2 = $var;
  182. return $this;
  183. }
  184. /**
  185. * City of the business address.
  186. *
  187. * Generated from protobuf field <code>optional string city = 12;</code>
  188. * @return string
  189. */
  190. public function getCity()
  191. {
  192. return isset($this->city) ? $this->city : '';
  193. }
  194. public function hasCity()
  195. {
  196. return isset($this->city);
  197. }
  198. public function clearCity()
  199. {
  200. unset($this->city);
  201. }
  202. /**
  203. * City of the business address.
  204. *
  205. * Generated from protobuf field <code>optional string city = 12;</code>
  206. * @param string $var
  207. * @return $this
  208. */
  209. public function setCity($var)
  210. {
  211. GPBUtil::checkString($var, True);
  212. $this->city = $var;
  213. return $this;
  214. }
  215. /**
  216. * Province of the business address.
  217. *
  218. * Generated from protobuf field <code>optional string province = 13;</code>
  219. * @return string
  220. */
  221. public function getProvince()
  222. {
  223. return isset($this->province) ? $this->province : '';
  224. }
  225. public function hasProvince()
  226. {
  227. return isset($this->province);
  228. }
  229. public function clearProvince()
  230. {
  231. unset($this->province);
  232. }
  233. /**
  234. * Province of the business address.
  235. *
  236. * Generated from protobuf field <code>optional string province = 13;</code>
  237. * @param string $var
  238. * @return $this
  239. */
  240. public function setProvince($var)
  241. {
  242. GPBUtil::checkString($var, True);
  243. $this->province = $var;
  244. return $this;
  245. }
  246. /**
  247. * Postal code of the business address.
  248. *
  249. * Generated from protobuf field <code>optional string postal_code = 14;</code>
  250. * @return string
  251. */
  252. public function getPostalCode()
  253. {
  254. return isset($this->postal_code) ? $this->postal_code : '';
  255. }
  256. public function hasPostalCode()
  257. {
  258. return isset($this->postal_code);
  259. }
  260. public function clearPostalCode()
  261. {
  262. unset($this->postal_code);
  263. }
  264. /**
  265. * Postal code of the business address.
  266. *
  267. * Generated from protobuf field <code>optional string postal_code = 14;</code>
  268. * @param string $var
  269. * @return $this
  270. */
  271. public function setPostalCode($var)
  272. {
  273. GPBUtil::checkString($var, True);
  274. $this->postal_code = $var;
  275. return $this;
  276. }
  277. /**
  278. * Country code of the business address.
  279. *
  280. * Generated from protobuf field <code>optional string country_code = 15;</code>
  281. * @return string
  282. */
  283. public function getCountryCode()
  284. {
  285. return isset($this->country_code) ? $this->country_code : '';
  286. }
  287. public function hasCountryCode()
  288. {
  289. return isset($this->country_code);
  290. }
  291. public function clearCountryCode()
  292. {
  293. unset($this->country_code);
  294. }
  295. /**
  296. * Country code of the business address.
  297. *
  298. * Generated from protobuf field <code>optional string country_code = 15;</code>
  299. * @param string $var
  300. * @return $this
  301. */
  302. public function setCountryCode($var)
  303. {
  304. GPBUtil::checkString($var, True);
  305. $this->country_code = $var;
  306. return $this;
  307. }
  308. /**
  309. * Phone number of the business.
  310. *
  311. * Generated from protobuf field <code>optional string phone_number = 16;</code>
  312. * @return string
  313. */
  314. public function getPhoneNumber()
  315. {
  316. return isset($this->phone_number) ? $this->phone_number : '';
  317. }
  318. public function hasPhoneNumber()
  319. {
  320. return isset($this->phone_number);
  321. }
  322. public function clearPhoneNumber()
  323. {
  324. unset($this->phone_number);
  325. }
  326. /**
  327. * Phone number of the business.
  328. *
  329. * Generated from protobuf field <code>optional string phone_number = 16;</code>
  330. * @param string $var
  331. * @return $this
  332. */
  333. public function setPhoneNumber($var)
  334. {
  335. GPBUtil::checkString($var, True);
  336. $this->phone_number = $var;
  337. return $this;
  338. }
  339. }