Class Attributes.Builder (0.5.0)

public static final class Attributes.Builder extends GeneratedMessageV3.Builder<Attributes.Builder> implements AttributesOrBuilder

Attributes for CSS Product.

Protobuf type google.shopping.css.v1.Attributes

Implements

AttributesOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

public Attributes.Builder addAdditionalImageLinks(String value)

Additional URL of images of the item.

repeated string additional_image_links = 12;

Parameter
NameDescription
valueString

The additionalImageLinks to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addAdditionalImageLinksBytes(ByteString value)

public Attributes.Builder addAdditionalImageLinksBytes(ByteString value)

Additional URL of images of the item.

repeated string additional_image_links = 12;

Parameter
NameDescription
valueByteString

The bytes of the additionalImageLinks to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

public Attributes.Builder addAllAdditionalImageLinks(Iterable<String> values)

Additional URL of images of the item.

repeated string additional_image_links = 12;

Parameter
NameDescription
valuesIterable<String>

The additionalImageLinks to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addAllCertifications(Iterable<? extends Certification> values)

public Attributes.Builder addAllCertifications(Iterable<? extends Certification> values)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameter
NameDescription
valuesIterable<? extends com.google.shopping.css.v1.Certification>
Returns
TypeDescription
Attributes.Builder

addAllExcludedDestinations(Iterable<String> values)

public Attributes.Builder addAllExcludedDestinations(Iterable<String> values)

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

repeated string excluded_destinations = 44;

Parameter
NameDescription
valuesIterable<String>

The excludedDestinations to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addAllIncludedDestinations(Iterable<String> values)

public Attributes.Builder addAllIncludedDestinations(Iterable<String> values)

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

repeated string included_destinations = 43;

Parameter
NameDescription
valuesIterable<String>

The includedDestinations to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addAllProductDetails(Iterable<? extends ProductDetail> values)

public Attributes.Builder addAllProductDetails(Iterable<? extends ProductDetail> values)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameter
NameDescription
valuesIterable<? extends com.google.shopping.css.v1.ProductDetail>
Returns
TypeDescription
Attributes.Builder

addAllProductHighlights(Iterable<String> values)

public Attributes.Builder addAllProductHighlights(Iterable<String> values)

Bullet points describing the most relevant highlights of a product.

repeated string product_highlights = 35;

Parameter
NameDescription
valuesIterable<String>

The productHighlights to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addAllProductTypes(Iterable<String> values)

public Attributes.Builder addAllProductTypes(Iterable<String> values)

Categories of the item (formatted as in products data specification).

repeated string product_types = 36;

Parameter
NameDescription
valuesIterable<String>

The productTypes to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addAllSizeTypes(Iterable<String> values)

public Attributes.Builder addAllSizeTypes(Iterable<String> values)

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see https://support.google.com/merchants/answer/6324497).

repeated string size_types = 28;

Parameter
NameDescription
valuesIterable<String>

The sizeTypes to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addCertifications(Certification value)

public Attributes.Builder addCertifications(Certification value)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameter
NameDescription
valueCertification
Returns
TypeDescription
Attributes.Builder

addCertifications(Certification.Builder builderForValue)

public Attributes.Builder addCertifications(Certification.Builder builderForValue)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameter
NameDescription
builderForValueCertification.Builder
Returns
TypeDescription
Attributes.Builder

addCertifications(int index, Certification value)

public Attributes.Builder addCertifications(int index, Certification value)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameters
NameDescription
indexint
valueCertification
Returns
TypeDescription
Attributes.Builder

addCertifications(int index, Certification.Builder builderForValue)

public Attributes.Builder addCertifications(int index, Certification.Builder builderForValue)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameters
NameDescription
indexint
builderForValueCertification.Builder
Returns
TypeDescription
Attributes.Builder

addCertificationsBuilder()

public Certification.Builder addCertificationsBuilder()

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Returns
TypeDescription
Certification.Builder

addCertificationsBuilder(int index)

public Certification.Builder addCertificationsBuilder(int index)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameter
NameDescription
indexint
Returns
TypeDescription
Certification.Builder

addExcludedDestinations(String value)

public Attributes.Builder addExcludedDestinations(String value)

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

repeated string excluded_destinations = 44;

Parameter
NameDescription
valueString

The excludedDestinations to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addExcludedDestinationsBytes(ByteString value)

public Attributes.Builder addExcludedDestinationsBytes(ByteString value)

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

repeated string excluded_destinations = 44;

Parameter
NameDescription
valueByteString

The bytes of the excludedDestinations to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addIncludedDestinations(String value)

public Attributes.Builder addIncludedDestinations(String value)

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

repeated string included_destinations = 43;

Parameter
NameDescription
valueString

The includedDestinations to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addIncludedDestinationsBytes(ByteString value)

public Attributes.Builder addIncludedDestinationsBytes(ByteString value)

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

repeated string included_destinations = 43;

Parameter
NameDescription
valueByteString

The bytes of the includedDestinations to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addProductDetails(ProductDetail value)

public Attributes.Builder addProductDetails(ProductDetail value)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameter
NameDescription
valueProductDetail
Returns
TypeDescription
Attributes.Builder

addProductDetails(ProductDetail.Builder builderForValue)

public Attributes.Builder addProductDetails(ProductDetail.Builder builderForValue)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameter
NameDescription
builderForValueProductDetail.Builder
Returns
TypeDescription
Attributes.Builder

addProductDetails(int index, ProductDetail value)

public Attributes.Builder addProductDetails(int index, ProductDetail value)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameters
NameDescription
indexint
valueProductDetail
Returns
TypeDescription
Attributes.Builder

addProductDetails(int index, ProductDetail.Builder builderForValue)

public Attributes.Builder addProductDetails(int index, ProductDetail.Builder builderForValue)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameters
NameDescription
indexint
builderForValueProductDetail.Builder
Returns
TypeDescription
Attributes.Builder

addProductDetailsBuilder()

public ProductDetail.Builder addProductDetailsBuilder()

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Returns
TypeDescription
ProductDetail.Builder

addProductDetailsBuilder(int index)

public ProductDetail.Builder addProductDetailsBuilder(int index)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductDetail.Builder

addProductHighlights(String value)

public Attributes.Builder addProductHighlights(String value)

Bullet points describing the most relevant highlights of a product.

repeated string product_highlights = 35;

Parameter
NameDescription
valueString

The productHighlights to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addProductHighlightsBytes(ByteString value)

public Attributes.Builder addProductHighlightsBytes(ByteString value)

Bullet points describing the most relevant highlights of a product.

repeated string product_highlights = 35;

Parameter
NameDescription
valueByteString

The bytes of the productHighlights to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addProductTypes(String value)

public Attributes.Builder addProductTypes(String value)

Categories of the item (formatted as in products data specification).

repeated string product_types = 36;

Parameter
NameDescription
valueString

The productTypes to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addProductTypesBytes(ByteString value)

public Attributes.Builder addProductTypesBytes(ByteString value)

Categories of the item (formatted as in products data specification).

repeated string product_types = 36;

Parameter
NameDescription
valueByteString

The bytes of the productTypes to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Attributes.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Attributes.Builder
Overrides

addSizeTypes(String value)

public Attributes.Builder addSizeTypes(String value)

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see https://support.google.com/merchants/answer/6324497).

repeated string size_types = 28;

Parameter
NameDescription
valueString

The sizeTypes to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

addSizeTypesBytes(ByteString value)

public Attributes.Builder addSizeTypesBytes(ByteString value)

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see https://support.google.com/merchants/answer/6324497).

repeated string size_types = 28;

Parameter
NameDescription
valueByteString

The bytes of the sizeTypes to add.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

build()

public Attributes build()
Returns
TypeDescription
Attributes

buildPartial()

public Attributes buildPartial()
Returns
TypeDescription
Attributes

clear()

public Attributes.Builder clear()
Returns
TypeDescription
Attributes.Builder
Overrides
public Attributes.Builder clearAdditionalImageLinks()

Additional URL of images of the item.

repeated string additional_image_links = 12;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearAdult()

public Attributes.Builder clearAdult()

Set to true if the item is targeted towards adults.

optional bool adult = 18;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearAgeGroup()

public Attributes.Builder clearAgeGroup()

Target age group of the item.

optional string age_group = 21;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearBrand()

public Attributes.Builder clearBrand()

Product Related Attributes.[14-36] Brand of the item.

optional string brand = 14;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearCertifications()

public Attributes.Builder clearCertifications()

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Returns
TypeDescription
Attributes.Builder

clearColor()

