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:
  • 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance 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 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 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 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. Useful to group transactions which are part of the
       same order.
       
      optional string order_id = 12;
      Specified by:
      hasOrderId in interface TransactionAttributeOrBuilder
      Returns:
      Whether the orderId field is set.
    • getOrderId

      public String getOrderId()
       Transaction order id. Useful to group transactions which are part of the
       same order.
       
      optional string order_id = 12;
      Specified by:
      getOrderId in interface TransactionAttributeOrBuilder
      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:
      getOrderIdBytes in interface TransactionAttributeOrBuilder
      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:
      hasStoreAttribute in interface TransactionAttributeOrBuilder
      Returns:
      Whether the storeAttribute field is set.
    • getStoreAttribute

      public StoreAttribute getStoreAttribute()
       Store attributes of the transaction.
       
      .google.ads.googleads.v18.common.StoreAttribute store_attribute = 6;
      Specified by:
      getStoreAttribute in interface TransactionAttributeOrBuilder
      Returns:
      The storeAttribute.
    • getStoreAttributeOrBuilder

      public StoreAttributeOrBuilder getStoreAttributeOrBuilder()
       Store attributes of the transaction.
       
      .google.ads.googleads.v18.common.StoreAttribute store_attribute = 6;
      Specified by:
      getStoreAttributeOrBuilder in interface TransactionAttributeOrBuilder
    • 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:
      hasCustomValue in interface TransactionAttributeOrBuilder
      Returns:
      Whether the customValue field is set.
    • getCustomValue

      public String 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:
      getCustomValue in interface TransactionAttributeOrBuilder
      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:
      getCustomValueBytes in interface TransactionAttributeOrBuilder
      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:
      hasItemAttribute in interface TransactionAttributeOrBuilder
      Returns:
      Whether the itemAttribute field is set.
    • getItemAttribute

      public ItemAttribute 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:
      getItemAttribute in interface TransactionAttributeOrBuilder
      Returns:
      The itemAttribute.
    • getItemAttributeOrBuilder

      public ItemAttributeOrBuilder 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:
      getItemAttributeOrBuilder in interface TransactionAttributeOrBuilder
    • 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 IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      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(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(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

      public static TransactionAttribute parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static TransactionAttribute parseDelimitedFrom(InputStream input) throws IOException
      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

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

      public static TransactionAttribute.Builder newBuilder()
    • newBuilder

      public static TransactionAttribute.Builder newBuilder(TransactionAttribute prototype)
    • 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
    • getDefaultInstance

      public static TransactionAttribute getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TransactionAttribute> parser()
    • 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