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

https://gitlab.com/remyvianne/krowkaramel · PHP · 387 lines · 146 code · 42 blank · 199 comment · 0 complexity · d51e1ee5fefc23b4fcc3d9379bb0e54c MD5 · raw file

  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/ads/googleads/v9/resources/offline_user_data_job.proto
  4. namespace Google\Ads\GoogleAds\V9\Resources;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * A job containing offline user data of store visitors, or user list members
  10. * that will be processed asynchronously. The uploaded data isn't readable and
  11. * the processing results of the job can only be read using
  12. * OfflineUserDataJobService.GetOfflineUserDataJob.
  13. *
  14. * Generated from protobuf message <code>google.ads.googleads.v9.resources.OfflineUserDataJob</code>
  15. */
  16. class OfflineUserDataJob extends \Google\Protobuf\Internal\Message
  17. {
  18. /**
  19. * Immutable. The resource name of the offline user data job.
  20. * Offline user data job resource names have the form:
  21. * `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}`
  22. *
  23. * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
  24. */
  25. protected $resource_name = '';
  26. /**
  27. * Output only. ID of this offline user data job.
  28. *
  29. * Generated from protobuf field <code>optional int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  30. */
  31. protected $id = null;
  32. /**
  33. * Immutable. User specified job ID.
  34. *
  35. * Generated from protobuf field <code>optional int64 external_id = 10 [(.google.api.field_behavior) = IMMUTABLE];</code>
  36. */
  37. protected $external_id = null;
  38. /**
  39. * Immutable. Type of the job.
  40. *
  41. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType type = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
  42. */
  43. protected $type = 0;
  44. /**
  45. * Output only. Status of the job.
  46. *
  47. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  48. */
  49. protected $status = 0;
  50. /**
  51. * Output only. Reason for the processing failure, if status is FAILED.
  52. *
  53. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason failure_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  54. */
  55. protected $failure_reason = 0;
  56. /**
  57. * Output only. Metadata of offline user data job depicting match rate range.
  58. *
  59. * Generated from protobuf field <code>.google.ads.googleads.v9.resources.OfflineUserDataJobMetadata operation_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  60. */
  61. protected $operation_metadata = null;
  62. protected $metadata;
  63. /**
  64. * Constructor.
  65. *
  66. * @param array $data {
  67. * Optional. Data for populating the Message object.
  68. *
  69. * @type string $resource_name
  70. * Immutable. The resource name of the offline user data job.
  71. * Offline user data job resource names have the form:
  72. * `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}`
  73. * @type int|string $id
  74. * Output only. ID of this offline user data job.
  75. * @type int|string $external_id
  76. * Immutable. User specified job ID.
  77. * @type int $type
  78. * Immutable. Type of the job.
  79. * @type int $status
  80. * Output only. Status of the job.
  81. * @type int $failure_reason
  82. * Output only. Reason for the processing failure, if status is FAILED.
  83. * @type \Google\Ads\GoogleAds\V9\Resources\OfflineUserDataJobMetadata $operation_metadata
  84. * Output only. Metadata of offline user data job depicting match rate range.
  85. * @type \Google\Ads\GoogleAds\V9\Common\CustomerMatchUserListMetadata $customer_match_user_list_metadata
  86. * Immutable. Metadata for data updates to a CRM-based user list.
  87. * @type \Google\Ads\GoogleAds\V9\Common\StoreSalesMetadata $store_sales_metadata
  88. * Immutable. Metadata for store sales data update.
  89. * }
  90. */
  91. public function __construct($data = NULL) {
  92. \GPBMetadata\Google\Ads\GoogleAds\V9\Resources\OfflineUserDataJob::initOnce();
  93. parent::__construct($data);
  94. }
  95. /**
  96. * Immutable. The resource name of the offline user data job.
  97. * Offline user data job resource names have the form:
  98. * `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}`
  99. *
  100. * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
  101. * @return string
  102. */
  103. public function getResourceName()
  104. {
  105. return $this->resource_name;
  106. }
  107. /**
  108. * Immutable. The resource name of the offline user data job.
  109. * Offline user data job resource names have the form:
  110. * `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}`
  111. *
  112. * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
  113. * @param string $var
  114. * @return $this
  115. */
  116. public function setResourceName($var)
  117. {
  118. GPBUtil::checkString($var, True);
  119. $this->resource_name = $var;
  120. return $this;
  121. }
  122. /**
  123. * Output only. ID of this offline user data job.
  124. *
  125. * Generated from protobuf field <code>optional int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  126. * @return int|string
  127. */
  128. public function getId()
  129. {
  130. return isset($this->id) ? $this->id : 0;
  131. }
  132. public function hasId()
  133. {
  134. return isset($this->id);
  135. }
  136. public function clearId()
  137. {
  138. unset($this->id);
  139. }
  140. /**
  141. * Output only. ID of this offline user data job.
  142. *
  143. * Generated from protobuf field <code>optional int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  144. * @param int|string $var
  145. * @return $this
  146. */
  147. public function setId($var)
  148. {
  149. GPBUtil::checkInt64($var);
  150. $this->id = $var;
  151. return $this;
  152. }
  153. /**
  154. * Immutable. User specified job ID.
  155. *
  156. * Generated from protobuf field <code>optional int64 external_id = 10 [(.google.api.field_behavior) = IMMUTABLE];</code>
  157. * @return int|string
  158. */
  159. public function getExternalId()
  160. {
  161. return isset($this->external_id) ? $this->external_id : 0;
  162. }
  163. public function hasExternalId()
  164. {
  165. return isset($this->external_id);
  166. }
  167. public function clearExternalId()
  168. {
  169. unset($this->external_id);
  170. }
  171. /**
  172. * Immutable. User specified job ID.
  173. *
  174. * Generated from protobuf field <code>optional int64 external_id = 10 [(.google.api.field_behavior) = IMMUTABLE];</code>
  175. * @param int|string $var
  176. * @return $this
  177. */
  178. public function setExternalId($var)
  179. {
  180. GPBUtil::checkInt64($var);
  181. $this->external_id = $var;
  182. return $this;
  183. }
  184. /**
  185. * Immutable. Type of the job.
  186. *
  187. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType type = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
  188. * @return int
  189. */
  190. public function getType()
  191. {
  192. return $this->type;
  193. }
  194. /**
  195. * Immutable. Type of the job.
  196. *
  197. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType type = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
  198. * @param int $var
  199. * @return $this
  200. */
  201. public function setType($var)
  202. {
  203. GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V9\Enums\OfflineUserDataJobTypeEnum\OfflineUserDataJobType::class);
  204. $this->type = $var;
  205. return $this;
  206. }
  207. /**
  208. * Output only. Status of the job.
  209. *
  210. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  211. * @return int
  212. */
  213. public function getStatus()
  214. {
  215. return $this->status;
  216. }
  217. /**
  218. * Output only. Status of the job.
  219. *
  220. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  221. * @param int $var
  222. * @return $this
  223. */
  224. public function setStatus($var)
  225. {
  226. GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V9\Enums\OfflineUserDataJobStatusEnum\OfflineUserDataJobStatus::class);
  227. $this->status = $var;
  228. return $this;
  229. }
  230. /**
  231. * Output only. Reason for the processing failure, if status is FAILED.
  232. *
  233. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason failure_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  234. * @return int
  235. */
  236. public function getFailureReason()
  237. {
  238. return $this->failure_reason;
  239. }
  240. /**
  241. * Output only. Reason for the processing failure, if status is FAILED.
  242. *
  243. * Generated from protobuf field <code>.google.ads.googleads.v9.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason failure_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  244. * @param int $var
  245. * @return $this
  246. */
  247. public function setFailureReason($var)
  248. {
  249. GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V9\Enums\OfflineUserDataJobFailureReasonEnum\OfflineUserDataJobFailureReason::class);
  250. $this->failure_reason = $var;
  251. return $this;
  252. }
  253. /**
  254. * Output only. Metadata of offline user data job depicting match rate range.
  255. *
  256. * Generated from protobuf field <code>.google.ads.googleads.v9.resources.OfflineUserDataJobMetadata operation_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  257. * @return \Google\Ads\GoogleAds\V9\Resources\OfflineUserDataJobMetadata|null
  258. */
  259. public function getOperationMetadata()
  260. {
  261. return $this->operation_metadata;
  262. }
  263. public function hasOperationMetadata()
  264. {
  265. return isset($this->operation_metadata);
  266. }
  267. public function clearOperationMetadata()
  268. {
  269. unset($this->operation_metadata);
  270. }
  271. /**
  272. * Output only. Metadata of offline user data job depicting match rate range.
  273. *
  274. * Generated from protobuf field <code>.google.ads.googleads.v9.resources.OfflineUserDataJobMetadata operation_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
  275. * @param \Google\Ads\GoogleAds\V9\Resources\OfflineUserDataJobMetadata $var
  276. * @return $this
  277. */
  278. public function setOperationMetadata($var)
  279. {
  280. GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V9\Resources\OfflineUserDataJobMetadata::class);
  281. $this->operation_metadata = $var;
  282. return $this;
  283. }
  284. /**
  285. * Immutable. Metadata for data updates to a CRM-based user list.
  286. *
  287. * Generated from protobuf field <code>.google.ads.googleads.v9.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 7 [(.google.api.field_behavior) = IMMUTABLE];</code>
  288. * @return \Google\Ads\GoogleAds\V9\Common\CustomerMatchUserListMetadata|null
  289. */
  290. public function getCustomerMatchUserListMetadata()
  291. {
  292. return $this->readOneof(7);
  293. }
  294. public function hasCustomerMatchUserListMetadata()
  295. {
  296. return $this->hasOneof(7);
  297. }
  298. /**
  299. * Immutable. Metadata for data updates to a CRM-based user list.
  300. *
  301. * Generated from protobuf field <code>.google.ads.googleads.v9.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 7 [(.google.api.field_behavior) = IMMUTABLE];</code>
  302. * @param \Google\Ads\GoogleAds\V9\Common\CustomerMatchUserListMetadata $var
  303. * @return $this
  304. */
  305. public function setCustomerMatchUserListMetadata($var)
  306. {
  307. GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V9\Common\CustomerMatchUserListMetadata::class);
  308. $this->writeOneof(7, $var);
  309. return $this;
  310. }
  311. /**
  312. * Immutable. Metadata for store sales data update.
  313. *
  314. * Generated from protobuf field <code>.google.ads.googleads.v9.common.StoreSalesMetadata store_sales_metadata = 8 [(.google.api.field_behavior) = IMMUTABLE];</code>
  315. * @return \Google\Ads\GoogleAds\V9\Common\StoreSalesMetadata|null
  316. */
  317. public function getStoreSalesMetadata()
  318. {
  319. return $this->readOneof(8);
  320. }
  321. public function hasStoreSalesMetadata()
  322. {
  323. return $this->hasOneof(8);
  324. }
  325. /**
  326. * Immutable. Metadata for store sales data update.
  327. *
  328. * Generated from protobuf field <code>.google.ads.googleads.v9.common.StoreSalesMetadata store_sales_metadata = 8 [(.google.api.field_behavior) = IMMUTABLE];</code>
  329. * @param \Google\Ads\GoogleAds\V9\Common\StoreSalesMetadata $var
  330. * @return $this
  331. */
  332. public function setStoreSalesMetadata($var)
  333. {
  334. GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V9\Common\StoreSalesMetadata::class);
  335. $this->writeOneof(8, $var);
  336. return $this;
  337. }
  338. /**
  339. * @return string
  340. */
  341. public function getMetadata()
  342. {
  343. return $this->whichOneof("metadata");
  344. }
  345. }