public Attributes.Builder clearColor()

Color of the item.

optional string color = 22;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearCppAdsRedirect()

public Attributes.Builder clearCppAdsRedirect()

Allows advertisers to override the item URL when the product is shown within the context of Product Ads.

optional string cpp_ads_redirect = 42;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

public Attributes.Builder clearCppLink()

URL directly linking to your the Product Detail Page of the CSS.

optional string cpp_link = 1;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

public Attributes.Builder clearCppMobileLink()

URL for the mobile-optimized version of the Product Detail Page of the CSS.

optional string cpp_mobile_link = 2;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearCustomLabel0()

public Attributes.Builder clearCustomLabel0()

Custom label 0 for custom grouping of items in a Shopping campaign.

optional string custom_label_0 = 46;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearCustomLabel1()

public Attributes.Builder clearCustomLabel1()

Custom label 1 for custom grouping of items in a Shopping campaign.

optional string custom_label_1 = 47;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearCustomLabel2()

public Attributes.Builder clearCustomLabel2()

Custom label 2 for custom grouping of items in a Shopping campaign.

optional string custom_label_2 = 48;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearCustomLabel3()

public Attributes.Builder clearCustomLabel3()

Custom label 3 for custom grouping of items in a Shopping campaign.

optional string custom_label_3 = 49;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearCustomLabel4()

public Attributes.Builder clearCustomLabel4()

Custom label 4 for custom grouping of items in a Shopping campaign.

optional string custom_label_4 = 50;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearDescription()

public Attributes.Builder clearDescription()

Description of the item.

optional string description = 13;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearExcludedDestinations()

public Attributes.Builder clearExcludedDestinations()

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

repeated string excluded_destinations = 44;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearExpirationDate()

public Attributes.Builder clearExpirationDate()

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. Note: It may take 2+ days from the expiration date for the item to actually get deleted.

.google.protobuf.Timestamp expiration_date = 40;

Returns
TypeDescription
Attributes.Builder

clearField(Descriptors.FieldDescriptor field)

public Attributes.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Attributes.Builder
Overrides

clearGender()

public Attributes.Builder clearGender()

Target gender of the item.

optional string gender = 23;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearGoogleProductCategory()

public Attributes.Builder clearGoogleProductCategory()

Google's category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.

optional string google_product_category = 17;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearGtin()

public Attributes.Builder clearGtin()

Global Trade Item Number (GTIN) of the item.

optional string gtin = 16;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearHeadlineOfferCondition()

public Attributes.Builder clearHeadlineOfferCondition()

Condition of the headline offer.

optional string headline_offer_condition = 6;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

public Attributes.Builder clearHeadlineOfferLink()

Link to the headline offer.

optional string headline_offer_link = 8;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

public Attributes.Builder clearHeadlineOfferMobileLink()

Mobile Link to the headline offer.

optional string headline_offer_mobile_link = 9;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearHeadlineOfferPrice()

public Attributes.Builder clearHeadlineOfferPrice()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_price = 7;

Returns
TypeDescription
Attributes.Builder

clearHeadlineOfferShippingPrice()

public Attributes.Builder clearHeadlineOfferShippingPrice()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_shipping_price = 41;

Returns
TypeDescription
Attributes.Builder

clearHighPrice()

public Attributes.Builder clearHighPrice()

High Price of the aggregate offer.

.google.shopping.type.Price high_price = 4;

Returns
TypeDescription
Attributes.Builder
public Attributes.Builder clearImageLink()

URL of an image of the item.

optional string image_link = 11;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearIncludedDestinations()

public Attributes.Builder clearIncludedDestinations()

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

repeated string included_destinations = 43;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearIsBundle()

public Attributes.Builder clearIsBundle()

Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.

optional bool is_bundle = 20;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearItemGroupId()

public Attributes.Builder clearItemGroupId()

Shared identifier for all variants of the same product.

optional string item_group_id = 29;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearLowPrice()

public Attributes.Builder clearLowPrice()

Low Price of the aggregate offer.

.google.shopping.type.Price low_price = 3;

Returns
TypeDescription
Attributes.Builder

clearMaterial()

public Attributes.Builder clearMaterial()

The material of which the item is made.

optional string material = 24;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearMpn()

public Attributes.Builder clearMpn()

Manufacturer Part Number (MPN) of the item.

optional string mpn = 15;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearMultipack()

public Attributes.Builder clearMultipack()

The number of identical products in a merchant-defined multipack.

optional int64 multipack = 19;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearNumberOfOffers()

public Attributes.Builder clearNumberOfOffers()

The number of aggregate offers.

optional int64 number_of_offers = 5;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Attributes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Attributes.Builder
Overrides

clearPattern()

public Attributes.Builder clearPattern()

The item's pattern (e.g. polka dots).

optional string pattern = 25;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearPause()

public Attributes.Builder clearPause()

Publication of this item will be temporarily paused.

optional string pause = 45;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearProductDetails()

public Attributes.Builder clearProductDetails()

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Returns
TypeDescription
Attributes.Builder

clearProductHeight()

public Attributes.Builder clearProductHeight()

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_height = 34;

Returns
TypeDescription
Attributes.Builder

clearProductHighlights()

public Attributes.Builder clearProductHighlights()

Bullet points describing the most relevant highlights of a product.

repeated string product_highlights = 35;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearProductLength()

public Attributes.Builder clearProductLength()

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_length = 32;

Returns
TypeDescription
Attributes.Builder

clearProductTypes()

public Attributes.Builder clearProductTypes()

Categories of the item (formatted as in products data specification).

repeated string product_types = 36;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearProductWeight()

public Attributes.Builder clearProductWeight()

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

.google.shopping.css.v1.ProductWeight product_weight = 31;

Returns
TypeDescription
Attributes.Builder

clearProductWidth()

public Attributes.Builder clearProductWidth()

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_width = 33;

Returns
TypeDescription
Attributes.Builder

clearSize()

public Attributes.Builder clearSize()

Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see https://support.google.com/merchants/answer/6324492).

optional string size = 26;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearSizeSystem()

public Attributes.Builder clearSizeSystem()

System in which the size is specified. Recommended for apparel items.

optional string size_system = 27;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearSizeTypes()

public Attributes.Builder clearSizeTypes()

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see https://support.google.com/merchants/answer/6324497).

repeated string size_types = 28;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clearTitle()

public Attributes.Builder clearTitle()

Title of the item.

optional string title = 10;

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

clone()

public Attributes.Builder clone()
Returns
TypeDescription
Attributes.Builder
Overrides
public String getAdditionalImageLinks(int index)

Additional URL of images of the item.

repeated string additional_image_links = 12;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The additionalImageLinks at the given index.

getAdditionalImageLinksBytes(int index)

public ByteString getAdditionalImageLinksBytes(int index)

Additional URL of images of the item.

repeated string additional_image_links = 12;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the additionalImageLinks at the given index.

getAdditionalImageLinksCount()

public int getAdditionalImageLinksCount()

Additional URL of images of the item.

repeated string additional_image_links = 12;

Returns
TypeDescription
int

The count of additionalImageLinks.

public ProtocolStringList getAdditionalImageLinksList()

Additional URL of images of the item.

repeated string additional_image_links = 12;

Returns
TypeDescription
ProtocolStringList

A list containing the additionalImageLinks.

getAdult()

public boolean getAdult()

Set to true if the item is targeted towards adults.

optional bool adult = 18;

Returns
TypeDescription
boolean

The adult.

getAgeGroup()

public String getAgeGroup()

Target age group of the item.

optional string age_group = 21;

Returns
TypeDescription
String

The ageGroup.

getAgeGroupBytes()

public ByteString getAgeGroupBytes()

Target age group of the item.

optional string age_group = 21;

Returns
TypeDescription
ByteString

The bytes for ageGroup.

getBrand()

public String getBrand()

Product Related Attributes.[14-36] Brand of the item.

optional string brand = 14;

Returns
TypeDescription
String

The brand.

getBrandBytes()

public ByteString getBrandBytes()

Product Related Attributes.[14-36] Brand of the item.

optional string brand = 14;

Returns
TypeDescription
ByteString

The bytes for brand.

getCertifications(int index)

public Certification getCertifications(int index)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameter
NameDescription
indexint
Returns
TypeDescription
Certification

getCertificationsBuilder(int index)

public Certification.Builder getCertificationsBuilder(int index)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameter
NameDescription
indexint
Returns
TypeDescription
Certification.Builder

getCertificationsBuilderList()

public List<Certification.Builder> getCertificationsBuilderList()

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Returns
TypeDescription
List<Builder>

