Class CartData.Item.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CartData.Item.Builder>
com.google.ads.googleads.v22.services.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, Cloneable
Enclosing class:
CartData.Item

public static final class CartData.Item.Builder extends com.google.protobuf.GeneratedMessage.Builder<CartData.Item.Builder> implements CartData.ItemOrBuilder
 Contains data of the items purchased.
 
Protobuf type google.ads.googleads.v22.services.CartData.Item
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The shopping id of the item.
    Number of items sold.
    Unit price excluding tax, shipping, and any transaction level discounts.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The shopping id of the item.
    com.google.protobuf.ByteString
    The shopping id of the item.
    int
    Number of items sold.
    double
    Unit price excluding tax, shipping, and any transaction level discounts.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The shopping id of the item.
    setProductIdBytes(com.google.protobuf.ByteString value)
    The shopping id of the item.
    setQuantity(int value)
    Number of items sold.
    setUnitPrice(double value)
    Unit price excluding tax, shipping, and any transaction level discounts.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public CartData.Item.Builder mergeFrom(CartData.Item other)
    • isInitialized

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

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

      public 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(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.