Class TransactionAttribute.Builder

  • All Implemented Interfaces:
    TransactionAttributeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    TransactionAttribute

    public static final class TransactionAttribute.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
    implements TransactionAttributeOrBuilder
     Attribute of the store sales transaction.
     
    Protobuf type google.ads.googleads.v14.common.TransactionAttribute
    • Method Detail

      • 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.Builder<TransactionAttribute.Builder>
      • clear

        public TransactionAttribute.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • getDefaultInstanceForType

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

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

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

        public TransactionAttribute.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • setField

        public TransactionAttribute.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • clearField

        public TransactionAttribute.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • clearOneof

        public TransactionAttribute.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • setRepeatedField

        public TransactionAttribute.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • addRepeatedField

        public TransactionAttribute.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • mergeFrom

        public TransactionAttribute.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionAttribute.Builder>
        Throws:
        java.io.IOException
      • 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.
      • setTransactionDateTime

        public TransactionAttribute.Builder setTransactionDateTime​(java.lang.String value)
         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;
        Parameters:
        value - The transactionDateTime to set.
        Returns:
        This builder for chaining.
      • clearTransactionDateTime

        public TransactionAttribute.Builder clearTransactionDateTime()
         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;
        Returns:
        This builder for chaining.
      • setTransactionDateTimeBytes

        public TransactionAttribute.Builder setTransactionDateTimeBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for transactionDateTime to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTransactionAmountMicros

        public TransactionAttribute.Builder setTransactionAmountMicros​(double value)
         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;
        Parameters:
        value - The transactionAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearTransactionAmountMicros

        public TransactionAttribute.Builder clearTransactionAmountMicros()
         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;
        Returns:
        This builder for chaining.
      • 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.
      • setCurrencyCode

        public TransactionAttribute.Builder setCurrencyCode​(java.lang.String value)
         Transaction currency code. ISO 4217 three-letter code is used. Required.
         
        optional string currency_code = 10;
        Parameters:
        value - The currencyCode to set.
        Returns:
        This builder for chaining.
      • clearCurrencyCode

        public TransactionAttribute.Builder clearCurrencyCode()
         Transaction currency code. ISO 4217 three-letter code is used. Required.
         
        optional string currency_code = 10;
        Returns:
        This builder for chaining.
      • setCurrencyCodeBytes

        public TransactionAttribute.Builder setCurrencyCodeBytes​(com.google.protobuf.ByteString value)
         Transaction currency code. ISO 4217 three-letter code is used. Required.
         
        optional string currency_code = 10;
        Parameters:
        value - The bytes for currencyCode to set.
        Returns:
        This builder for chaining.
      • 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.
      • setConversionAction

        public TransactionAttribute.Builder setConversionAction​(java.lang.String value)
         The resource name of conversion action to report conversions to.
         Required.
         
        optional string conversion_action = 11;
        Parameters:
        value - The conversionAction to set.
        Returns:
        This builder for chaining.
      • clearConversionAction

        public TransactionAttribute.Builder clearConversionAction()
         The resource name of conversion action to report conversions to.
         Required.
         
        optional string conversion_action = 11;
        Returns:
        This builder for chaining.
      • setConversionActionBytes

        public TransactionAttribute.Builder setConversionActionBytes​(com.google.protobuf.ByteString value)
         The resource name of conversion action to report conversions to.
         Required.
         
        optional string conversion_action = 11;
        Parameters:
        value - The bytes for conversionAction to set.
        Returns:
        This builder for chaining.
      • 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.
      • setOrderId

        public TransactionAttribute.Builder setOrderId​(java.lang.String value)
         Transaction order id.
         Accessible only to customers on the allow-list.
         
        optional string order_id = 12;
        Parameters:
        value - The orderId to set.
        Returns:
        This builder for chaining.
      • clearOrderId

        public TransactionAttribute.Builder clearOrderId()
         Transaction order id.
         Accessible only to customers on the allow-list.
         
        optional string order_id = 12;
        Returns:
        This builder for chaining.
      • setOrderIdBytes

        public TransactionAttribute.Builder setOrderIdBytes​(com.google.protobuf.ByteString value)
         Transaction order id.
         Accessible only to customers on the allow-list.
         
        optional string order_id = 12;
        Parameters:
        value - The bytes for orderId to set.
        Returns:
        This builder for chaining.
      • hasStoreAttribute

        public boolean hasStoreAttribute()
         Store attributes of the transaction.
         Accessible only to customers on the allow-list.
         
        .google.ads.googleads.v14.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.v14.common.StoreAttribute store_attribute = 6;
        Specified by:
        getStoreAttribute in interface TransactionAttributeOrBuilder
        Returns:
        The storeAttribute.
      • setStoreAttribute

        public TransactionAttribute.Builder setStoreAttribute​(StoreAttribute value)
         Store attributes of the transaction.
         Accessible only to customers on the allow-list.
         
        .google.ads.googleads.v14.common.StoreAttribute store_attribute = 6;
      • setStoreAttribute

        public TransactionAttribute.Builder setStoreAttribute​(StoreAttribute.Builder builderForValue)
         Store attributes of the transaction.
         Accessible only to customers on the allow-list.
         
        .google.ads.googleads.v14.common.StoreAttribute store_attribute = 6;
      • mergeStoreAttribute

        public TransactionAttribute.Builder mergeStoreAttribute​(StoreAttribute value)
         Store attributes of the transaction.
         Accessible only to customers on the allow-list.
         
        .google.ads.googleads.v14.common.StoreAttribute store_attribute = 6;
      • clearStoreAttribute

        public TransactionAttribute.Builder clearStoreAttribute()
         Store attributes of the transaction.
         Accessible only to customers on the allow-list.
         
        .google.ads.googleads.v14.common.StoreAttribute store_attribute = 6;
      • getStoreAttributeBuilder

        public StoreAttribute.Builder getStoreAttributeBuilder()
         Store attributes of the transaction.
         Accessible only to customers on the allow-list.
         
        .google.ads.googleads.v14.common.StoreAttribute store_attribute = 6;
      • 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.
      • setCustomValue

        public TransactionAttribute.Builder setCustomValue​(java.lang.String value)
         Value of the custom variable for each transaction.
         Accessible only to customers on the allow-list.
         
        optional string custom_value = 13;
        Parameters:
        value - The customValue to set.
        Returns:
        This builder for chaining.
      • clearCustomValue

        public TransactionAttribute.Builder clearCustomValue()
         Value of the custom variable for each transaction.
         Accessible only to customers on the allow-list.
         
        optional string custom_value = 13;
        Returns:
        This builder for chaining.
      • setCustomValueBytes

        public TransactionAttribute.Builder setCustomValueBytes​(com.google.protobuf.ByteString value)
         Value of the custom variable for each transaction.
         Accessible only to customers on the allow-list.
         
        optional string custom_value = 13;
        Parameters:
        value - The bytes for customValue to set.
        Returns:
        This builder for chaining.
      • hasItemAttribute

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

        public TransactionAttribute.Builder mergeItemAttribute​(ItemAttribute value)
         Item attributes of the transaction.
         
        .google.ads.googleads.v14.common.ItemAttribute item_attribute = 14;
      • clearItemAttribute

        public TransactionAttribute.Builder clearItemAttribute()
         Item attributes of the transaction.
         
        .google.ads.googleads.v14.common.ItemAttribute item_attribute = 14;
      • getItemAttributeBuilder

        public ItemAttribute.Builder getItemAttributeBuilder()
         Item attributes of the transaction.
         
        .google.ads.googleads.v14.common.ItemAttribute item_attribute = 14;
      • setUnknownFields

        public final TransactionAttribute.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>
      • mergeUnknownFields

        public final TransactionAttribute.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAttribute.Builder>