getCertificationsCount()

public int getCertificationsCount()

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Returns
TypeDescription
int

getCertificationsList()

public List<Certification> getCertificationsList()

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Returns
TypeDescription
List<Certification>

getCertificationsOrBuilder(int index)

public CertificationOrBuilder getCertificationsOrBuilder(int index)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameter
NameDescription
indexint
Returns
TypeDescription
CertificationOrBuilder

getCertificationsOrBuilderList()

public List<? extends CertificationOrBuilder> getCertificationsOrBuilderList()

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Returns
TypeDescription
List<? extends com.google.shopping.css.v1.CertificationOrBuilder>

getColor()

public String getColor()

Color of the item.

optional string color = 22;

Returns
TypeDescription
String

The color.

getColorBytes()

public ByteString getColorBytes()

Color of the item.

optional string color = 22;

Returns
TypeDescription
ByteString

The bytes for color.

getCppAdsRedirect()

public String getCppAdsRedirect()

Allows advertisers to override the item URL when the product is shown within the context of Product Ads.

optional string cpp_ads_redirect = 42;

Returns
TypeDescription
String

The cppAdsRedirect.

getCppAdsRedirectBytes()

public ByteString getCppAdsRedirectBytes()

Allows advertisers to override the item URL when the product is shown within the context of Product Ads.

optional string cpp_ads_redirect = 42;

Returns
TypeDescription
ByteString

The bytes for cppAdsRedirect.

public String getCppLink()

URL directly linking to your the Product Detail Page of the CSS.

optional string cpp_link = 1;

Returns
TypeDescription
String

The cppLink.

getCppLinkBytes()

public ByteString getCppLinkBytes()

URL directly linking to your the Product Detail Page of the CSS.

optional string cpp_link = 1;

Returns
TypeDescription
ByteString

The bytes for cppLink.

public String getCppMobileLink()

URL for the mobile-optimized version of the Product Detail Page of the CSS.

optional string cpp_mobile_link = 2;

Returns
TypeDescription
String

The cppMobileLink.

getCppMobileLinkBytes()

public ByteString getCppMobileLinkBytes()

URL for the mobile-optimized version of the Product Detail Page of the CSS.

optional string cpp_mobile_link = 2;

Returns
TypeDescription
ByteString

The bytes for cppMobileLink.

getCustomLabel0()

public String getCustomLabel0()

Custom label 0 for custom grouping of items in a Shopping campaign.

optional string custom_label_0 = 46;

Returns
TypeDescription
String

The customLabel0.

getCustomLabel0Bytes()

public ByteString getCustomLabel0Bytes()

Custom label 0 for custom grouping of items in a Shopping campaign.

optional string custom_label_0 = 46;

Returns
TypeDescription
ByteString

The bytes for customLabel0.

getCustomLabel1()

public String getCustomLabel1()

Custom label 1 for custom grouping of items in a Shopping campaign.

optional string custom_label_1 = 47;

Returns
TypeDescription
String

The customLabel1.

getCustomLabel1Bytes()

public ByteString getCustomLabel1Bytes()

Custom label 1 for custom grouping of items in a Shopping campaign.

optional string custom_label_1 = 47;

Returns
TypeDescription
ByteString

The bytes for customLabel1.

getCustomLabel2()

public String getCustomLabel2()

Custom label 2 for custom grouping of items in a Shopping campaign.

optional string custom_label_2 = 48;

Returns
TypeDescription
String

The customLabel2.

getCustomLabel2Bytes()

public ByteString getCustomLabel2Bytes()

Custom label 2 for custom grouping of items in a Shopping campaign.

optional string custom_label_2 = 48;

Returns
TypeDescription
ByteString

The bytes for customLabel2.

getCustomLabel3()

public String getCustomLabel3()

Custom label 3 for custom grouping of items in a Shopping campaign.

optional string custom_label_3 = 49;

Returns
TypeDescription
String

The customLabel3.

getCustomLabel3Bytes()

public ByteString getCustomLabel3Bytes()

Custom label 3 for custom grouping of items in a Shopping campaign.

optional string custom_label_3 = 49;

Returns
TypeDescription
ByteString

The bytes for customLabel3.

getCustomLabel4()

public String getCustomLabel4()

Custom label 4 for custom grouping of items in a Shopping campaign.

optional string custom_label_4 = 50;

Returns
TypeDescription
String

The customLabel4.

getCustomLabel4Bytes()

public ByteString getCustomLabel4Bytes()

Custom label 4 for custom grouping of items in a Shopping campaign.

optional string custom_label_4 = 50;

Returns
TypeDescription
ByteString

The bytes for customLabel4.

getDefaultInstanceForType()

public Attributes getDefaultInstanceForType()
Returns
TypeDescription
Attributes

getDescription()

public String getDescription()

Description of the item.

optional string description = 13;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the item.

optional string description = 13;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExcludedDestinations(int index)

public String getExcludedDestinations(int index)

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

repeated string excluded_destinations = 44;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The excludedDestinations at the given index.

getExcludedDestinationsBytes(int index)

public ByteString getExcludedDestinationsBytes(int index)

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

repeated string excluded_destinations = 44;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the excludedDestinations at the given index.

getExcludedDestinationsCount()

public int getExcludedDestinationsCount()

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

repeated string excluded_destinations = 44;

Returns
TypeDescription
int

The count of excludedDestinations.

getExcludedDestinationsList()

public ProtocolStringList getExcludedDestinationsList()

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

repeated string excluded_destinations = 44;

Returns
TypeDescription
ProtocolStringList

A list containing the excludedDestinations.

getExpirationDate()

public Timestamp getExpirationDate()

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. Note: It may take 2+ days from the expiration date for the item to actually get deleted.

.google.protobuf.Timestamp expiration_date = 40;

Returns
TypeDescription
Timestamp

The expirationDate.

getExpirationDateBuilder()

public Timestamp.Builder getExpirationDateBuilder()

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. Note: It may take 2+ days from the expiration date for the item to actually get deleted.

.google.protobuf.Timestamp expiration_date = 40;

Returns
TypeDescription
Builder

getExpirationDateOrBuilder()

public TimestampOrBuilder getExpirationDateOrBuilder()

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. Note: It may take 2+ days from the expiration date for the item to actually get deleted.

.google.protobuf.Timestamp expiration_date = 40;

Returns
TypeDescription
TimestampOrBuilder

getGender()

public String getGender()

Target gender of the item.

optional string gender = 23;

Returns
TypeDescription
String

The gender.

getGenderBytes()

public ByteString getGenderBytes()

Target gender of the item.

optional string gender = 23;

Returns
TypeDescription
ByteString

The bytes for gender.

getGoogleProductCategory()

public String getGoogleProductCategory()

Google's category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.

optional string google_product_category = 17;

Returns
TypeDescription
String

The googleProductCategory.

getGoogleProductCategoryBytes()

public ByteString getGoogleProductCategoryBytes()

Google's category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.

optional string google_product_category = 17;

Returns
TypeDescription
ByteString

The bytes for googleProductCategory.

getGtin()

public String getGtin()

Global Trade Item Number (GTIN) of the item.

optional string gtin = 16;

Returns
TypeDescription
String

The gtin.

getGtinBytes()

public ByteString getGtinBytes()

Global Trade Item Number (GTIN) of the item.

optional string gtin = 16;

Returns
TypeDescription
ByteString

The bytes for gtin.

getHeadlineOfferCondition()

public String getHeadlineOfferCondition()

Condition of the headline offer.

optional string headline_offer_condition = 6;

Returns
TypeDescription
String

The headlineOfferCondition.

getHeadlineOfferConditionBytes()

public ByteString getHeadlineOfferConditionBytes()

Condition of the headline offer.

optional string headline_offer_condition = 6;

Returns
TypeDescription
ByteString

The bytes for headlineOfferCondition.

public String getHeadlineOfferLink()

Link to the headline offer.

optional string headline_offer_link = 8;

Returns
TypeDescription
String

The headlineOfferLink.

getHeadlineOfferLinkBytes()

public ByteString getHeadlineOfferLinkBytes()

Link to the headline offer.

optional string headline_offer_link = 8;

Returns
TypeDescription
ByteString

The bytes for headlineOfferLink.

public String getHeadlineOfferMobileLink()

Mobile Link to the headline offer.

optional string headline_offer_mobile_link = 9;

Returns
TypeDescription
String

The headlineOfferMobileLink.

getHeadlineOfferMobileLinkBytes()

public ByteString getHeadlineOfferMobileLinkBytes()

Mobile Link to the headline offer.

optional string headline_offer_mobile_link = 9;

Returns
TypeDescription
ByteString

The bytes for headlineOfferMobileLink.

getHeadlineOfferPrice()

public Price getHeadlineOfferPrice()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_price = 7;

Returns
TypeDescription
Price

The headlineOfferPrice.

getHeadlineOfferPriceBuilder()

public Price.Builder getHeadlineOfferPriceBuilder()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_price = 7;

Returns
TypeDescription
Price.Builder

getHeadlineOfferPriceOrBuilder()

public PriceOrBuilder getHeadlineOfferPriceOrBuilder()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_price = 7;

Returns
TypeDescription
PriceOrBuilder

getHeadlineOfferShippingPrice()

public Price getHeadlineOfferShippingPrice()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_shipping_price = 41;

Returns
TypeDescription
Price

The headlineOfferShippingPrice.

getHeadlineOfferShippingPriceBuilder()

public Price.Builder getHeadlineOfferShippingPriceBuilder()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_shipping_price = 41;

Returns
TypeDescription
Price.Builder

getHeadlineOfferShippingPriceOrBuilder()

public PriceOrBuilder getHeadlineOfferShippingPriceOrBuilder()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_shipping_price = 41;

Returns
TypeDescription
PriceOrBuilder

getHighPrice()

public Price getHighPrice()

High Price of the aggregate offer.

.google.shopping.type.Price high_price = 4;

Returns
TypeDescription
Price

The highPrice.

getHighPriceBuilder()

public Price.Builder getHighPriceBuilder()

High Price of the aggregate offer.

.google.shopping.type.Price high_price = 4;

Returns
TypeDescription
Price.Builder

getHighPriceOrBuilder()

public PriceOrBuilder getHighPriceOrBuilder()

High Price of the aggregate offer.

.google.shopping.type.Price high_price = 4;

Returns
TypeDescription
PriceOrBuilder
public String getImageLink()

URL of an image of the item.

optional string image_link = 11;

Returns
TypeDescription
String

The imageLink.

getImageLinkBytes()

public ByteString getImageLinkBytes()

URL of an image of the item.

optional string image_link = 11;

Returns
TypeDescription
ByteString

The bytes for imageLink.

getIncludedDestinations(int index)

public String getIncludedDestinations(int index)

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

repeated string included_destinations = 43;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The includedDestinations at the given index.

getIncludedDestinationsBytes(int index)

public ByteString getIncludedDestinationsBytes(int index)

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

repeated string included_destinations = 43;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the includedDestinations at the given index.

getIncludedDestinationsCount()

public int getIncludedDestinationsCount()

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

repeated string included_destinations = 43;

Returns
TypeDescription
int

The count of includedDestinations.

getIncludedDestinationsList()

public ProtocolStringList getIncludedDestinationsList()

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

repeated string included_destinations = 43;

Returns
TypeDescription
ProtocolStringList

A list containing the includedDestinations.

getIsBundle()

public boolean getIsBundle()

Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.

optional bool is_bundle = 20;

Returns
TypeDescription
boolean

The isBundle.

getItemGroupId()

public String getItemGroupId()

Shared identifier for all variants of the same product.

optional string item_group_id = 29;

Returns
TypeDescription
String

The itemGroupId.

getItemGroupIdBytes()

public ByteString getItemGroupIdBytes()

Shared identifier for all variants of the same product.

optional string item_group_id = 29;

Returns
TypeDescription
ByteString

The bytes for itemGroupId.

getLowPrice()

public Price getLowPrice()

Low Price of the aggregate offer.

.google.shopping.type.Price low_price = 3;

Returns
TypeDescription
Price

The lowPrice.

getLowPriceBuilder()

public Price.Builder getLowPriceBuilder()

Low Price of the aggregate offer.

.google.shopping.type.Price low_price = 3;

Returns
TypeDescription
Price.Builder

getLowPriceOrBuilder()

public PriceOrBuilder getLowPriceOrBuilder()

Low Price of the aggregate offer.

.google.shopping.type.Price low_price = 3;

Returns
TypeDescription
PriceOrBuilder

getMaterial()

public String getMaterial()

The material of which the item is made.

optional string material = 24;

Returns
TypeDescription
String

The material.

getMaterialBytes()

public ByteString getMaterialBytes()

The material of which the item is made.

optional string material = 24;

Returns
TypeDescription
ByteString

The bytes for material.

getMpn()

public String getMpn()

Manufacturer Part Number (MPN) of the item.

optional string mpn = 15;

Returns
TypeDescription
String

The mpn.

getMpnBytes()

public ByteString getMpnBytes()

Manufacturer Part Number (MPN) of the item.

optional string mpn = 15;

Returns
TypeDescription
ByteString

The bytes for mpn.

getMultipack()

public long getMultipack()

The number of identical products in a merchant-defined multipack.

optional int64 multipack = 19;

Returns
TypeDescription
long

The multipack.

getNumberOfOffers()

public long getNumberOfOffers()

The number of aggregate offers.

optional int64 number_of_offers = 5;

Returns
TypeDescription
long

The numberOfOffers.

getPattern()

public String getPattern()

The item's pattern (e.g. polka dots).

optional string pattern = 25;

Returns
TypeDescription
String

The pattern.

getPatternBytes()

public ByteString getPatternBytes()

The item's pattern (e.g. polka dots).

optional string pattern = 25;

Returns
TypeDescription
ByteString

The bytes for pattern.

getPause()

public String getPause()

Publication of this item will be temporarily paused.

optional string pause = 45;

Returns
TypeDescription
String

The pause.

getPauseBytes()

public ByteString getPauseBytes()

Publication of this item will be temporarily paused.

optional string pause = 45;

Returns
TypeDescription
ByteString

The bytes for pause.

getProductDetails(int index)

public ProductDetail getProductDetails(int index)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductDetail

getProductDetailsBuilder(int index)

public ProductDetail.Builder getProductDetailsBuilder(int index)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductDetail.Builder

getProductDetailsBuilderList()

public List<ProductDetail.Builder> getProductDetailsBuilderList()

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Returns
TypeDescription
List<Builder>

getProductDetailsCount()

public int getProductDetailsCount()

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Returns
TypeDescription
int

getProductDetailsList()

public List<ProductDetail> getProductDetailsList()

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Returns
TypeDescription
List<ProductDetail>

getProductDetailsOrBuilder(int index)

public ProductDetailOrBuilder getProductDetailsOrBuilder(int index)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductDetailOrBuilder

getProductDetailsOrBuilderList()

public List<? extends ProductDetailOrBuilder> getProductDetailsOrBuilderList()

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Returns
TypeDescription
List<? extends com.google.shopping.css.v1.ProductDetailOrBuilder>

getProductHeight()

public ProductDimension getProductHeight()

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_height = 34;

Returns
TypeDescription
ProductDimension

The productHeight.

getProductHeightBuilder()

public ProductDimension.Builder getProductHeightBuilder()

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_height = 34;

Returns
TypeDescription
ProductDimension.Builder

getProductHeightOrBuilder()

public ProductDimensionOrBuilder getProductHeightOrBuilder()

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_height = 34;

Returns
TypeDescription
ProductDimensionOrBuilder

getProductHighlights(int index)

public String getProductHighlights(int index)

Bullet points describing the most relevant highlights of a product.

repeated string product_highlights = 35;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The productHighlights at the given index.

getProductHighlightsBytes(int index)

public ByteString getProductHighlightsBytes(int index)

Bullet points describing the most relevant highlights of a product.

repeated string product_highlights = 35;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the productHighlights at the given index.

getProductHighlightsCount()

public int getProductHighlightsCount()

Bullet points describing the most relevant highlights of a product.

repeated string product_highlights = 35;

Returns
TypeDescription
int

The count of productHighlights.

getProductHighlightsList()

public ProtocolStringList getProductHighlightsList()

Bullet points describing the most relevant highlights of a product.

repeated string product_highlights = 35;

Returns
TypeDescription
ProtocolStringList

A list containing the productHighlights.

getProductLength()

public ProductDimension getProductLength()

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_length = 32;

Returns
TypeDescription
ProductDimension

The productLength.

getProductLengthBuilder()

public ProductDimension.Builder getProductLengthBuilder()

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_length = 32;

Returns
TypeDescription
ProductDimension.Builder

getProductLengthOrBuilder()

public ProductDimensionOrBuilder getProductLengthOrBuilder()

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_length = 32;

Returns
TypeDescription
ProductDimensionOrBuilder

getProductTypes(int index)

public String getProductTypes(int index)

Categories of the item (formatted as in products data specification).

repeated string product_types = 36;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The productTypes at the given index.

getProductTypesBytes(int index)

public ByteString getProductTypesBytes(int index)

Categories of the item (formatted as in products data specification).

repeated string product_types = 36;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the productTypes at the given index.

getProductTypesCount()

public int getProductTypesCount()

Categories of the item (formatted as in products data specification).

repeated string product_types = 36;

Returns
TypeDescription
int

The count of productTypes.

getProductTypesList()

public ProtocolStringList getProductTypesList()

Categories of the item (formatted as in products data specification).

repeated string product_types = 36;

Returns
TypeDescription
ProtocolStringList

A list containing the productTypes.

getProductWeight()

public ProductWeight getProductWeight()

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

.google.shopping.css.v1.ProductWeight product_weight = 31;

Returns
TypeDescription
ProductWeight

The productWeight.

getProductWeightBuilder()

public ProductWeight.Builder getProductWeightBuilder()

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

.google.shopping.css.v1.ProductWeight product_weight = 31;

Returns
TypeDescription
ProductWeight.Builder

getProductWeightOrBuilder()

public ProductWeightOrBuilder getProductWeightOrBuilder()

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

.google.shopping.css.v1.ProductWeight product_weight = 31;

Returns
TypeDescription
ProductWeightOrBuilder

getProductWidth()

public ProductDimension getProductWidth()

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_width = 33;

Returns
TypeDescription
ProductDimension

The productWidth.

getProductWidthBuilder()

public ProductDimension.Builder getProductWidthBuilder()

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_width = 33;

Returns
TypeDescription
ProductDimension.Builder

getProductWidthOrBuilder()

public ProductDimensionOrBuilder getProductWidthOrBuilder()

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_width = 33;

Returns
TypeDescription
ProductDimensionOrBuilder

getSize()

public String getSize()

Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see https://support.google.com/merchants/answer/6324492).

optional string size = 26;

Returns
TypeDescription
String

The size.

getSizeBytes()

public ByteString getSizeBytes()

Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see https://support.google.com/merchants/answer/6324492).

optional string size = 26;

Returns
TypeDescription
ByteString

The bytes for size.

getSizeSystem()

public String getSizeSystem()

System in which the size is specified. Recommended for apparel items.

optional string size_system = 27;

Returns
TypeDescription
String

The sizeSystem.

getSizeSystemBytes()

public ByteString getSizeSystemBytes()

System in which the size is specified. Recommended for apparel items.

optional string size_system = 27;

Returns
TypeDescription
ByteString

The bytes for sizeSystem.

getSizeTypes(int index)

public String getSizeTypes(int index)

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see https://support.google.com/merchants/answer/6324497).

repeated string size_types = 28;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The sizeTypes at the given index.

getSizeTypesBytes(int index)

public ByteString getSizeTypesBytes(int index)

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see https://support.google.com/merchants/answer/6324497).

repeated string size_types = 28;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the sizeTypes at the given index.

getSizeTypesCount()

public int getSizeTypesCount()

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see https://support.google.com/merchants/answer/6324497).

repeated string size_types = 28;

Returns
TypeDescription
int

The count of sizeTypes.

getSizeTypesList()

public ProtocolStringList getSizeTypesList()

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see https://support.google.com/merchants/answer/6324497).

repeated string size_types = 28;

Returns
TypeDescription
ProtocolStringList

A list containing the sizeTypes.

getTitle()

public String getTitle()

Title of the item.

optional string title = 10;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Title of the item.

optional string title = 10;

Returns
TypeDescription
ByteString

The bytes for title.

hasAdult()

public boolean hasAdult()

Set to true if the item is targeted towards adults.

optional bool adult = 18;

Returns
TypeDescription
boolean

Whether the adult field is set.

hasAgeGroup()

public boolean hasAgeGroup()

Target age group of the item.

optional string age_group = 21;

Returns
TypeDescription
boolean

Whether the ageGroup field is set.

hasBrand()

public boolean hasBrand()

Product Related Attributes.[14-36] Brand of the item.

optional string brand = 14;

Returns
TypeDescription
boolean

Whether the brand field is set.

hasColor()

public boolean hasColor()

Color of the item.

optional string color = 22;

Returns
TypeDescription
boolean

Whether the color field is set.

hasCppAdsRedirect()

public boolean hasCppAdsRedirect()

Allows advertisers to override the item URL when the product is shown within the context of Product Ads.

optional string cpp_ads_redirect = 42;

Returns
TypeDescription
boolean

Whether the cppAdsRedirect field is set.

public boolean hasCppLink()

URL directly linking to your the Product Detail Page of the CSS.

optional string cpp_link = 1;

Returns
TypeDescription
boolean

Whether the cppLink field is set.

public boolean hasCppMobileLink()

URL for the mobile-optimized version of the Product Detail Page of the CSS.

optional string cpp_mobile_link = 2;

Returns
TypeDescription
boolean

Whether the cppMobileLink field is set.

hasCustomLabel0()

public boolean hasCustomLabel0()

Custom label 0 for custom grouping of items in a Shopping campaign.

optional string custom_label_0 = 46;

Returns
TypeDescription
boolean

Whether the customLabel0 field is set.

hasCustomLabel1()

public boolean hasCustomLabel1()

Custom label 1 for custom grouping of items in a Shopping campaign.

optional string custom_label_1 = 47;

Returns
TypeDescription
boolean

Whether the customLabel1 field is set.

hasCustomLabel2()

public boolean hasCustomLabel2()

Custom label 2 for custom grouping of items in a Shopping campaign.

optional string custom_label_2 = 48;

Returns
TypeDescription
boolean

Whether the customLabel2 field is set.

hasCustomLabel3()

public boolean hasCustomLabel3()

Custom label 3 for custom grouping of items in a Shopping campaign.

optional string custom_label_3 = 49;

Returns
TypeDescription
boolean

Whether the customLabel3 field is set.

hasCustomLabel4()

public boolean hasCustomLabel4()

Custom label 4 for custom grouping of items in a Shopping campaign.

optional string custom_label_4 = 50;

Returns
TypeDescription
boolean

Whether the customLabel4 field is set.

hasDescription()

public boolean hasDescription()

Description of the item.

optional string description = 13;

Returns
TypeDescription
boolean

Whether the description field is set.

hasExpirationDate()

public boolean hasExpirationDate()

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. Note: It may take 2+ days from the expiration date for the item to actually get deleted.

.google.protobuf.Timestamp expiration_date = 40;

Returns
TypeDescription
boolean

Whether the expirationDate field is set.

hasGender()

public boolean hasGender()

Target gender of the item.

optional string gender = 23;

Returns
TypeDescription
boolean

Whether the gender field is set.

hasGoogleProductCategory()

public boolean hasGoogleProductCategory()

Google's category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.

optional string google_product_category = 17;

Returns
TypeDescription
boolean

Whether the googleProductCategory field is set.

hasGtin()

public boolean hasGtin()

Global Trade Item Number (GTIN) of the item.

optional string gtin = 16;

Returns
TypeDescription
boolean

Whether the gtin field is set.

hasHeadlineOfferCondition()

public boolean hasHeadlineOfferCondition()

Condition of the headline offer.

optional string headline_offer_condition = 6;

Returns
TypeDescription
boolean

Whether the headlineOfferCondition field is set.

public boolean hasHeadlineOfferLink()

Link to the headline offer.

optional string headline_offer_link = 8;

Returns
TypeDescription
boolean

Whether the headlineOfferLink field is set.

public boolean hasHeadlineOfferMobileLink()

Mobile Link to the headline offer.

optional string headline_offer_mobile_link = 9;

Returns
TypeDescription
boolean

Whether the headlineOfferMobileLink field is set.

hasHeadlineOfferPrice()

public boolean hasHeadlineOfferPrice()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_price = 7;

Returns
TypeDescription
boolean

Whether the headlineOfferPrice field is set.

hasHeadlineOfferShippingPrice()

public boolean hasHeadlineOfferShippingPrice()

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_shipping_price = 41;

Returns
TypeDescription
boolean

Whether the headlineOfferShippingPrice field is set.

hasHighPrice()

public boolean hasHighPrice()

High Price of the aggregate offer.

.google.shopping.type.Price high_price = 4;

Returns
TypeDescription
boolean

Whether the highPrice field is set.

public boolean hasImageLink()

URL of an image of the item.

optional string image_link = 11;

Returns
TypeDescription
boolean

Whether the imageLink field is set.

hasIsBundle()

public boolean hasIsBundle()

Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.

optional bool is_bundle = 20;

Returns
TypeDescription
boolean

