Class TransactionAttribute

  • All Implemented Interfaces:
    TransactionAttributeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class TransactionAttribute
    extends com.google.protobuf.GeneratedMessageV3
    implements TransactionAttributeOrBuilder
     Attribute of the store sales transaction.
     
    Protobuf type google.ads.googleads.v10.common.TransactionAttribute
    See Also:
    Serialized Form
    • Field Detail

      • TRANSACTION_DATE_TIME_FIELD_NUMBER

        public static final int TRANSACTION_DATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRANSACTION_AMOUNT_MICROS_FIELD_NUMBER

        public static final int TRANSACTION_AMOUNT_MICROS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CURRENCY_CODE_FIELD_NUMBER

        public static final int CURRENCY_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONVERSION_ACTION_FIELD_NUMBER

        public static final int CONVERSION_ACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STORE_ATTRIBUTE_FIELD_NUMBER

        public static final int STORE_ATTRIBUTE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CUSTOM_VALUE_FIELD_NUMBER

        public static final int CUSTOM_VALUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ITEM_ATTRIBUTE_FIELD_NUMBER

        public static final int ITEM_ATTRIBUTE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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:
        hasTransactionDateTime in interface TransactionAttributeOrBuilder
        Returns:
        Whether the transactionDateTime field is set.
      • getTransactionDateTime

        public java.lang.String 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:
        getTransactionDateTime in interface TransactionAttributeOrBuilder
        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:
        getTransactionDateTimeBytes in interface TransactionAttributeOrBuilder
        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:
        hasTransactionAmountMicros in interface TransactionAttributeOrBuilder
        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:
        getTransactionAmountMicros in interface TransactionAttributeOrBuilder
        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:
        hasCurrencyCode in interface TransactionAttributeOrBuilder
        Returns:
        Whether the currencyCode field is set.
      • getCurrencyCode

        public java.lang.String getCurrencyCode()
         Transaction currency code. ISO 4217 three-letter code is used. Required.
         
        optional string currency_code = 10;
        Specified by:
        getCurrencyCode in interface TransactionAttributeOrBuilder
        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:
        getCurrencyCodeBytes in interface TransactionAttributeOrBuilder
        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:
        hasConversionAction in interface TransactionAttributeOrBuilder
        Returns:
        Whether the conversionAction field is set.
      • getConversionAction

        public java.lang.String getConversionAction()
         The resource name of conversion action to report conversions to.
         Required.
         
        optional string conversion_action = 11;
        Specified by:
        getConversionAction in interface TransactionAttributeOrBuilder
        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:
        getConversionActionBytes in interface TransactionAttributeOrBuilder
        Returns:
        The bytes for conversionAction.
      • hasOrderId

        public boolean hasOrderId()
         Transaction order id.
         Accessible only to customers on the allow-list.
         
        optional string order_id = 12;
        Specified by:
        hasOrderId in interface TransactionAttributeOrBuilder
        Returns:
        Whether the orderId field is set.
      • getOrderId

        public java.lang.String getOrderId()
         Transaction order id.
         Accessible only to customers on the allow-list.
         
        optional string order_id = 12;
        Specified by:
        getOrderId in interface TransactionAttributeOrBuilder
        Returns:
        The orderId.
      • getOrderIdBytes

        public com.google.protobuf.ByteString getOrderIdBytes()
         Transaction order id.
         Accessible only to customers on the allow-list.
         
        optional string order_id = 12;
        Specified by:
        getOrderIdBytes in interface TransactionAttributeOrBuilder
        Returns:
        The bytes for orderId.
      • hasStoreAttribute

        public boolean hasStoreAttribute()
         Store attributes of the transaction.
         Accessible only to customers on the allow-list.
         
        .google.ads.googleads.v10.common.StoreAttribute store_attribute = 6;
        Specified by:
        hasStoreAttribute in interface TransactionAttributeOrBuilder
        Returns:
        Whether the storeAttribute field is set.
      • getStoreAttribute

        public StoreAttribute getStoreAttribute()
         Store attributes of the transaction.
         Accessible only to customers on the allow-list.
         
        .google.ads.googleads.v10.common.StoreAttribute store_attribute = 6;
        Specified by:
        getStoreAttribute in interface TransactionAttributeOrBuilder
        Returns:
        The storeAttribute.
      • hasCustomValue

        public boolean hasCustomValue()
         Value of the custom variable for each transaction.
         Accessible only to customers on the allow-list.
         
        optional string custom_value = 13;
        Specified by:
        hasCustomValue in interface TransactionAttributeOrBuilder
        Returns:
        Whether the customValue field is set.
      • getCustomValue

        public java.lang.String getCustomValue()
         Value of the custom variable for each transaction.
         Accessible only to customers on the allow-list.
         
        optional string custom_value = 13;
        Specified by:
        getCustomValue in interface TransactionAttributeOrBuilder
        Returns:
        The customValue.
      • getCustomValueBytes

        public com.google.protobuf.ByteString getCustomValueBytes()
         Value of the custom variable for each transaction.
         Accessible only to customers on the allow-list.
         
        optional string custom_value = 13;
        Specified by:
        getCustomValueBytes in interface TransactionAttributeOrBuilder
        Returns:
        The bytes for customValue.
      • hasItemAttribute

        public boolean hasItemAttribute()
         Item attributes of the transaction.
         
        .google.ads.googleads.v10.common.ItemAttribute item_attribute = 14;
        Specified by:
        hasItemAttribute in interface TransactionAttributeOrBuilder
        Returns:
        Whether the itemAttribute field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static TransactionAttribute parseFrom​(java.nio.ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransactionAttribute parseFrom​(java.nio.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

        public static TransactionAttribute parseFrom​(java.io.InputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static TransactionAttribute parseFrom​(java.io.InputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static TransactionAttribute parseDelimitedFrom​(java.io.InputStream input)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static TransactionAttribute parseDelimitedFrom​(java.io.InputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static TransactionAttribute parseFrom​(com.google.protobuf.CodedInputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static TransactionAttribute parseFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public TransactionAttribute.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public TransactionAttribute.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected TransactionAttribute.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<TransactionAttribute> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public TransactionAttribute getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder