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.v22.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.v22.common.ItemAttribute-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()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.ByteStringCommon Locale Data Repository (CLDR) territory code of the country associated with the feed where your items are uploaded.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA unique identifier of a product.com.google.protobuf.ByteStringA unique identifier of a product.ISO 639-1 code of the language associated with the feed where your items are uploaded.com.google.protobuf.ByteStringISO 639-1 code of the language associated with the feed where your items are uploaded.longID of the Merchant Center Account.longThe number of items sold.booleanID of the Merchant Center Account.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ItemAttribute other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCountryCode(String value) 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.setLanguageCode(String value) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ItemAttribute.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ItemAttribute.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ItemAttribute.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ItemAttribute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ItemAttribute.Builder>- Throws:
IOException
-
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:
getItemIdin interfaceItemAttributeOrBuilder- 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:
getItemIdBytesin interfaceItemAttributeOrBuilder- Returns:
- The bytes for itemId.
-
setItemId
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
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
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:
hasMerchantIdin interfaceItemAttributeOrBuilder- 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:
getMerchantIdin interfaceItemAttributeOrBuilder- Returns:
- The merchantId.
-
setMerchantId
ID of the Merchant Center Account. Required.
optional int64 merchant_id = 2;- Parameters:
value- The merchantId to set.- Returns:
- This builder for chaining.
-
clearMerchantId
ID of the Merchant Center Account. Required.
optional int64 merchant_id = 2;- Returns:
- This builder for chaining.
-
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:
getCountryCodein interfaceItemAttributeOrBuilder- 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:
getCountryCodeBytesin interfaceItemAttributeOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
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
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
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
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:
getLanguageCodein interfaceItemAttributeOrBuilder- 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:
getLanguageCodeBytesin interfaceItemAttributeOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
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
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
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:
getQuantityin interfaceItemAttributeOrBuilder- Returns:
- The quantity.
-
setQuantity
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
The number of items sold. Defaults to 1 if not set.
int64 quantity = 5;- Returns:
- This builder for chaining.
-