Whether the isBundle field is set.

hasItemGroupId()

public boolean hasItemGroupId()

Shared identifier for all variants of the same product.

optional string item_group_id = 29;

Returns
TypeDescription
boolean

Whether the itemGroupId field is set.

hasLowPrice()

public boolean hasLowPrice()

Low Price of the aggregate offer.

.google.shopping.type.Price low_price = 3;

Returns
TypeDescription
boolean

Whether the lowPrice field is set.

hasMaterial()

public boolean hasMaterial()

The material of which the item is made.

optional string material = 24;

Returns
TypeDescription
boolean

Whether the material field is set.

hasMpn()

public boolean hasMpn()

Manufacturer Part Number (MPN) of the item.

optional string mpn = 15;

Returns
TypeDescription
boolean

Whether the mpn field is set.

hasMultipack()

public boolean hasMultipack()

The number of identical products in a merchant-defined multipack.

optional int64 multipack = 19;

Returns
TypeDescription
boolean

Whether the multipack field is set.

hasNumberOfOffers()

public boolean hasNumberOfOffers()

The number of aggregate offers.

optional int64 number_of_offers = 5;

Returns
TypeDescription
boolean

Whether the numberOfOffers field is set.

hasPattern()

public boolean hasPattern()

The item's pattern (e.g. polka dots).

optional string pattern = 25;

Returns
TypeDescription
boolean

Whether the pattern field is set.

hasPause()

public boolean hasPause()

Publication of this item will be temporarily paused.

optional string pause = 45;

Returns
TypeDescription
boolean

Whether the pause field is set.

hasProductHeight()

public boolean hasProductHeight()

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_height = 34;

Returns
TypeDescription
boolean

Whether the productHeight field is set.

hasProductLength()

public boolean hasProductLength()

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_length = 32;

Returns
TypeDescription
boolean

Whether the productLength field is set.

hasProductWeight()

public boolean hasProductWeight()

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

.google.shopping.css.v1.ProductWeight product_weight = 31;

Returns
TypeDescription
boolean

Whether the productWeight field is set.

hasProductWidth()

public boolean hasProductWidth()

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_width = 33;

Returns
TypeDescription
boolean

Whether the productWidth field is set.

hasSize()

public boolean hasSize()

Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see https://support.google.com/merchants/answer/6324492).

optional string size = 26;

Returns
TypeDescription
boolean

Whether the size field is set.

hasSizeSystem()

public boolean hasSizeSystem()

System in which the size is specified. Recommended for apparel items.

optional string size_system = 27;

Returns
TypeDescription
boolean

Whether the sizeSystem field is set.

hasTitle()

public boolean hasTitle()

Title of the item.

optional string title = 10;

Returns
TypeDescription
boolean

Whether the title field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExpirationDate(Timestamp value)

public Attributes.Builder mergeExpirationDate(Timestamp value)

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. Note: It may take 2+ days from the expiration date for the item to actually get deleted.

.google.protobuf.Timestamp expiration_date = 40;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Attributes.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Attributes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Attributes.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Attributes.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Attributes.Builder
Overrides

mergeFrom(Attributes other)

public Attributes.Builder mergeFrom(Attributes other)
Parameter
NameDescription
otherAttributes
Returns
TypeDescription
Attributes.Builder

mergeHeadlineOfferPrice(Price value)

public Attributes.Builder mergeHeadlineOfferPrice(Price value)

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_price = 7;

Parameter
NameDescription
valuePrice
Returns
TypeDescription
Attributes.Builder

mergeHeadlineOfferShippingPrice(Price value)

public Attributes.Builder mergeHeadlineOfferShippingPrice(Price value)

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_shipping_price = 41;

Parameter
NameDescription
valuePrice
Returns
TypeDescription
Attributes.Builder

mergeHighPrice(Price value)

public Attributes.Builder mergeHighPrice(Price value)

High Price of the aggregate offer.

.google.shopping.type.Price high_price = 4;

Parameter
NameDescription
valuePrice
Returns
TypeDescription
Attributes.Builder

mergeLowPrice(Price value)

public Attributes.Builder mergeLowPrice(Price value)

Low Price of the aggregate offer.

.google.shopping.type.Price low_price = 3;

Parameter
NameDescription
valuePrice
Returns
TypeDescription
Attributes.Builder

mergeProductHeight(ProductDimension value)

public Attributes.Builder mergeProductHeight(ProductDimension value)

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_height = 34;

Parameter
NameDescription
valueProductDimension
Returns
TypeDescription
Attributes.Builder

mergeProductLength(ProductDimension value)

public Attributes.Builder mergeProductLength(ProductDimension value)

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_length = 32;

Parameter
NameDescription
valueProductDimension
Returns
TypeDescription
Attributes.Builder

mergeProductWeight(ProductWeight value)

public Attributes.Builder mergeProductWeight(ProductWeight value)

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

.google.shopping.css.v1.ProductWeight product_weight = 31;

Parameter
NameDescription
valueProductWeight
Returns
TypeDescription
Attributes.Builder

mergeProductWidth(ProductDimension value)

public Attributes.Builder mergeProductWidth(ProductDimension value)

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_width = 33;

Parameter
NameDescription
valueProductDimension
Returns
TypeDescription
Attributes.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Attributes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Attributes.Builder
Overrides

removeCertifications(int index)

public Attributes.Builder removeCertifications(int index)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameter
NameDescription
indexint
Returns
TypeDescription
Attributes.Builder

removeProductDetails(int index)

public Attributes.Builder removeProductDetails(int index)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameter
NameDescription
indexint
Returns
TypeDescription
Attributes.Builder
public Attributes.Builder setAdditionalImageLinks(int index, String value)

Additional URL of images of the item.

repeated string additional_image_links = 12;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The additionalImageLinks to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setAdult(boolean value)

public Attributes.Builder setAdult(boolean value)

Set to true if the item is targeted towards adults.

optional bool adult = 18;

Parameter
NameDescription
valueboolean

The adult to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setAgeGroup(String value)

public Attributes.Builder setAgeGroup(String value)

Target age group of the item.

optional string age_group = 21;

Parameter
NameDescription
valueString

The ageGroup to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setAgeGroupBytes(ByteString value)

public Attributes.Builder setAgeGroupBytes(ByteString value)

Target age group of the item.

optional string age_group = 21;

Parameter
NameDescription
valueByteString

The bytes for ageGroup to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setBrand(String value)

public Attributes.Builder setBrand(String value)

Product Related Attributes.[14-36] Brand of the item.

optional string brand = 14;

Parameter
NameDescription
valueString

The brand to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setBrandBytes(ByteString value)

public Attributes.Builder setBrandBytes(ByteString value)

Product Related Attributes.[14-36] Brand of the item.

optional string brand = 14;

Parameter
NameDescription
valueByteString

The bytes for brand to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCertifications(int index, Certification value)

public Attributes.Builder setCertifications(int index, Certification value)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameters
NameDescription
indexint
valueCertification
Returns
TypeDescription
Attributes.Builder

setCertifications(int index, Certification.Builder builderForValue)

public Attributes.Builder setCertifications(int index, Certification.Builder builderForValue)

A list of certificates claimed by the CSS for the given product.

repeated .google.shopping.css.v1.Certification certifications = 39;

Parameters
NameDescription
indexint
builderForValueCertification.Builder
Returns
TypeDescription
Attributes.Builder

setColor(String value)

public Attributes.Builder setColor(String value)

Color of the item.

optional string color = 22;

Parameter
NameDescription
valueString

The color to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setColorBytes(ByteString value)

public Attributes.Builder setColorBytes(ByteString value)

Color of the item.

optional string color = 22;

Parameter
NameDescription
valueByteString

The bytes for color to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCppAdsRedirect(String value)

public Attributes.Builder setCppAdsRedirect(String value)

Allows advertisers to override the item URL when the product is shown within the context of Product Ads.

optional string cpp_ads_redirect = 42;

Parameter
NameDescription
valueString

The cppAdsRedirect to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCppAdsRedirectBytes(ByteString value)

public Attributes.Builder setCppAdsRedirectBytes(ByteString value)

Allows advertisers to override the item URL when the product is shown within the context of Product Ads.

optional string cpp_ads_redirect = 42;

Parameter
NameDescription
valueByteString

The bytes for cppAdsRedirect to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

public Attributes.Builder setCppLink(String value)

URL directly linking to your the Product Detail Page of the CSS.

optional string cpp_link = 1;

Parameter
NameDescription
valueString

The cppLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCppLinkBytes(ByteString value)

