Class ItemAttribute.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ItemAttribute.Builder>
com.google.ads.googleads.v18.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.GeneratedMessageV3.Builder<ItemAttribute.Builder> implements ItemAttributeOrBuilder
 Item attributes of the transaction.
 
Protobuf type google.ads.googleads.v18.common.ItemAttribute
  • Method Details

    • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
    • clone

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

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

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

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

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

      public ItemAttribute.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<ItemAttribute.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.GeneratedMessageV3.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.
    • setUnknownFields

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

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