Class ItemAttribute.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ItemAttribute.Builder>
com.google.ads.googleads.v23.common.ItemAttribute.Builder
All Implemented Interfaces:
ItemAttributeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ItemAttribute

public static final class ItemAttribute.Builder extends com.google.protobuf.GeneratedMessage.Builder<ItemAttribute.Builder> implements ItemAttributeOrBuilder
 Item attributes of the transaction.
 
Protobuf type google.ads.googleads.v23.common.ItemAttribute
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Common Locale Data Repository (CLDR) territory code of the country associated with the feed where your items are uploaded.
    A unique identifier of a product.
    ISO 639-1 code of the language associated with the feed where your items are uploaded.
    ID of the Merchant Center Account.
    The number of items sold.
    Common Locale Data Repository (CLDR) territory code of the country associated with the feed where your items are uploaded.
    com.google.protobuf.ByteString
    Common Locale Data Repository (CLDR) territory code of the country associated with the feed where your items are uploaded.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    A unique identifier of a product.
    com.google.protobuf.ByteString
    A unique identifier of a product.
    ISO 639-1 code of the language associated with the feed where your items are uploaded.
    com.google.protobuf.ByteString
    ISO 639-1 code of the language associated with the feed where your items are uploaded.
    long
    ID of the Merchant Center Account.
    long
    The number of items sold.
    boolean
    ID of the Merchant Center Account.
    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)
     
    Common Locale Data Repository (CLDR) territory code of the country associated with the feed where your items are uploaded.
    setCountryCodeBytes(com.google.protobuf.ByteString value)
    Common Locale Data Repository (CLDR) territory code of the country associated with the feed where your items are uploaded.
    A unique identifier of a product.
    setItemIdBytes(com.google.protobuf.ByteString value)
    A unique identifier of a product.
    ISO 639-1 code of the language associated with the feed where your items are uploaded.
    setLanguageCodeBytes(com.google.protobuf.ByteString value)
    ISO 639-1 code of the language associated with the feed where your items are uploaded.
    setMerchantId(long value)
    ID of the Merchant Center Account.
    setQuantity(long value)
    The number of items sold.

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

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

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

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

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

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

      public ItemAttribute.Builder mergeFrom(ItemAttribute other)
    • isInitialized

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

      public ItemAttribute.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<ItemAttribute.Builder>
      Throws:
      IOException
    • getItemId

      public String getItemId()
       A unique identifier of a product. It must be the exact same Merchant Center
       Item ID you use in your Google Merchant Center for this product.
       Required.
       
      string item_id = 1;
      Specified by:
      getItemId in interface ItemAttributeOrBuilder
      Returns:
      The itemId.
    • getItemIdBytes

      public com.google.protobuf.ByteString getItemIdBytes()
       A unique identifier of a product. It must be the exact same Merchant Center
       Item ID you use in your Google Merchant Center for this product.
       Required.
       
      string item_id = 1;
      Specified by:
      getItemIdBytes in interface ItemAttributeOrBuilder
      Returns:
      The bytes for itemId.
    • setItemId

      public ItemAttribute.Builder setItemId(String value)
       A unique identifier of a product. It must be the exact same Merchant Center
       Item ID you use in your Google Merchant Center for this product.
       Required.
       
      string item_id = 1;
      Parameters:
      value - The itemId to set.
      Returns:
      This builder for chaining.
    • clearItemId

      public ItemAttribute.Builder clearItemId()
       A unique identifier of a product. It must be the exact same Merchant Center
       Item ID you use in your Google Merchant Center for this product.
       Required.
       
      string item_id = 1;
      Returns:
      This builder for chaining.
    • setItemIdBytes

      public ItemAttribute.Builder setItemIdBytes(com.google.protobuf.ByteString value)
       A unique identifier of a product. It must be the exact same Merchant Center
       Item ID you use in your Google Merchant Center for this product.
       Required.
       
      string item_id = 1;
      Parameters:
      value - The bytes for itemId to set.
      Returns:
      This builder for chaining.
    • hasMerchantId

      public boolean hasMerchantId()
       ID of the Merchant Center Account.
       Required.
       
      optional int64 merchant_id = 2;
      Specified by:
      hasMerchantId in interface ItemAttributeOrBuilder
      Returns:
      Whether the merchantId field is set.
    • getMerchantId

      public long getMerchantId()
       ID of the Merchant Center Account.
       Required.
       
      optional int64 merchant_id = 2;
      Specified by:
      getMerchantId in interface ItemAttributeOrBuilder
      Returns:
      The merchantId.
    • setMerchantId

      public ItemAttribute.Builder setMerchantId(long value)
       ID of the Merchant Center Account.
       Required.
       
      optional int64 merchant_id = 2;
      Parameters:
      value - The merchantId to set.
      Returns:
      This builder for chaining.
    • clearMerchantId

      public ItemAttribute.Builder clearMerchantId()
       ID of the Merchant Center Account.
       Required.
       
      optional int64 merchant_id = 2;
      Returns:
      This builder for chaining.
    • getCountryCode

      public String getCountryCode()
       Common Locale Data Repository (CLDR) territory code of the country
       associated with the feed where your items are uploaded. See
       https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes
       for more information. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple countries.
       
      string country_code = 3;
      Specified by:
      getCountryCode in interface ItemAttributeOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       Common Locale Data Repository (CLDR) territory code of the country
       associated with the feed where your items are uploaded. See
       https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes
       for more information. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple countries.
       
      string country_code = 3;
      Specified by:
      getCountryCodeBytes in interface ItemAttributeOrBuilder
      Returns:
      The bytes for countryCode.
    • setCountryCode

      public ItemAttribute.Builder setCountryCode(String value)
       Common Locale Data Repository (CLDR) territory code of the country
       associated with the feed where your items are uploaded. See
       https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes
       for more information. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple countries.
       
      string country_code = 3;
      Parameters:
      value - The countryCode to set.
      Returns:
      This builder for chaining.
    • clearCountryCode

      public ItemAttribute.Builder clearCountryCode()
       Common Locale Data Repository (CLDR) territory code of the country
       associated with the feed where your items are uploaded. See
       https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes
       for more information. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple countries.
       
      string country_code = 3;
      Returns:
      This builder for chaining.
    • setCountryCodeBytes

      public ItemAttribute.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
       Common Locale Data Repository (CLDR) territory code of the country
       associated with the feed where your items are uploaded. See
       https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes
       for more information. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple countries.
       
      string country_code = 3;
      Parameters:
      value - The bytes for countryCode to set.
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       ISO 639-1 code of the language associated with the feed where your items
       are uploaded. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple languages.
       
      string language_code = 4;
      Specified by:
      getLanguageCode in interface ItemAttributeOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       ISO 639-1 code of the language associated with the feed where your items
       are uploaded. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple languages.
       
      string language_code = 4;
      Specified by:
      getLanguageCodeBytes in interface ItemAttributeOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public ItemAttribute.Builder setLanguageCode(String value)
       ISO 639-1 code of the language associated with the feed where your items
       are uploaded. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple languages.
       
      string language_code = 4;
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public ItemAttribute.Builder clearLanguageCode()
       ISO 639-1 code of the language associated with the feed where your items
       are uploaded. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple languages.
       
      string language_code = 4;
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public ItemAttribute.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       ISO 639-1 code of the language associated with the feed where your items
       are uploaded. This information is useful to differentiate product
       information in cases where a product (identified by item_id) is associated
       with multiple languages.
       
      string language_code = 4;
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • getQuantity

      public long getQuantity()
       The number of items sold. Defaults to 1 if not set.
       
      int64 quantity = 5;
      Specified by:
      getQuantity in interface ItemAttributeOrBuilder
      Returns:
      The quantity.
    • setQuantity

      public ItemAttribute.Builder setQuantity(long value)
       The number of items sold. Defaults to 1 if not set.
       
      int64 quantity = 5;
      Parameters:
      value - The quantity to set.
      Returns:
      This builder for chaining.
    • clearQuantity

      public ItemAttribute.Builder clearQuantity()
       The number of items sold. Defaults to 1 if not set.
       
      int64 quantity = 5;
      Returns:
      This builder for chaining.