public Attributes.Builder setCppLinkBytes(ByteString value)

URL directly linking to your the Product Detail Page of the CSS.

optional string cpp_link = 1;

Parameter
NameDescription
valueByteString

The bytes for cppLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

public Attributes.Builder setCppMobileLink(String value)

URL for the mobile-optimized version of the Product Detail Page of the CSS.

optional string cpp_mobile_link = 2;

Parameter
NameDescription
valueString

The cppMobileLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCppMobileLinkBytes(ByteString value)

public Attributes.Builder setCppMobileLinkBytes(ByteString value)

URL for the mobile-optimized version of the Product Detail Page of the CSS.

optional string cpp_mobile_link = 2;

Parameter
NameDescription
valueByteString

The bytes for cppMobileLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel0(String value)

public Attributes.Builder setCustomLabel0(String value)

Custom label 0 for custom grouping of items in a Shopping campaign.

optional string custom_label_0 = 46;

Parameter
NameDescription
valueString

The customLabel0 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel0Bytes(ByteString value)

public Attributes.Builder setCustomLabel0Bytes(ByteString value)

Custom label 0 for custom grouping of items in a Shopping campaign.

optional string custom_label_0 = 46;

Parameter
NameDescription
valueByteString

The bytes for customLabel0 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel1(String value)

public Attributes.Builder setCustomLabel1(String value)

Custom label 1 for custom grouping of items in a Shopping campaign.

optional string custom_label_1 = 47;

Parameter
NameDescription
valueString

The customLabel1 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel1Bytes(ByteString value)

public Attributes.Builder setCustomLabel1Bytes(ByteString value)

Custom label 1 for custom grouping of items in a Shopping campaign.

optional string custom_label_1 = 47;

Parameter
NameDescription
valueByteString

The bytes for customLabel1 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel2(String value)

public Attributes.Builder setCustomLabel2(String value)

Custom label 2 for custom grouping of items in a Shopping campaign.

optional string custom_label_2 = 48;

Parameter
NameDescription
valueString

The customLabel2 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel2Bytes(ByteString value)

public Attributes.Builder setCustomLabel2Bytes(ByteString value)

Custom label 2 for custom grouping of items in a Shopping campaign.

optional string custom_label_2 = 48;

Parameter
NameDescription
valueByteString

The bytes for customLabel2 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel3(String value)

public Attributes.Builder setCustomLabel3(String value)

Custom label 3 for custom grouping of items in a Shopping campaign.

optional string custom_label_3 = 49;

Parameter
NameDescription
valueString

The customLabel3 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel3Bytes(ByteString value)

public Attributes.Builder setCustomLabel3Bytes(ByteString value)

Custom label 3 for custom grouping of items in a Shopping campaign.

optional string custom_label_3 = 49;

Parameter
NameDescription
valueByteString

The bytes for customLabel3 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel4(String value)

public Attributes.Builder setCustomLabel4(String value)

Custom label 4 for custom grouping of items in a Shopping campaign.

optional string custom_label_4 = 50;

Parameter
NameDescription
valueString

The customLabel4 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setCustomLabel4Bytes(ByteString value)

public Attributes.Builder setCustomLabel4Bytes(ByteString value)

Custom label 4 for custom grouping of items in a Shopping campaign.

optional string custom_label_4 = 50;

Parameter
NameDescription
valueByteString

The bytes for customLabel4 to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setDescription(String value)

public Attributes.Builder setDescription(String value)

Description of the item.

optional string description = 13;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Attributes.Builder setDescriptionBytes(ByteString value)

Description of the item.

optional string description = 13;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setExcludedDestinations(int index, String value)

public Attributes.Builder setExcludedDestinations(int index, String value)

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

repeated string excluded_destinations = 44;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The excludedDestinations to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setExpirationDate(Timestamp value)

public Attributes.Builder setExpirationDate(Timestamp value)

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. Note: It may take 2+ days from the expiration date for the item to actually get deleted.

.google.protobuf.Timestamp expiration_date = 40;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Attributes.Builder

setExpirationDate(Timestamp.Builder builderForValue)

public Attributes.Builder setExpirationDate(Timestamp.Builder builderForValue)

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. Note: It may take 2+ days from the expiration date for the item to actually get deleted.

.google.protobuf.Timestamp expiration_date = 40;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Attributes.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Attributes.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Attributes.Builder
Overrides

setGender(String value)

public Attributes.Builder setGender(String value)

Target gender of the item.

optional string gender = 23;

Parameter
NameDescription
valueString

The gender to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setGenderBytes(ByteString value)

public Attributes.Builder setGenderBytes(ByteString value)

Target gender of the item.

optional string gender = 23;

Parameter
NameDescription
valueByteString

The bytes for gender to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setGoogleProductCategory(String value)

public Attributes.Builder setGoogleProductCategory(String value)

Google's category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.

optional string google_product_category = 17;

Parameter
NameDescription
valueString

The googleProductCategory to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setGoogleProductCategoryBytes(ByteString value)

public Attributes.Builder setGoogleProductCategoryBytes(ByteString value)

Google's category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.

optional string google_product_category = 17;

Parameter
NameDescription
valueByteString

The bytes for googleProductCategory to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setGtin(String value)

public Attributes.Builder setGtin(String value)

Global Trade Item Number (GTIN) of the item.

optional string gtin = 16;

Parameter
NameDescription
valueString

The gtin to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setGtinBytes(ByteString value)

public Attributes.Builder setGtinBytes(ByteString value)

Global Trade Item Number (GTIN) of the item.

optional string gtin = 16;

Parameter
NameDescription
valueByteString

The bytes for gtin to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setHeadlineOfferCondition(String value)

public Attributes.Builder setHeadlineOfferCondition(String value)

Condition of the headline offer.

optional string headline_offer_condition = 6;

Parameter
NameDescription
valueString

The headlineOfferCondition to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setHeadlineOfferConditionBytes(ByteString value)

public Attributes.Builder setHeadlineOfferConditionBytes(ByteString value)

Condition of the headline offer.

optional string headline_offer_condition = 6;

Parameter
NameDescription
valueByteString

The bytes for headlineOfferCondition to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

public Attributes.Builder setHeadlineOfferLink(String value)

Link to the headline offer.

optional string headline_offer_link = 8;

Parameter
NameDescription
valueString

The headlineOfferLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setHeadlineOfferLinkBytes(ByteString value)

public Attributes.Builder setHeadlineOfferLinkBytes(ByteString value)

Link to the headline offer.

optional string headline_offer_link = 8;

Parameter
NameDescription
valueByteString

The bytes for headlineOfferLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

public Attributes.Builder setHeadlineOfferMobileLink(String value)

Mobile Link to the headline offer.

optional string headline_offer_mobile_link = 9;

Parameter
NameDescription
valueString

The headlineOfferMobileLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setHeadlineOfferMobileLinkBytes(ByteString value)

public Attributes.Builder setHeadlineOfferMobileLinkBytes(ByteString value)

Mobile Link to the headline offer.

optional string headline_offer_mobile_link = 9;

Parameter
NameDescription
valueByteString

The bytes for headlineOfferMobileLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setHeadlineOfferPrice(Price value)

public Attributes.Builder setHeadlineOfferPrice(Price value)

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_price = 7;

Parameter
NameDescription
valuePrice
Returns
TypeDescription
Attributes.Builder

setHeadlineOfferPrice(Price.Builder builderForValue)

public Attributes.Builder setHeadlineOfferPrice(Price.Builder builderForValue)

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_price = 7;

Parameter
NameDescription
builderForValuePrice.Builder
Returns
TypeDescription
Attributes.Builder

setHeadlineOfferShippingPrice(Price value)

public Attributes.Builder setHeadlineOfferShippingPrice(Price value)

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_shipping_price = 41;

Parameter
NameDescription
valuePrice
Returns
TypeDescription
Attributes.Builder

setHeadlineOfferShippingPrice(Price.Builder builderForValue)

public Attributes.Builder setHeadlineOfferShippingPrice(Price.Builder builderForValue)

Headline Price of the aggregate offer.

.google.shopping.type.Price headline_offer_shipping_price = 41;

Parameter
NameDescription
builderForValuePrice.Builder
Returns
TypeDescription
Attributes.Builder

setHighPrice(Price value)

public Attributes.Builder setHighPrice(Price value)

High Price of the aggregate offer.

.google.shopping.type.Price high_price = 4;

Parameter
NameDescription
valuePrice
Returns
TypeDescription
Attributes.Builder

setHighPrice(Price.Builder builderForValue)

public Attributes.Builder setHighPrice(Price.Builder builderForValue)

