Class CartData.Item.Builder

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

    public static final class CartData.Item.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CartData.Item.Builder>
    implements CartData.ItemOrBuilder
     Contains data of the items purchased.
     
    Protobuf type google.ads.googleads.v10.services.CartData.Item
    • 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<CartData.Item.Builder>
      • clear

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

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

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

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

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

        public CartData.Item.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<CartData.Item.Builder>
      • clearField

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

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

        public CartData.Item.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<CartData.Item.Builder>
      • addRepeatedField

        public CartData.Item.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<CartData.Item.Builder>
      • mergeFrom

        public CartData.Item.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CartData.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<CartData.Item.Builder>
      • mergeFrom

        public CartData.Item.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<CartData.Item.Builder>
        Throws:
        java.io.IOException
      • getProductId

        public java.lang.String getProductId()
         The shopping id of the item. Must be equal to the Merchant Center product
         identifier.
         
        string product_id = 1;
        Specified by:
        getProductId in interface CartData.ItemOrBuilder
        Returns:
        The productId.
      • getProductIdBytes

        public com.google.protobuf.ByteString getProductIdBytes()
         The shopping id of the item. Must be equal to the Merchant Center product
         identifier.
         
        string product_id = 1;
        Specified by:
        getProductIdBytes in interface CartData.ItemOrBuilder
        Returns:
        The bytes for productId.
      • setProductId

        public CartData.Item.Builder setProductId​(java.lang.String value)
         The shopping id of the item. Must be equal to the Merchant Center product
         identifier.
         
        string product_id = 1;
        Parameters:
        value - The productId to set.
        Returns:
        This builder for chaining.
      • clearProductId

        public CartData.Item.Builder clearProductId()
         The shopping id of the item. Must be equal to the Merchant Center product
         identifier.
         
        string product_id = 1;
        Returns:
        This builder for chaining.
      • setProductIdBytes

        public CartData.Item.Builder setProductIdBytes​(com.google.protobuf.ByteString value)
         The shopping id of the item. Must be equal to the Merchant Center product
         identifier.
         
        string product_id = 1;
        Parameters:
        value - The bytes for productId to set.
        Returns:
        This builder for chaining.
      • getQuantity

        public int getQuantity()
         Number of items sold.
         
        int32 quantity = 2;
        Specified by:
        getQuantity in interface CartData.ItemOrBuilder
        Returns:
        The quantity.
      • setQuantity

        public CartData.Item.Builder setQuantity​(int value)
         Number of items sold.
         
        int32 quantity = 2;
        Parameters:
        value - The quantity to set.
        Returns:
        This builder for chaining.
      • clearQuantity

        public CartData.Item.Builder clearQuantity()
         Number of items sold.
         
        int32 quantity = 2;
        Returns:
        This builder for chaining.
      • getUnitPrice

        public double getUnitPrice()
         Unit price excluding tax, shipping, and any transaction
         level discounts. The currency code is the same as that in the
         ClickConversion message.
         
        double unit_price = 3;
        Specified by:
        getUnitPrice in interface CartData.ItemOrBuilder
        Returns:
        The unitPrice.
      • setUnitPrice

        public CartData.Item.Builder setUnitPrice​(double value)
         Unit price excluding tax, shipping, and any transaction
         level discounts. The currency code is the same as that in the
         ClickConversion message.
         
        double unit_price = 3;
        Parameters:
        value - The unitPrice to set.
        Returns:
        This builder for chaining.
      • clearUnitPrice

        public CartData.Item.Builder clearUnitPrice()
         Unit price excluding tax, shipping, and any transaction
         level discounts. The currency code is the same as that in the
         ClickConversion message.
         
        double unit_price = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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