Class UserAttribute
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.common.UserAttribute
-
- All Implemented Interfaces:
UserAttributeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.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 typegoogle.ads.googleads.v10.common.UserAttribute- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserAttribute.BuilderUser 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<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACQUISITION_DATE_TIME_FIELD_NUMBERstatic intAVERAGE_PURCHASE_COUNT_FIELD_NUMBERstatic intAVERAGE_PURCHASE_VALUE_MICROS_FIELD_NUMBERstatic intLAST_PURCHASE_DATE_TIME_FIELD_NUMBERstatic intLIFETIME_VALUE_BUCKET_FIELD_NUMBERstatic intLIFETIME_VALUE_MICROS_FIELD_NUMBERstatic intSHOPPING_LOYALTY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAcquisitionDateTime()Timestamp when the user was acquired.com.google.protobuf.ByteStringgetAcquisitionDateTimeBytes()Timestamp when the user was acquired.intgetAveragePurchaseCount()Advertiser defined average number of purchases that are made by the user in a 30 day period.longgetAveragePurchaseValueMicros()Advertiser defined average purchase value in micros for the user.static UserAttributegetDefaultInstance()UserAttributegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetLastPurchaseDateTime()Timestamp of the last purchase made by the user.com.google.protobuf.ByteStringgetLastPurchaseDateTimeBytes()Timestamp of the last purchase made by the user.intgetLifetimeValueBucket()Advertiser defined lifetime value bucket for the user.longgetLifetimeValueMicros()Advertiser defined lifetime value for the user.com.google.protobuf.Parser<UserAttribute>getParserForType()intgetSerializedSize()ShoppingLoyaltygetShoppingLoyalty()The shopping loyalty related data.ShoppingLoyaltyOrBuildergetShoppingLoyaltyOrBuilder()The shopping loyalty related data.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasLifetimeValueBucket()Advertiser defined lifetime value bucket for the user.booleanhasLifetimeValueMicros()Advertiser defined lifetime value for the user.booleanhasShoppingLoyalty()The shopping loyalty related data.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static UserAttribute.BuildernewBuilder()static UserAttribute.BuildernewBuilder(UserAttribute prototype)UserAttribute.BuildernewBuilderForType()protected UserAttribute.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static UserAttributeparseDelimitedFrom(java.io.InputStream input)static UserAttributeparseDelimitedFrom(java.io.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(java.io.InputStream input)static UserAttributeparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UserAttributeparseFrom(java.nio.ByteBuffer data)static UserAttributeparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<UserAttribute>parser()UserAttribute.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LIFETIME_VALUE_MICROS_FIELD_NUMBER
public static final int LIFETIME_VALUE_MICROS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIFETIME_VALUE_BUCKET_FIELD_NUMBER
public static final int LIFETIME_VALUE_BUCKET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAST_PURCHASE_DATE_TIME_FIELD_NUMBER
public static final int LAST_PURCHASE_DATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVERAGE_PURCHASE_COUNT_FIELD_NUMBER
public static final int AVERAGE_PURCHASE_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVERAGE_PURCHASE_VALUE_MICROS_FIELD_NUMBER
public static final int AVERAGE_PURCHASE_VALUE_MICROS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACQUISITION_DATE_TIME_FIELD_NUMBER
public static final int ACQUISITION_DATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHOPPING_LOYALTY_FIELD_NUMBER
public static final int SHOPPING_LOYALTY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
public java.lang.String 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
public java.lang.String 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.v10.common.ShoppingLoyalty shopping_loyalty = 7;- Specified by:
hasShoppingLoyaltyin interfaceUserAttributeOrBuilder- Returns:
- Whether the shoppingLoyalty field is set.
-
getShoppingLoyalty
public ShoppingLoyalty 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.v10.common.ShoppingLoyalty shopping_loyalty = 7;- Specified by:
getShoppingLoyaltyin interfaceUserAttributeOrBuilder- Returns:
- The shoppingLoyalty.
-
getShoppingLoyaltyOrBuilder
public ShoppingLoyaltyOrBuilder 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.v10.common.ShoppingLoyalty shopping_loyalty = 7;- Specified by:
getShoppingLoyaltyOrBuilderin interfaceUserAttributeOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserAttribute parseFrom(java.nio.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
public static UserAttribute parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static UserAttribute parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static UserAttribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static UserAttribute parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static UserAttribute parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static UserAttribute parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public UserAttribute.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static UserAttribute.Builder newBuilder()
-
newBuilder
public static UserAttribute.Builder newBuilder(UserAttribute prototype)
-
toBuilder
public UserAttribute.Builder 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
public static UserAttribute getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<UserAttribute> parser()
-
getParserForType
public com.google.protobuf.Parser<UserAttribute> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public UserAttribute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-