High Price of the aggregate offer.

.google.shopping.type.Price high_price = 4;

Parameter
NameDescription
builderForValuePrice.Builder
Returns
TypeDescription
Attributes.Builder
public Attributes.Builder setImageLink(String value)

URL of an image of the item.

optional string image_link = 11;

Parameter
NameDescription
valueString

The imageLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setImageLinkBytes(ByteString value)

public Attributes.Builder setImageLinkBytes(ByteString value)

URL of an image of the item.

optional string image_link = 11;

Parameter
NameDescription
valueByteString

The bytes for imageLink to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setIncludedDestinations(int index, String value)

public Attributes.Builder setIncludedDestinations(int index, String value)

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

repeated string included_destinations = 43;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The includedDestinations to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setIsBundle(boolean value)

public Attributes.Builder setIsBundle(boolean value)

Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.

optional bool is_bundle = 20;

Parameter
NameDescription
valueboolean

The isBundle to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setItemGroupId(String value)

public Attributes.Builder setItemGroupId(String value)

Shared identifier for all variants of the same product.

optional string item_group_id = 29;

Parameter
NameDescription
valueString

The itemGroupId to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setItemGroupIdBytes(ByteString value)

public Attributes.Builder setItemGroupIdBytes(ByteString value)

Shared identifier for all variants of the same product.

optional string item_group_id = 29;

Parameter
NameDescription
valueByteString

The bytes for itemGroupId to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setLowPrice(Price value)

public Attributes.Builder setLowPrice(Price value)

Low Price of the aggregate offer.

.google.shopping.type.Price low_price = 3;

Parameter
NameDescription
valuePrice
Returns
TypeDescription
Attributes.Builder

setLowPrice(Price.Builder builderForValue)

public Attributes.Builder setLowPrice(Price.Builder builderForValue)

Low Price of the aggregate offer.

.google.shopping.type.Price low_price = 3;

Parameter
NameDescription
builderForValuePrice.Builder
Returns
TypeDescription
Attributes.Builder

setMaterial(String value)

public Attributes.Builder setMaterial(String value)

The material of which the item is made.

optional string material = 24;

Parameter
NameDescription
valueString

The material to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setMaterialBytes(ByteString value)

public Attributes.Builder setMaterialBytes(ByteString value)

The material of which the item is made.

optional string material = 24;

Parameter
NameDescription
valueByteString

The bytes for material to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setMpn(String value)

public Attributes.Builder setMpn(String value)

Manufacturer Part Number (MPN) of the item.

optional string mpn = 15;

Parameter
NameDescription
valueString

The mpn to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setMpnBytes(ByteString value)

public Attributes.Builder setMpnBytes(ByteString value)

Manufacturer Part Number (MPN) of the item.

optional string mpn = 15;

Parameter
NameDescription
valueByteString

The bytes for mpn to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setMultipack(long value)

public Attributes.Builder setMultipack(long value)

The number of identical products in a merchant-defined multipack.

optional int64 multipack = 19;

Parameter
NameDescription
valuelong

The multipack to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setNumberOfOffers(long value)

public Attributes.Builder setNumberOfOffers(long value)

The number of aggregate offers.

optional int64 number_of_offers = 5;

Parameter
NameDescription
valuelong

The numberOfOffers to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setPattern(String value)

public Attributes.Builder setPattern(String value)

The item's pattern (e.g. polka dots).

optional string pattern = 25;

Parameter
NameDescription
valueString

The pattern to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setPatternBytes(ByteString value)

public Attributes.Builder setPatternBytes(ByteString value)

The item's pattern (e.g. polka dots).

optional string pattern = 25;

Parameter
NameDescription
valueByteString

The bytes for pattern to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setPause(String value)

public Attributes.Builder setPause(String value)

Publication of this item will be temporarily paused.

optional string pause = 45;

Parameter
NameDescription
valueString

The pause to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setPauseBytes(ByteString value)

public Attributes.Builder setPauseBytes(ByteString value)

Publication of this item will be temporarily paused.

optional string pause = 45;

Parameter
NameDescription
valueByteString

The bytes for pause to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setProductDetails(int index, ProductDetail value)

public Attributes.Builder setProductDetails(int index, ProductDetail value)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameters
NameDescription
indexint
valueProductDetail
Returns
TypeDescription
Attributes.Builder

setProductDetails(int index, ProductDetail.Builder builderForValue)

public Attributes.Builder setProductDetails(int index, ProductDetail.Builder builderForValue)

Technical specification or additional product details.

repeated .google.shopping.css.v1.ProductDetail product_details = 30;

Parameters
NameDescription
indexint
builderForValueProductDetail.Builder
Returns
TypeDescription
Attributes.Builder

setProductHeight(ProductDimension value)

public Attributes.Builder setProductHeight(ProductDimension value)

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_height = 34;

Parameter
NameDescription
valueProductDimension
Returns
TypeDescription
Attributes.Builder

setProductHeight(ProductDimension.Builder builderForValue)

public Attributes.Builder setProductHeight(ProductDimension.Builder builderForValue)

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_height = 34;

Parameter
NameDescription
builderForValueProductDimension.Builder
Returns
TypeDescription
Attributes.Builder

setProductHighlights(int index, String value)

public Attributes.Builder setProductHighlights(int index, String value)

Bullet points describing the most relevant highlights of a product.

repeated string product_highlights = 35;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The productHighlights to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setProductLength(ProductDimension value)

public Attributes.Builder setProductLength(ProductDimension value)

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_length = 32;

Parameter
NameDescription
valueProductDimension
Returns
TypeDescription
Attributes.Builder

setProductLength(ProductDimension.Builder builderForValue)

public Attributes.Builder setProductLength(ProductDimension.Builder builderForValue)

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_length = 32;

Parameter
NameDescription
builderForValueProductDimension.Builder
Returns
TypeDescription
Attributes.Builder

setProductTypes(int index, String value)

public Attributes.Builder setProductTypes(int index, String value)

Categories of the item (formatted as in products data specification).

repeated string product_types = 36;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The productTypes to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setProductWeight(ProductWeight value)

public Attributes.Builder setProductWeight(ProductWeight value)

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

.google.shopping.css.v1.ProductWeight product_weight = 31;

Parameter
NameDescription
valueProductWeight
Returns
TypeDescription
Attributes.Builder

setProductWeight(ProductWeight.Builder builderForValue)

public Attributes.Builder setProductWeight(ProductWeight.Builder builderForValue)

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

.google.shopping.css.v1.ProductWeight product_weight = 31;

Parameter
NameDescription
builderForValueProductWeight.Builder
Returns
TypeDescription
Attributes.Builder

setProductWidth(ProductDimension value)

public Attributes.Builder setProductWidth(ProductDimension value)

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_width = 33;

Parameter
NameDescription
valueProductDimension
Returns
TypeDescription
Attributes.Builder

setProductWidth(ProductDimension.Builder builderForValue)

public Attributes.Builder setProductWidth(ProductDimension.Builder builderForValue)

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

.google.shopping.css.v1.ProductDimension product_width = 33;

Parameter
NameDescription
builderForValueProductDimension.Builder
Returns
TypeDescription
Attributes.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Attributes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Attributes.Builder
Overrides

setSize(String value)

public Attributes.Builder setSize(String value)

Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see https://support.google.com/merchants/answer/6324492).

optional string size = 26;

Parameter
NameDescription
valueString

The size to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setSizeBytes(ByteString value)

public Attributes.Builder setSizeBytes(ByteString value)

Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see https://support.google.com/merchants/answer/6324492).

optional string size = 26;

Parameter
NameDescription
valueByteString

The bytes for size to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setSizeSystem(String value)

public Attributes.Builder setSizeSystem(String value)

System in which the size is specified. Recommended for apparel items.

optional string size_system = 27;

Parameter
NameDescription
valueString

The sizeSystem to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setSizeSystemBytes(ByteString value)

public Attributes.Builder setSizeSystemBytes(ByteString value)

System in which the size is specified. Recommended for apparel items.

optional string size_system = 27;

Parameter
NameDescription
valueByteString

The bytes for sizeSystem to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setSizeTypes(int index, String value)

public Attributes.Builder setSizeTypes(int index, String value)

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see https://support.google.com/merchants/answer/6324497).

repeated string size_types = 28;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The sizeTypes to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setTitle(String value)

public Attributes.Builder setTitle(String value)

Title of the item.

optional string title = 10;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Attributes.Builder setTitleBytes(ByteString value)

Title of the item.

optional string title = 10;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Attributes.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Attributes.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Attributes.Builder
Overrides