Class TransactionAttribute
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.common.TransactionAttribute
- All Implemented Interfaces:
TransactionAttributeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class TransactionAttribute
extends com.google.protobuf.GeneratedMessageV3
implements TransactionAttributeOrBuilder
Attribute of the store sales transaction.Protobuf type
google.ads.googleads.v18.common.TransactionAttribute- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAttribute of the store sales transaction.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 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 TypeMethodDescriptionbooleanThe resource name of conversion action to report conversions to.com.google.protobuf.ByteStringThe resource name of conversion action to report conversions to.Transaction currency code.com.google.protobuf.ByteStringTransaction currency code.Value of the custom variable for each transaction.com.google.protobuf.ByteStringValue of the custom variable for each transaction.static TransactionAttributestatic final com.google.protobuf.Descriptors.DescriptorItem attributes of the transaction.Item attributes of the transaction.Transaction order id.com.google.protobuf.ByteStringTransaction order id.com.google.protobuf.Parser<TransactionAttribute>intStore attributes of the transaction.Store attributes of the transaction.doubleTransaction amount in micros.Timestamp when transaction occurred.com.google.protobuf.ByteStringTimestamp when transaction occurred.booleanThe resource name of conversion action to report conversions to.booleanTransaction currency code.booleanValue of the custom variable for each transaction.inthashCode()booleanItem attributes of the transaction.booleanTransaction order id.booleanStore attributes of the transaction.booleanTransaction amount in micros.booleanTimestamp when transaction occurred.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic TransactionAttribute.Builderstatic TransactionAttribute.BuildernewBuilder(TransactionAttribute prototype) protected TransactionAttribute.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static TransactionAttributeparseDelimitedFrom(InputStream input) static TransactionAttributeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionAttributeparseFrom(byte[] data) static TransactionAttributeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionAttributeparseFrom(com.google.protobuf.ByteString data) static TransactionAttributeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionAttributeparseFrom(com.google.protobuf.CodedInputStream input) static TransactionAttributeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionAttributeparseFrom(InputStream input) static TransactionAttributeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionAttributeparseFrom(ByteBuffer data) static TransactionAttributeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TransactionAttribute>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
-
TRANSACTION_DATE_TIME_FIELD_NUMBER
public static final int TRANSACTION_DATE_TIME_FIELD_NUMBER- See Also:
-
TRANSACTION_AMOUNT_MICROS_FIELD_NUMBER
public static final int TRANSACTION_AMOUNT_MICROS_FIELD_NUMBER- See Also:
-
CURRENCY_CODE_FIELD_NUMBER
public static final int CURRENCY_CODE_FIELD_NUMBER- See Also:
-
CONVERSION_ACTION_FIELD_NUMBER
public static final int CONVERSION_ACTION_FIELD_NUMBER- See Also:
-
ORDER_ID_FIELD_NUMBER
public static final int ORDER_ID_FIELD_NUMBER- See Also:
-
STORE_ATTRIBUTE_FIELD_NUMBER
public static final int STORE_ATTRIBUTE_FIELD_NUMBER- See Also:
-
CUSTOM_VALUE_FIELD_NUMBER
public static final int CUSTOM_VALUE_FIELD_NUMBER- See Also:
-
ITEM_ATTRIBUTE_FIELD_NUMBER
public static final int ITEM_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
-
hasTransactionDateTime
public boolean hasTransactionDateTime()Timestamp when transaction occurred. Required. 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. Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
optional string transaction_date_time = 8;- Specified by:
hasTransactionDateTimein interfaceTransactionAttributeOrBuilder- Returns:
- Whether the transactionDateTime field is set.
-
getTransactionDateTime
Timestamp when transaction occurred. Required. 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. Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
optional string transaction_date_time = 8;- Specified by:
getTransactionDateTimein interfaceTransactionAttributeOrBuilder- Returns:
- The transactionDateTime.
-
getTransactionDateTimeBytes
public com.google.protobuf.ByteString getTransactionDateTimeBytes()Timestamp when transaction occurred. Required. 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. Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
optional string transaction_date_time = 8;- Specified by:
getTransactionDateTimeBytesin interfaceTransactionAttributeOrBuilder- Returns:
- The bytes for transactionDateTime.
-
hasTransactionAmountMicros
public boolean hasTransactionAmountMicros()Transaction amount in micros. Required. Transaction amount in micros needs to be greater than 1000. If item Attributes are provided, it represents the total value of the items, after multiplying the unit price per item by the quantity provided in the ItemAttributes.
optional double transaction_amount_micros = 9;- Specified by:
hasTransactionAmountMicrosin interfaceTransactionAttributeOrBuilder- Returns:
- Whether the transactionAmountMicros field is set.
-
getTransactionAmountMicros
public double getTransactionAmountMicros()Transaction amount in micros. Required. Transaction amount in micros needs to be greater than 1000. If item Attributes are provided, it represents the total value of the items, after multiplying the unit price per item by the quantity provided in the ItemAttributes.
optional double transaction_amount_micros = 9;- Specified by:
getTransactionAmountMicrosin interfaceTransactionAttributeOrBuilder- Returns:
- The transactionAmountMicros.
-
hasCurrencyCode
public boolean hasCurrencyCode()Transaction currency code. ISO 4217 three-letter code is used. Required.
optional string currency_code = 10;- Specified by:
hasCurrencyCodein interfaceTransactionAttributeOrBuilder- Returns:
- Whether the currencyCode field is set.
-
getCurrencyCode
Transaction currency code. ISO 4217 three-letter code is used. Required.
optional string currency_code = 10;- Specified by:
getCurrencyCodein interfaceTransactionAttributeOrBuilder- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public com.google.protobuf.ByteString getCurrencyCodeBytes()Transaction currency code. ISO 4217 three-letter code is used. Required.
optional string currency_code = 10;- Specified by:
getCurrencyCodeBytesin interfaceTransactionAttributeOrBuilder- Returns:
- The bytes for currencyCode.
-
hasConversionAction
public boolean hasConversionAction()The resource name of conversion action to report conversions to. Required.
optional string conversion_action = 11;- Specified by:
hasConversionActionin interfaceTransactionAttributeOrBuilder- Returns:
- Whether the conversionAction field is set.
-
getConversionAction
The resource name of conversion action to report conversions to. Required.
optional string conversion_action = 11;- Specified by:
getConversionActionin interfaceTransactionAttributeOrBuilder- Returns:
- The conversionAction.
-
getConversionActionBytes
public com.google.protobuf.ByteString getConversionActionBytes()The resource name of conversion action to report conversions to. Required.
optional string conversion_action = 11;- Specified by:
getConversionActionBytesin interfaceTransactionAttributeOrBuilder- Returns:
- The bytes for conversionAction.
-
hasOrderId
public boolean hasOrderId()Transaction order id. Useful to group transactions which are part of the same order.
optional string order_id = 12;- Specified by:
hasOrderIdin interfaceTransactionAttributeOrBuilder- Returns:
- Whether the orderId field is set.
-
getOrderId
Transaction order id. Useful to group transactions which are part of the same order.
optional string order_id = 12;- Specified by:
getOrderIdin interfaceTransactionAttributeOrBuilder- Returns:
- The orderId.
-
getOrderIdBytes
public com.google.protobuf.ByteString getOrderIdBytes()Transaction order id. Useful to group transactions which are part of the same order.
optional string order_id = 12;- Specified by:
getOrderIdBytesin interfaceTransactionAttributeOrBuilder- Returns:
- The bytes for orderId.
-
hasStoreAttribute
public boolean hasStoreAttribute()Store attributes of the transaction.
.google.ads.googleads.v18.common.StoreAttribute store_attribute = 6;- Specified by:
hasStoreAttributein interfaceTransactionAttributeOrBuilder- Returns:
- Whether the storeAttribute field is set.
-
getStoreAttribute
Store attributes of the transaction.
.google.ads.googleads.v18.common.StoreAttribute store_attribute = 6;- Specified by:
getStoreAttributein interfaceTransactionAttributeOrBuilder- Returns:
- The storeAttribute.
-
getStoreAttributeOrBuilder
Store attributes of the transaction.
.google.ads.googleads.v18.common.StoreAttribute store_attribute = 6;- Specified by:
getStoreAttributeOrBuilderin interfaceTransactionAttributeOrBuilder
-
hasCustomValue
public boolean hasCustomValue()Value of the custom variable for each transaction. Allowed only if a custom key is provided in the store sales metadata.
optional string custom_value = 13;- Specified by:
hasCustomValuein interfaceTransactionAttributeOrBuilder- Returns:
- Whether the customValue field is set.
-
getCustomValue
Value of the custom variable for each transaction. Allowed only if a custom key is provided in the store sales metadata.
optional string custom_value = 13;- Specified by:
getCustomValuein interfaceTransactionAttributeOrBuilder- Returns:
- The customValue.
-
getCustomValueBytes
public com.google.protobuf.ByteString getCustomValueBytes()Value of the custom variable for each transaction. Allowed only if a custom key is provided in the store sales metadata.
optional string custom_value = 13;- Specified by:
getCustomValueBytesin interfaceTransactionAttributeOrBuilder- Returns:
- The bytes for customValue.
-
hasItemAttribute
public boolean hasItemAttribute()Item attributes of the transaction. Accessible only to customers on the allow-list.
.google.ads.googleads.v18.common.ItemAttribute item_attribute = 14;- Specified by:
hasItemAttributein interfaceTransactionAttributeOrBuilder- Returns:
- Whether the itemAttribute field is set.
-
getItemAttribute
Item attributes of the transaction. Accessible only to customers on the allow-list.
.google.ads.googleads.v18.common.ItemAttribute item_attribute = 14;- Specified by:
getItemAttributein interfaceTransactionAttributeOrBuilder- Returns:
- The itemAttribute.
-
getItemAttributeOrBuilder
Item attributes of the transaction. Accessible only to customers on the allow-list.
.google.ads.googleads.v18.common.ItemAttribute item_attribute = 14;- Specified by:
getItemAttributeOrBuilderin interfaceTransactionAttributeOrBuilder
-
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 TransactionAttribute parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionAttribute parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionAttribute parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionAttribute parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionAttribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionAttribute parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TransactionAttribute parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TransactionAttribute parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TransactionAttribute parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TransactionAttribute 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 TransactionAttribute.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
-