/wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V9/Common/UserAttribute.php
https://gitlab.com/remyvianne/krowkaramel · PHP · 346 lines · 113 code · 33 blank · 200 comment · 0 complexity · 0ed1cc1664eb20c028bc166a8e94fc84 MD5 · raw file
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: google/ads/googleads/v9/common/offline_user_data.proto
- namespace Google\Ads\GoogleAds\V9\Common;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * User attribute, can only be used with CUSTOMER_MATCH_WITH_ATTRIBUTES job
- * type.
- *
- * Generated from protobuf message <code>google.ads.googleads.v9.common.UserAttribute</code>
- */
- class UserAttribute extends \Google\Protobuf\Internal\Message
- {
- /**
- * Advertiser defined lifetime value for the user.
- *
- * Generated from protobuf field <code>optional int64 lifetime_value_micros = 1;</code>
- */
- protected $lifetime_value_micros = null;
- /**
- * Advertiser defined lifetime value bucket for the user. The valid range for
- * a lifetime value bucket is from 1 (low) to 10 (high), except for remove
- * operation where 0 will also be accepted.
- *
- * Generated from protobuf field <code>optional int32 lifetime_value_bucket = 2;</code>
- */
- protected $lifetime_value_bucket = null;
- /**
- * Timestamp of the last purchase made by the user.
- * The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
- * optional timezone offset from UTC. If the offset is absent, the API will
- * use the account's timezone as default.
- *
- * Generated from protobuf field <code>string last_purchase_date_time = 3;</code>
- */
- protected $last_purchase_date_time = '';
- /**
- * Advertiser defined average number of purchases that are made by the user in
- * a 30 day period.
- *
- * Generated from protobuf field <code>int32 average_purchase_count = 4;</code>
- */
- protected $average_purchase_count = 0;
- /**
- * Advertiser defined average purchase value in micros for the user.
- *
- * Generated from protobuf field <code>int64 average_purchase_value_micros = 5;</code>
- */
- protected $average_purchase_value_micros = 0;
- /**
- * Timestamp when the user was acquired.
- * The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
- * optional timezone offset from UTC. If the offset is absent, the API will
- * use the account's timezone as default.
- *
- * Generated from protobuf field <code>string acquisition_date_time = 6;</code>
- */
- protected $acquisition_date_time = '';
- /**
- * The shopping loyalty related data. Shopping utilizes this data to provide
- * users with a better experience. Accessible only to merchants on the
- * allow-list with users’ consent.
- *
- * Generated from protobuf field <code>optional .google.ads.googleads.v9.common.ShoppingLoyalty shopping_loyalty = 7;</code>
- */
- protected $shopping_loyalty = null;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $lifetime_value_micros
- * Advertiser defined lifetime value for the user.
- * @type int $lifetime_value_bucket
- * Advertiser defined lifetime value bucket for the user. The valid range for
- * a lifetime value bucket is from 1 (low) to 10 (high), except for remove
- * operation where 0 will also be accepted.
- * @type string $last_purchase_date_time
- * Timestamp of the last purchase made by the user.
- * The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
- * optional timezone offset from UTC. If the offset is absent, the API will
- * use the account's timezone as default.
- * @type int $average_purchase_count
- * Advertiser defined average number of purchases that are made by the user in
- * a 30 day period.
- * @type int|string $average_purchase_value_micros
- * Advertiser defined average purchase value in micros for the user.
- * @type string $acquisition_date_time
- * Timestamp when the user was acquired.
- * The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
- * optional timezone offset from UTC. If the offset is absent, the API will
- * use the account's timezone as default.
- * @type \Google\Ads\GoogleAds\V9\Common\ShoppingLoyalty $shopping_loyalty
- * The shopping loyalty related data. Shopping utilizes this data to provide
- * users with a better experience. Accessible only to merchants on the
- * allow-list with users’ consent.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Ads\GoogleAds\V9\Common\OfflineUserData::initOnce();
- parent::__construct($data);
- }
- /**
- * Advertiser defined lifetime value for the user.
- *
- * Generated from protobuf field <code>optional int64 lifetime_value_micros = 1;</code>
- * @return int|string
- */
- public function getLifetimeValueMicros()
- {
- return isset($this->lifetime_value_micros) ? $this->lifetime_value_micros : 0;
- }
- public function hasLifetimeValueMicros()
- {
- return isset($this->lifetime_value_micros);
- }
- public function clearLifetimeValueMicros()
- {
- unset($this->lifetime_value_micros);
- }
- /**
- * Advertiser defined lifetime value for the user.
- *
- * Generated from protobuf field <code>optional int64 lifetime_value_micros = 1;</code>
- * @param int|string $var
- * @return $this
- */
- public function setLifetimeValueMicros($var)
- {
- GPBUtil::checkInt64($var);
- $this->lifetime_value_micros = $var;
- return $this;
- }
- /**
- * Advertiser defined lifetime value bucket for the user. The valid range for
- * a lifetime value bucket is from 1 (low) to 10 (high), except for remove
- * operation where 0 will also be accepted.
- *
- * Generated from protobuf field <code>optional int32 lifetime_value_bucket = 2;</code>
- * @return int
- */
- public function getLifetimeValueBucket()
- {
- return isset($this->lifetime_value_bucket) ? $this->lifetime_value_bucket : 0;
- }
- public function hasLifetimeValueBucket()
- {
- return isset($this->lifetime_value_bucket);
- }
- public function clearLifetimeValueBucket()
- {
- unset($this->lifetime_value_bucket);
- }
- /**
- * Advertiser defined lifetime value bucket for the user. The valid range for
- * a lifetime value bucket is from 1 (low) to 10 (high), except for remove
- * operation where 0 will also be accepted.
- *
- * Generated from protobuf field <code>optional int32 lifetime_value_bucket = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setLifetimeValueBucket($var)
- {
- GPBUtil::checkInt32($var);
- $this->lifetime_value_bucket = $var;
- return $this;
- }
- /**
- * Timestamp of the last purchase made by the user.
- * The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
- * optional timezone offset from UTC. If the offset is absent, the API will
- * use the account's timezone as default.
- *
- * Generated from protobuf field <code>string last_purchase_date_time = 3;</code>
- * @return string
- */
- public function getLastPurchaseDateTime()
- {
- return $this->last_purchase_date_time;
- }
- /**
- * Timestamp of the last purchase made by the user.
- * The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
- * optional timezone offset from UTC. If the offset is absent, the API will
- * use the account's timezone as default.
- *
- * Generated from protobuf field <code>string last_purchase_date_time = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setLastPurchaseDateTime($var)
- {
- GPBUtil::checkString($var, True);
- $this->last_purchase_date_time = $var;
- return $this;
- }
- /**
- * Advertiser defined average number of purchases that are made by the user in
- * a 30 day period.
- *
- * Generated from protobuf field <code>int32 average_purchase_count = 4;</code>
- * @return int
- */
- public function getAveragePurchaseCount()
- {
- return $this->average_purchase_count;
- }
- /**
- * Advertiser defined average number of purchases that are made by the user in
- * a 30 day period.
- *
- * Generated from protobuf field <code>int32 average_purchase_count = 4;</code>
- * @param int $var
- * @return $this
- */
- public function setAveragePurchaseCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->average_purchase_count = $var;
- return $this;
- }
- /**
- * Advertiser defined average purchase value in micros for the user.
- *
- * Generated from protobuf field <code>int64 average_purchase_value_micros = 5;</code>
- * @return int|string
- */
- public function getAveragePurchaseValueMicros()
- {
- return $this->average_purchase_value_micros;
- }
- /**
- * Advertiser defined average purchase value in micros for the user.
- *
- * Generated from protobuf field <code>int64 average_purchase_value_micros = 5;</code>
- * @param int|string $var
- * @return $this
- */
- public function setAveragePurchaseValueMicros($var)
- {
- GPBUtil::checkInt64($var);
- $this->average_purchase_value_micros = $var;
- return $this;
- }
- /**
- * Timestamp when the user was acquired.
- * The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
- * optional timezone offset from UTC. If the offset is absent, the API will
- * use the account's timezone as default.
- *
- * Generated from protobuf field <code>string acquisition_date_time = 6;</code>
- * @return string
- */
- public function getAcquisitionDateTime()
- {
- return $this->acquisition_date_time;
- }
- /**
- * Timestamp when the user was acquired.
- * The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
- * optional timezone offset from UTC. If the offset is absent, the API will
- * use the account's timezone as default.
- *
- * Generated from protobuf field <code>string acquisition_date_time = 6;</code>
- * @param string $var
- * @return $this
- */
- public function setAcquisitionDateTime($var)
- {
- GPBUtil::checkString($var, True);
- $this->acquisition_date_time = $var;
- return $this;
- }
- /**
- * The shopping loyalty related data. Shopping utilizes this data to provide
- * users with a better experience. Accessible only to merchants on the
- * allow-list with users’ consent.
- *
- * Generated from protobuf field <code>optional .google.ads.googleads.v9.common.ShoppingLoyalty shopping_loyalty = 7;</code>
- * @return \Google\Ads\GoogleAds\V9\Common\ShoppingLoyalty|null
- */
- public function getShoppingLoyalty()
- {
- return $this->shopping_loyalty;
- }
- public function hasShoppingLoyalty()
- {
- return isset($this->shopping_loyalty);
- }
- public function clearShoppingLoyalty()
- {
- unset($this->shopping_loyalty);
- }
- /**
- * The shopping loyalty related data. Shopping utilizes this data to provide
- * users with a better experience. Accessible only to merchants on the
- * allow-list with users’ consent.
- *
- * Generated from protobuf field <code>optional .google.ads.googleads.v9.common.ShoppingLoyalty shopping_loyalty = 7;</code>
- * @param \Google\Ads\GoogleAds\V9\Common\ShoppingLoyalty $var
- * @return $this
- */
- public function setShoppingLoyalty($var)
- {
- GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V9\Common\ShoppingLoyalty::class);
- $this->shopping_loyalty = $var;
- return $this;
- }
- }