Class UserAttribute
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.common.UserAttribute
- All Implemented Interfaces:
UserAttributeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class UserAttribute
extends com.google.protobuf.GeneratedMessageV3
implements UserAttributeOrBuilder
User attribute, can only be used with CUSTOMER_MATCH_WITH_ATTRIBUTES job type.Protobuf type
google.ads.googleads.v18.common.UserAttribute- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUser attribute, can only be used with CUSTOMER_MATCH_WITH_ATTRIBUTES job type.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanTimestamp when the user was acquired.com.google.protobuf.ByteStringTimestamp when the user was acquired.intAdvertiser defined average number of purchases that are made by the user in a 30 day period.longAdvertiser defined average purchase value in micros for the user.static UserAttributestatic final com.google.protobuf.Descriptors.DescriptorgetEventAttribute(int index) Optional.intOptional.Optional.getEventAttributeOrBuilder(int index) Optional.List<? extends EventAttributeOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.Timestamp of the last purchase made by the user.com.google.protobuf.ByteStringTimestamp of the last purchase made by the user.Optional.com.google.protobuf.ByteStringOptional.intAdvertiser defined lifetime value bucket for the user.longAdvertiser defined lifetime value for the user.com.google.protobuf.Parser<UserAttribute>intThe shopping loyalty related data.The shopping loyalty related data.inthashCode()booleanAdvertiser defined lifetime value bucket for the user.booleanAdvertiser defined lifetime value for the user.booleanThe shopping loyalty related data.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic UserAttribute.Builderstatic UserAttribute.BuildernewBuilder(UserAttribute prototype) protected UserAttribute.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static UserAttributeparseDelimitedFrom(InputStream input) static UserAttributeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UserAttributeparseFrom(byte[] data) static UserAttributeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UserAttributeparseFrom(com.google.protobuf.ByteString data) static UserAttributeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UserAttributeparseFrom(com.google.protobuf.CodedInputStream input) static UserAttributeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UserAttributeparseFrom(InputStream input) static UserAttributeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UserAttributeparseFrom(ByteBuffer data) static UserAttributeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<UserAttribute>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
LIFETIME_VALUE_MICROS_FIELD_NUMBER
public static final int LIFETIME_VALUE_MICROS_FIELD_NUMBER- See Also:
-
LIFETIME_VALUE_BUCKET_FIELD_NUMBER
public static final int LIFETIME_VALUE_BUCKET_FIELD_NUMBER- See Also:
-
LAST_PURCHASE_DATE_TIME_FIELD_NUMBER
public static final int LAST_PURCHASE_DATE_TIME_FIELD_NUMBER- See Also:
-
AVERAGE_PURCHASE_COUNT_FIELD_NUMBER
public static final int AVERAGE_PURCHASE_COUNT_FIELD_NUMBER- See Also:
-
AVERAGE_PURCHASE_VALUE_MICROS_FIELD_NUMBER
public static final int AVERAGE_PURCHASE_VALUE_MICROS_FIELD_NUMBER- See Also:
-
ACQUISITION_DATE_TIME_FIELD_NUMBER
public static final int ACQUISITION_DATE_TIME_FIELD_NUMBER- See Also:
-
SHOPPING_LOYALTY_FIELD_NUMBER
public static final int SHOPPING_LOYALTY_FIELD_NUMBER- See Also:
-
LIFECYCLE_STAGE_FIELD_NUMBER
public static final int LIFECYCLE_STAGE_FIELD_NUMBER- See Also:
-
FIRST_PURCHASE_DATE_TIME_FIELD_NUMBER
public static final int FIRST_PURCHASE_DATE_TIME_FIELD_NUMBER- See Also:
-
EVENT_ATTRIBUTE_FIELD_NUMBER
public static final int EVENT_ATTRIBUTE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasLifetimeValueMicros
public boolean hasLifetimeValueMicros()Advertiser defined lifetime value for the user.
optional int64 lifetime_value_micros = 1;- Specified by:
hasLifetimeValueMicrosin interfaceUserAttributeOrBuilder- Returns:
- Whether the lifetimeValueMicros field is set.
-
getLifetimeValueMicros
public long getLifetimeValueMicros()Advertiser defined lifetime value for the user.
optional int64 lifetime_value_micros = 1;- Specified by:
getLifetimeValueMicrosin interfaceUserAttributeOrBuilder- Returns:
- The lifetimeValueMicros.
-
hasLifetimeValueBucket
public boolean hasLifetimeValueBucket()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.
optional int32 lifetime_value_bucket = 2;- Specified by:
hasLifetimeValueBucketin interfaceUserAttributeOrBuilder- Returns:
- Whether the lifetimeValueBucket field is set.
-
getLifetimeValueBucket
public int getLifetimeValueBucket()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.
optional int32 lifetime_value_bucket = 2;- Specified by:
getLifetimeValueBucketin interfaceUserAttributeOrBuilder- Returns:
- The lifetimeValueBucket.
-
getLastPurchaseDateTime
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.
string last_purchase_date_time = 3;- Specified by:
getLastPurchaseDateTimein interfaceUserAttributeOrBuilder- Returns:
- The lastPurchaseDateTime.
-
getLastPurchaseDateTimeBytes
public com.google.protobuf.ByteString getLastPurchaseDateTimeBytes()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.
string last_purchase_date_time = 3;- Specified by:
getLastPurchaseDateTimeBytesin interfaceUserAttributeOrBuilder- Returns:
- The bytes for lastPurchaseDateTime.
-
getAveragePurchaseCount
public int getAveragePurchaseCount()Advertiser defined average number of purchases that are made by the user in a 30 day period.
int32 average_purchase_count = 4;- Specified by:
getAveragePurchaseCountin interfaceUserAttributeOrBuilder- Returns:
- The averagePurchaseCount.
-
getAveragePurchaseValueMicros
public long getAveragePurchaseValueMicros()Advertiser defined average purchase value in micros for the user.
int64 average_purchase_value_micros = 5;- Specified by:
getAveragePurchaseValueMicrosin interfaceUserAttributeOrBuilder- Returns:
- The averagePurchaseValueMicros.
-
getAcquisitionDateTime
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.
string acquisition_date_time = 6;- Specified by:
getAcquisitionDateTimein interfaceUserAttributeOrBuilder- Returns:
- The acquisitionDateTime.
-
getAcquisitionDateTimeBytes
public com.google.protobuf.ByteString getAcquisitionDateTimeBytes()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.
string acquisition_date_time = 6;- Specified by:
getAcquisitionDateTimeBytesin interfaceUserAttributeOrBuilder- Returns:
- The bytes for acquisitionDateTime.
-
hasShoppingLoyalty
public boolean hasShoppingLoyalty()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 the user's consent.
optional .google.ads.googleads.v18.common.ShoppingLoyalty shopping_loyalty = 7;- Specified by:
hasShoppingLoyaltyin interfaceUserAttributeOrBuilder- Returns:
- Whether the shoppingLoyalty field is set.
-
getShoppingLoyalty
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 the user's consent.
optional .google.ads.googleads.v18.common.ShoppingLoyalty shopping_loyalty = 7;- Specified by:
getShoppingLoyaltyin interfaceUserAttributeOrBuilder- Returns:
- The shoppingLoyalty.
-
getShoppingLoyaltyOrBuilder
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 the user's consent.
optional .google.ads.googleads.v18.common.ShoppingLoyalty shopping_loyalty = 7;- Specified by:
getShoppingLoyaltyOrBuilderin interfaceUserAttributeOrBuilder
-
getLifecycleStage
Optional. Advertiser defined lifecycle stage for the user. The accepted values are "Lead", "Active" and "Churned".
string lifecycle_stage = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLifecycleStagein interfaceUserAttributeOrBuilder- Returns:
- The lifecycleStage.
-
getLifecycleStageBytes
public com.google.protobuf.ByteString getLifecycleStageBytes()Optional. Advertiser defined lifecycle stage for the user. The accepted values are "Lead", "Active" and "Churned".
string lifecycle_stage = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLifecycleStageBytesin interfaceUserAttributeOrBuilder- Returns:
- The bytes for lifecycleStage.
-
getFirstPurchaseDateTime
Optional. Timestamp of the first 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.
string first_purchase_date_time = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFirstPurchaseDateTimein interfaceUserAttributeOrBuilder- Returns:
- The firstPurchaseDateTime.
-
getFirstPurchaseDateTimeBytes
public com.google.protobuf.ByteString getFirstPurchaseDateTimeBytes()Optional. Timestamp of the first 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.
string first_purchase_date_time = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFirstPurchaseDateTimeBytesin interfaceUserAttributeOrBuilder- Returns:
- The bytes for firstPurchaseDateTime.
-
getEventAttributeList
Optional. Advertiser defined events and their attributes. All the values in the nested fields are required. Currently this field is in beta.
repeated .google.ads.googleads.v18.common.EventAttribute event_attribute = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventAttributeListin interfaceUserAttributeOrBuilder
-
getEventAttributeOrBuilderList
Optional. Advertiser defined events and their attributes. All the values in the nested fields are required. Currently this field is in beta.
repeated .google.ads.googleads.v18.common.EventAttribute event_attribute = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventAttributeOrBuilderListin interfaceUserAttributeOrBuilder
-
getEventAttributeCount
public int getEventAttributeCount()Optional. Advertiser defined events and their attributes. All the values in the nested fields are required. Currently this field is in beta.
repeated .google.ads.googleads.v18.common.EventAttribute event_attribute = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventAttributeCountin interfaceUserAttributeOrBuilder
-
getEventAttribute
Optional. Advertiser defined events and their attributes. All the values in the nested fields are required. Currently this field is in beta.
repeated .google.ads.googleads.v18.common.EventAttribute event_attribute = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventAttributein interfaceUserAttributeOrBuilder
-
getEventAttributeOrBuilder
Optional. Advertiser defined events and their attributes. All the values in the nested fields are required. Currently this field is in beta.
repeated .google.ads.googleads.v18.common.EventAttribute event_attribute = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventAttributeOrBuilderin interfaceUserAttributeOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static UserAttribute parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserAttribute parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserAttribute parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserAttribute parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserAttribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserAttribute parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static UserAttribute parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static UserAttribute parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static UserAttribute parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static UserAttribute parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected UserAttribute.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-