Class TransactionData.Item.Builder

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

        public TransactionData.Item.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<TransactionData.Item.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<TransactionData.Item.Builder>
      • getDefaultInstanceForType

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

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

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

        public TransactionData.Item.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<TransactionData.Item.Builder>
      • setField

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

        public TransactionData.Item.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<TransactionData.Item.Builder>
      • clearOneof

        public TransactionData.Item.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<TransactionData.Item.Builder>
      • setRepeatedField

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

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

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

        public TransactionData.Item.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws 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<TransactionData.Item.Builder>
        Throws:
        IOException
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The full name of the item.
         
        string name = 1;
        Specified by:
        getNameBytes in interface TransactionData.ItemOrBuilder
        Returns:
        The bytes for name.
      • setName

        public TransactionData.Item.Builder setName​(String value)
         The full name of the item.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public TransactionData.Item.Builder clearName()
         The full name of the item.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public TransactionData.Item.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The full name of the item.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getValue

        public double getValue()
         The value per item that the user is paying, in the transaction currency,
         after discounts.
         
        double value = 2;
        Specified by:
        getValue in interface TransactionData.ItemOrBuilder
        Returns:
        The value.
      • setValue

        public TransactionData.Item.Builder setValue​(double value)
         The value per item that the user is paying, in the transaction currency,
         after discounts.
         
        double value = 2;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public TransactionData.Item.Builder clearValue()
         The value per item that the user is paying, in the transaction currency,
         after discounts.
         
        double value = 2;
        Returns:
        This builder for chaining.
      • getQuantity

        public long getQuantity()
         The quantity of this item that is being purchased.
         
        int64 quantity = 3;
        Specified by:
        getQuantity in interface TransactionData.ItemOrBuilder
        Returns:
        The quantity.
      • setQuantity

        public TransactionData.Item.Builder setQuantity​(long value)
         The quantity of this item that is being purchased.
         
        int64 quantity = 3;
        Parameters:
        value - The quantity to set.
        Returns:
        This builder for chaining.
      • clearQuantity

        public TransactionData.Item.Builder clearQuantity()
         The quantity of this item that is being purchased.
         
        int64 quantity = 3;
        Returns:
        This builder for chaining.
      • getMerchantAccountId

        public String getMerchantAccountId()
         When a merchant is specified, its corresponding account_id. Necessary to
         populate marketplace-style transactions.
         
        string merchant_account_id = 4;
        Specified by:
        getMerchantAccountId in interface TransactionData.ItemOrBuilder
        Returns:
        The merchantAccountId.
      • getMerchantAccountIdBytes

        public com.google.protobuf.ByteString getMerchantAccountIdBytes()
         When a merchant is specified, its corresponding account_id. Necessary to
         populate marketplace-style transactions.
         
        string merchant_account_id = 4;
        Specified by:
        getMerchantAccountIdBytes in interface TransactionData.ItemOrBuilder
        Returns:
        The bytes for merchantAccountId.
      • setMerchantAccountId

        public TransactionData.Item.Builder setMerchantAccountId​(String value)
         When a merchant is specified, its corresponding account_id. Necessary to
         populate marketplace-style transactions.
         
        string merchant_account_id = 4;
        Parameters:
        value - The merchantAccountId to set.
        Returns:
        This builder for chaining.
      • clearMerchantAccountId

        public TransactionData.Item.Builder clearMerchantAccountId()
         When a merchant is specified, its corresponding account_id. Necessary to
         populate marketplace-style transactions.
         
        string merchant_account_id = 4;
        Returns:
        This builder for chaining.
      • setMerchantAccountIdBytes

        public TransactionData.Item.Builder setMerchantAccountIdBytes​(com.google.protobuf.ByteString value)
         When a merchant is specified, its corresponding account_id. Necessary to
         populate marketplace-style transactions.
         
        string merchant_account_id = 4;
        Parameters:
        value - The bytes for merchantAccountId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TransactionData.Item.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<TransactionData.Item.Builder>
      • mergeUnknownFields

        public final TransactionData.Item.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<TransactionData.Item.Builder>