Class ProductReviewAttributes.Builder (0.1.0)

public static final class ProductReviewAttributes.Builder extends GeneratedMessageV3.Builder<ProductReviewAttributes.Builder> implements ProductReviewAttributesOrBuilder

Attributes.

Protobuf type google.shopping.merchant.reviews.v1beta.ProductReviewAttributes

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAsins(Iterable<String> values)

public ProductReviewAttributes.Builder addAllAsins(Iterable<String> values)

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product.

repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The asins to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addAllBrands(Iterable<String> values)

public ProductReviewAttributes.Builder addAllBrands(Iterable<String> values)

Optional. Contains brand names associated with a product.

repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The brands to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addAllCons(Iterable<String> values)

public ProductReviewAttributes.Builder addAllCons(Iterable<String> values)

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer.

repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The cons to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addAllGtins(Iterable<String> values)

public ProductReviewAttributes.Builder addAllGtins(Iterable<String> values)

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.

repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The gtins to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addAllMpns(Iterable<String> values)

public ProductReviewAttributes.Builder addAllMpns(Iterable<String> values)

Optional. Contains MPNs (manufacturer part numbers) associated with a product.

repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The mpns to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

public ProductReviewAttributes.Builder addAllProductLinks(Iterable<String> values)

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same.

repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The productLinks to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addAllProductNames(Iterable<String> values)

public ProductReviewAttributes.Builder addAllProductNames(Iterable<String> values)

Optional. Descriptive name of a product.

repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The productNames to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addAllPros(Iterable<String> values)

public ProductReviewAttributes.Builder addAllPros(Iterable<String> values)

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer.

repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The pros to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

public ProductReviewAttributes.Builder addAllReviewerImageLinks(Iterable<String> values)

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension.

repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The reviewerImageLinks to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addAllSkus(Iterable<String> values)

public ProductReviewAttributes.Builder addAllSkus(Iterable<String> values)

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed.

repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The skus to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addAsins(String value)

public ProductReviewAttributes.Builder addAsins(String value)

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product.

repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The asins to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addAsinsBytes(ByteString value)

public ProductReviewAttributes.Builder addAsinsBytes(ByteString value)

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product.

repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the asins to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addBrands(String value)

public ProductReviewAttributes.Builder addBrands(String value)

Optional. Contains brand names associated with a product.

repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The brands to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addBrandsBytes(ByteString value)

public ProductReviewAttributes.Builder addBrandsBytes(ByteString value)

Optional. Contains brand names associated with a product.

repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the brands to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addCons(String value)

public ProductReviewAttributes.Builder addCons(String value)

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer.

repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The cons to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addConsBytes(ByteString value)

public ProductReviewAttributes.Builder addConsBytes(ByteString value)

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer.

repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the cons to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addGtins(String value)

public ProductReviewAttributes.Builder addGtins(String value)

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.

repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The gtins to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addGtinsBytes(ByteString value)

public ProductReviewAttributes.Builder addGtinsBytes(ByteString value)

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.

repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the gtins to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addMpns(String value)

public ProductReviewAttributes.Builder addMpns(String value)

Optional. Contains MPNs (manufacturer part numbers) associated with a product.

repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The mpns to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addMpnsBytes(ByteString value)

public ProductReviewAttributes.Builder addMpnsBytes(ByteString value)

Optional. Contains MPNs (manufacturer part numbers) associated with a product.

repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the mpns to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

public ProductReviewAttributes.Builder addProductLinks(String value)

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same.

repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The productLinks to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addProductLinksBytes(ByteString value)

public ProductReviewAttributes.Builder addProductLinksBytes(ByteString value)

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same.

repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the productLinks to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addProductNames(String value)

public ProductReviewAttributes.Builder addProductNames(String value)

Optional. Descriptive name of a product.

repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The productNames to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addProductNamesBytes(ByteString value)

public ProductReviewAttributes.Builder addProductNamesBytes(ByteString value)

Optional. Descriptive name of a product.

repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the productNames to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addPros(String value)

public ProductReviewAttributes.Builder addPros(String value)

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer.

repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pros to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addProsBytes(ByteString value)

public ProductReviewAttributes.Builder addProsBytes(ByteString value)

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer.

repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the pros to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductReviewAttributes.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductReviewAttributes.Builder
Overrides
public ProductReviewAttributes.Builder addReviewerImageLinks(String value)

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension.

repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The reviewerImageLinks to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addReviewerImageLinksBytes(ByteString value)

public ProductReviewAttributes.Builder addReviewerImageLinksBytes(ByteString value)

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension.

repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the reviewerImageLinks to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addSkus(String value)

public ProductReviewAttributes.Builder addSkus(String value)

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed.

repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The skus to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

addSkusBytes(ByteString value)

public ProductReviewAttributes.Builder addSkusBytes(ByteString value)

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed.

repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the skus to add.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

build()

public ProductReviewAttributes build()
Returns
Type Description
ProductReviewAttributes

buildPartial()

public ProductReviewAttributes buildPartial()
Returns
Type Description
ProductReviewAttributes

clear()

public ProductReviewAttributes.Builder clear()
Returns
Type Description
ProductReviewAttributes.Builder
Overrides

clearAggregatorName()

public ProductReviewAttributes.Builder clearAggregatorName()

Optional. The name of the aggregator of the product reviews.

A publisher may use a reviews aggregator to manage reviews and provide the feeds. This element indicates the use of an aggregator and contains information about the aggregator.

optional string aggregator_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearAsins()

public ProductReviewAttributes.Builder clearAsins()

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product.

repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearBrands()

public ProductReviewAttributes.Builder clearBrands()

Optional. Contains brand names associated with a product.

repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearCollectionMethod()

public ProductReviewAttributes.Builder clearCollectionMethod()

Optional. The method used to collect the review.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.CollectionMethod collection_method = 28 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearCons()

public ProductReviewAttributes.Builder clearCons()

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer.

repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearContent()

public ProductReviewAttributes.Builder clearContent()

Required. The content of the review.

optional string content = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProductReviewAttributes.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProductReviewAttributes.Builder
Overrides

clearGtins()

public ProductReviewAttributes.Builder clearGtins()

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.

repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearIsSpam()

public ProductReviewAttributes.Builder clearIsSpam()

Optional. Indicates whether the review is marked as spam in the publisher's system.

optional bool is_spam = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearMaxRating()

public ProductReviewAttributes.Builder clearMaxRating()

Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min attribute.

optional int64 max_rating = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearMinRating()

public ProductReviewAttributes.Builder clearMinRating()

Optional. Contains the ratings associated with the review. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating.

optional int64 min_rating = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearMpns()

public ProductReviewAttributes.Builder clearMpns()

Optional. Contains MPNs (manufacturer part numbers) associated with a product.

repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductReviewAttributes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductReviewAttributes.Builder
Overrides
public ProductReviewAttributes.Builder clearProductLinks()

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same.

repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearProductNames()

public ProductReviewAttributes.Builder clearProductNames()

Optional. Descriptive name of a product.

repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearPros()

public ProductReviewAttributes.Builder clearPros()

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer.

repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearPublisherFavicon()

public ProductReviewAttributes.Builder clearPublisherFavicon()

Optional. A link to the company favicon of the publisher. The image dimensions should be favicon size: 16x16 pixels. The image format should be GIF, JPG or PNG.

optional string publisher_favicon = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearPublisherName()

public ProductReviewAttributes.Builder clearPublisherName()

Optional. The name of the publisher of the product reviews.

The information about the publisher, which may be a retailer, manufacturer, reviews service company, or any entity that publishes product reviews.

optional string publisher_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearRating()

public ProductReviewAttributes.Builder clearRating()

Optional. The reviewer's overall rating of the product.

optional double rating = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearReviewCountry()

public ProductReviewAttributes.Builder clearReviewCountry()

Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country Code.

optional string review_country = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearReviewLanguage()

public ProductReviewAttributes.Builder clearReviewLanguage()

Optional. The language of the review defined by BCP-47 language code.

optional string review_language = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

public ProductReviewAttributes.Builder clearReviewLink()

Optional. The URI of the review landing page.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

clearReviewTime()

public ProductReviewAttributes.Builder clearReviewTime()

Required. The timestamp indicating when the review was written.

.google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductReviewAttributes.Builder

clearReviewerId()

public ProductReviewAttributes.Builder clearReviewerId()

Optional. The author of the product review.

A permanent, unique identifier for the author of the review in the publisher's system.

optional string reviewer_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

public ProductReviewAttributes.Builder clearReviewerImageLinks()

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension.

repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearReviewerIsAnonymous()

public ProductReviewAttributes.Builder clearReviewerIsAnonymous()

Optional. Set to true if the reviewer should remain anonymous.

optional bool reviewer_is_anonymous = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearReviewerUsername()

public ProductReviewAttributes.Builder clearReviewerUsername()

Optional. The name of the reviewer of the product review.

optional string reviewer_username = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearSkus()

public ProductReviewAttributes.Builder clearSkus()

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed.

repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearSubclientName()

public ProductReviewAttributes.Builder clearSubclientName()

Optional. The name of the subclient of the product reviews.

The subclient is an identifier of the product review source. It should be equivalent to the directory provided in the file data source path.

optional string subclient_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearTitle()

public ProductReviewAttributes.Builder clearTitle()

Optional. The title of the review.

optional string title = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clearTransactionId()

public ProductReviewAttributes.Builder clearTransactionId()

Optional. A permanent, unique identifier for the transaction associated with the review in the publisher's system. This ID can be used to indicate that multiple reviews are associated with the same transaction.

string transaction_id = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

clone()

public ProductReviewAttributes.Builder clone()
Returns
Type Description
ProductReviewAttributes.Builder
Overrides

getAggregatorName()

public String getAggregatorName()

Optional. The name of the aggregator of the product reviews.

A publisher may use a reviews aggregator to manage reviews and provide the feeds. This element indicates the use of an aggregator and contains information about the aggregator.

optional string aggregator_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The aggregatorName.

getAggregatorNameBytes()

public ByteString getAggregatorNameBytes()

Optional. The name of the aggregator of the product reviews.

A publisher may use a reviews aggregator to manage reviews and provide the feeds. This element indicates the use of an aggregator and contains information about the aggregator.

optional string aggregator_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for aggregatorName.

getAsins(int index)

public String getAsins(int index)

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product.

repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The asins at the given index.

getAsinsBytes(int index)

public ByteString getAsinsBytes(int index)

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product.

repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the asins at the given index.

getAsinsCount()

public int getAsinsCount()

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product.

repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of asins.

getAsinsList()

public ProtocolStringList getAsinsList()

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product.

repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the asins.

getBrands(int index)

public String getBrands(int index)

Optional. Contains brand names associated with a product.

repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The brands at the given index.

getBrandsBytes(int index)

public ByteString getBrandsBytes(int index)

Optional. Contains brand names associated with a product.

repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the brands at the given index.

getBrandsCount()

public int getBrandsCount()

Optional. Contains brand names associated with a product.

repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of brands.

getBrandsList()

public ProtocolStringList getBrandsList()

Optional. Contains brand names associated with a product.

repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the brands.

getCollectionMethod()

public ProductReviewAttributes.CollectionMethod getCollectionMethod()

Optional. The method used to collect the review.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.CollectionMethod collection_method = 28 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.CollectionMethod

The collectionMethod.

getCollectionMethodValue()

public int getCollectionMethodValue()

Optional. The method used to collect the review.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.CollectionMethod collection_method = 28 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for collectionMethod.

getCons(int index)

public String getCons(int index)

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer.

repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The cons at the given index.

getConsBytes(int index)

public ByteString getConsBytes(int index)

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer.

repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the cons at the given index.

getConsCount()

public int getConsCount()

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer.

repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of cons.

getConsList()

public ProtocolStringList getConsList()

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer.

repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the cons.

getContent()

public String getContent()

Required. The content of the review.

optional string content = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

Required. The content of the review.

optional string content = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public ProductReviewAttributes getDefaultInstanceForType()
Returns
Type Description
ProductReviewAttributes

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGtins(int index)

public String getGtins(int index)

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.

repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The gtins at the given index.

getGtinsBytes(int index)

public ByteString getGtinsBytes(int index)

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.

repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the gtins at the given index.

getGtinsCount()

public int getGtinsCount()

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.

repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of gtins.

getGtinsList()

public ProtocolStringList getGtinsList()

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.

repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the gtins.

getIsSpam()

public boolean getIsSpam()

Optional. Indicates whether the review is marked as spam in the publisher's system.

optional bool is_spam = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The isSpam.

getMaxRating()

public long getMaxRating()

Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min attribute.

optional int64 max_rating = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The maxRating.

getMinRating()

public long getMinRating()

Optional. Contains the ratings associated with the review. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating.

optional int64 min_rating = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The minRating.

getMpns(int index)

public String getMpns(int index)

Optional. Contains MPNs (manufacturer part numbers) associated with a product.

repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The mpns at the given index.

getMpnsBytes(int index)

public ByteString getMpnsBytes(int index)

Optional. Contains MPNs (manufacturer part numbers) associated with a product.

repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the mpns at the given index.

getMpnsCount()

public int getMpnsCount()

Optional. Contains MPNs (manufacturer part numbers) associated with a product.

repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of mpns.

getMpnsList()

public ProtocolStringList getMpnsList()

Optional. Contains MPNs (manufacturer part numbers) associated with a product.

repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the mpns.

public String getProductLinks(int index)

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same.

repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The productLinks at the given index.

getProductLinksBytes(int index)

public ByteString getProductLinksBytes(int index)

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same.

repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the productLinks at the given index.

getProductLinksCount()

public int getProductLinksCount()

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same.

repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of productLinks.

public ProtocolStringList getProductLinksList()

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same.

repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the productLinks.

getProductNames(int index)

public String getProductNames(int index)

Optional. Descriptive name of a product.

repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The productNames at the given index.

getProductNamesBytes(int index)

public ByteString getProductNamesBytes(int index)

Optional. Descriptive name of a product.

repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the productNames at the given index.

getProductNamesCount()

public int getProductNamesCount()

Optional. Descriptive name of a product.

repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of productNames.

getProductNamesList()

public ProtocolStringList getProductNamesList()

Optional. Descriptive name of a product.

repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the productNames.

getPros(int index)

public String getPros(int index)

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer.

repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The pros at the given index.

getProsBytes(int index)

public ByteString getProsBytes(int index)

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer.

repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the pros at the given index.

getProsCount()

public int getProsCount()

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer.

repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of pros.

getProsList()

public ProtocolStringList getProsList()

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer.

repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the pros.

getPublisherFavicon()

public String getPublisherFavicon()

Optional. A link to the company favicon of the publisher. The image dimensions should be favicon size: 16x16 pixels. The image format should be GIF, JPG or PNG.

optional string publisher_favicon = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The publisherFavicon.

getPublisherFaviconBytes()

public ByteString getPublisherFaviconBytes()

Optional. A link to the company favicon of the publisher. The image dimensions should be favicon size: 16x16 pixels. The image format should be GIF, JPG or PNG.

optional string publisher_favicon = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for publisherFavicon.

getPublisherName()

public String getPublisherName()

Optional. The name of the publisher of the product reviews.

The information about the publisher, which may be a retailer, manufacturer, reviews service company, or any entity that publishes product reviews.

optional string publisher_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The publisherName.

getPublisherNameBytes()

public ByteString getPublisherNameBytes()

Optional. The name of the publisher of the product reviews.

The information about the publisher, which may be a retailer, manufacturer, reviews service company, or any entity that publishes product reviews.

optional string publisher_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for publisherName.

getRating()

public double getRating()

Optional. The reviewer's overall rating of the product.

optional double rating = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The rating.

getReviewCountry()

public String getReviewCountry()

Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country Code.

optional string review_country = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The reviewCountry.

getReviewCountryBytes()

public ByteString getReviewCountryBytes()

Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country Code.

optional string review_country = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for reviewCountry.

getReviewLanguage()

public String getReviewLanguage()

Optional. The language of the review defined by BCP-47 language code.

optional string review_language = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The reviewLanguage.

getReviewLanguageBytes()

public ByteString getReviewLanguageBytes()

Optional. The language of the review defined by BCP-47 language code.

optional string review_language = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for reviewLanguage.

public ProductReviewAttributes.ReviewLink getReviewLink()

Optional. The URI of the review landing page.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.ReviewLink

The reviewLink.

getReviewLinkBuilder()

public ProductReviewAttributes.ReviewLink.Builder getReviewLinkBuilder()

Optional. The URI of the review landing page.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.ReviewLink.Builder

getReviewLinkOrBuilder()

public ProductReviewAttributes.ReviewLinkOrBuilder getReviewLinkOrBuilder()

Optional. The URI of the review landing page.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes.ReviewLinkOrBuilder

getReviewTime()

public Timestamp getReviewTime()

Required. The timestamp indicating when the review was written.

.google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The reviewTime.

getReviewTimeBuilder()

public Timestamp.Builder getReviewTimeBuilder()

Required. The timestamp indicating when the review was written.

.google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getReviewTimeOrBuilder()

public TimestampOrBuilder getReviewTimeOrBuilder()

Required. The timestamp indicating when the review was written.

.google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getReviewerId()

public String getReviewerId()

Optional. The author of the product review.

A permanent, unique identifier for the author of the review in the publisher's system.

optional string reviewer_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The reviewerId.

getReviewerIdBytes()

public ByteString getReviewerIdBytes()

Optional. The author of the product review.

A permanent, unique identifier for the author of the review in the publisher's system.

optional string reviewer_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for reviewerId.

public String getReviewerImageLinks(int index)

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension.

repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The reviewerImageLinks at the given index.

getReviewerImageLinksBytes(int index)

public ByteString getReviewerImageLinksBytes(int index)

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension.

repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the reviewerImageLinks at the given index.

getReviewerImageLinksCount()

public int getReviewerImageLinksCount()

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension.

repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of reviewerImageLinks.

public ProtocolStringList getReviewerImageLinksList()

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension.

repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the reviewerImageLinks.

getReviewerIsAnonymous()

public boolean getReviewerIsAnonymous()

Optional. Set to true if the reviewer should remain anonymous.

optional bool reviewer_is_anonymous = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The reviewerIsAnonymous.

getReviewerUsername()

public String getReviewerUsername()

Optional. The name of the reviewer of the product review.

optional string reviewer_username = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The reviewerUsername.

getReviewerUsernameBytes()

public ByteString getReviewerUsernameBytes()

Optional. The name of the reviewer of the product review.

optional string reviewer_username = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for reviewerUsername.

getSkus(int index)

public String getSkus(int index)

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed.

repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The skus at the given index.

getSkusBytes(int index)

public ByteString getSkusBytes(int index)

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed.

repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the skus at the given index.

getSkusCount()

public int getSkusCount()

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed.

repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of skus.

getSkusList()

public ProtocolStringList getSkusList()

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed.

repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the skus.

getSubclientName()

public String getSubclientName()

Optional. The name of the subclient of the product reviews.

The subclient is an identifier of the product review source. It should be equivalent to the directory provided in the file data source path.

optional string subclient_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The subclientName.

getSubclientNameBytes()

public ByteString getSubclientNameBytes()

Optional. The name of the subclient of the product reviews.

The subclient is an identifier of the product review source. It should be equivalent to the directory provided in the file data source path.

optional string subclient_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for subclientName.

getTitle()

public String getTitle()

Optional. The title of the review.

optional string title = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Optional. The title of the review.

optional string title = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for title.

getTransactionId()

public String getTransactionId()

Optional. A permanent, unique identifier for the transaction associated with the review in the publisher's system. This ID can be used to indicate that multiple reviews are associated with the same transaction.

string transaction_id = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The transactionId.

getTransactionIdBytes()

public ByteString getTransactionIdBytes()

Optional. A permanent, unique identifier for the transaction associated with the review in the publisher's system. This ID can be used to indicate that multiple reviews are associated with the same transaction.

string transaction_id = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for transactionId.

hasAggregatorName()

public boolean hasAggregatorName()

Optional. The name of the aggregator of the product reviews.

A publisher may use a reviews aggregator to manage reviews and provide the feeds. This element indicates the use of an aggregator and contains information about the aggregator.

optional string aggregator_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the aggregatorName field is set.

hasContent()

public boolean hasContent()

Required. The content of the review.

optional string content = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the content field is set.

hasIsSpam()

public boolean hasIsSpam()

Optional. Indicates whether the review is marked as spam in the publisher's system.

optional bool is_spam = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the isSpam field is set.

hasMaxRating()

public boolean hasMaxRating()

Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min attribute.

optional int64 max_rating = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the maxRating field is set.

hasMinRating()

public boolean hasMinRating()

Optional. Contains the ratings associated with the review. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating.

optional int64 min_rating = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the minRating field is set.

hasPublisherFavicon()

public boolean hasPublisherFavicon()

Optional. A link to the company favicon of the publisher. The image dimensions should be favicon size: 16x16 pixels. The image format should be GIF, JPG or PNG.

optional string publisher_favicon = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the publisherFavicon field is set.

hasPublisherName()

public boolean hasPublisherName()

Optional. The name of the publisher of the product reviews.

The information about the publisher, which may be a retailer, manufacturer, reviews service company, or any entity that publishes product reviews.

optional string publisher_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the publisherName field is set.

hasRating()

public boolean hasRating()

Optional. The reviewer's overall rating of the product.

optional double rating = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rating field is set.

hasReviewCountry()

public boolean hasReviewCountry()

Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country Code.

optional string review_country = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reviewCountry field is set.

hasReviewLanguage()

public boolean hasReviewLanguage()

Optional. The language of the review defined by BCP-47 language code.

optional string review_language = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reviewLanguage field is set.

public boolean hasReviewLink()

Optional. The URI of the review landing page.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reviewLink field is set.

hasReviewTime()

public boolean hasReviewTime()

Required. The timestamp indicating when the review was written.

.google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the reviewTime field is set.

hasReviewerId()

public boolean hasReviewerId()

Optional. The author of the product review.

A permanent, unique identifier for the author of the review in the publisher's system.

optional string reviewer_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reviewerId field is set.

hasReviewerIsAnonymous()

public boolean hasReviewerIsAnonymous()

Optional. Set to true if the reviewer should remain anonymous.

optional bool reviewer_is_anonymous = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reviewerIsAnonymous field is set.

hasReviewerUsername()

public boolean hasReviewerUsername()

Optional. The name of the reviewer of the product review.

optional string reviewer_username = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reviewerUsername field is set.

hasSubclientName()

public boolean hasSubclientName()

Optional. The name of the subclient of the product reviews.

The subclient is an identifier of the product review source. It should be equivalent to the directory provided in the file data source path.

optional string subclient_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the subclientName field is set.

hasTitle()

public boolean hasTitle()

Optional. The title of the review.

optional string title = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the title field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductReviewAttributes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductReviewAttributes.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductReviewAttributes.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductReviewAttributes.Builder
Overrides

mergeFrom(ProductReviewAttributes other)

public ProductReviewAttributes.Builder mergeFrom(ProductReviewAttributes other)
Parameter
Name Description
other ProductReviewAttributes
Returns
Type Description
ProductReviewAttributes.Builder
public ProductReviewAttributes.Builder mergeReviewLink(ProductReviewAttributes.ReviewLink value)

Optional. The URI of the review landing page.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductReviewAttributes.ReviewLink
Returns
Type Description
ProductReviewAttributes.Builder

mergeReviewTime(Timestamp value)

public ProductReviewAttributes.Builder mergeReviewTime(Timestamp value)

Required. The timestamp indicating when the review was written.

.google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
ProductReviewAttributes.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductReviewAttributes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductReviewAttributes.Builder
Overrides

setAggregatorName(String value)

public ProductReviewAttributes.Builder setAggregatorName(String value)

Optional. The name of the aggregator of the product reviews.

A publisher may use a reviews aggregator to manage reviews and provide the feeds. This element indicates the use of an aggregator and contains information about the aggregator.

optional string aggregator_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The aggregatorName to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setAggregatorNameBytes(ByteString value)

public ProductReviewAttributes.Builder setAggregatorNameBytes(ByteString value)

Optional. The name of the aggregator of the product reviews.

A publisher may use a reviews aggregator to manage reviews and provide the feeds. This element indicates the use of an aggregator and contains information about the aggregator.

optional string aggregator_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for aggregatorName to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setAsins(int index, String value)

public ProductReviewAttributes.Builder setAsins(int index, String value)

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product.

repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The asins to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setBrands(int index, String value)

public ProductReviewAttributes.Builder setBrands(int index, String value)

Optional. Contains brand names associated with a product.

repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The brands to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setCollectionMethod(ProductReviewAttributes.CollectionMethod value)

public ProductReviewAttributes.Builder setCollectionMethod(ProductReviewAttributes.CollectionMethod value)

Optional. The method used to collect the review.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.CollectionMethod collection_method = 28 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductReviewAttributes.CollectionMethod

The collectionMethod to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setCollectionMethodValue(int value)

public ProductReviewAttributes.Builder setCollectionMethodValue(int value)

Optional. The method used to collect the review.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.CollectionMethod collection_method = 28 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for collectionMethod to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setCons(int index, String value)

public ProductReviewAttributes.Builder setCons(int index, String value)

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer.

repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The cons to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setContent(String value)

public ProductReviewAttributes.Builder setContent(String value)

Required. The content of the review.

optional string content = 12 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The content to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setContentBytes(ByteString value)

public ProductReviewAttributes.Builder setContentBytes(ByteString value)

Required. The content of the review.

optional string content = 12 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for content to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ProductReviewAttributes.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductReviewAttributes.Builder
Overrides

setGtins(int index, String value)

public ProductReviewAttributes.Builder setGtins(int index, String value)

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported.

repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The gtins to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setIsSpam(boolean value)

public ProductReviewAttributes.Builder setIsSpam(boolean value)

Optional. Indicates whether the review is marked as spam in the publisher's system.

optional bool is_spam = 27 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The isSpam to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setMaxRating(long value)

public ProductReviewAttributes.Builder setMaxRating(long value)

Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min attribute.

optional int64 max_rating = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The maxRating to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setMinRating(long value)

public ProductReviewAttributes.Builder setMinRating(long value)

Optional. Contains the ratings associated with the review. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating.

optional int64 min_rating = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The minRating to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setMpns(int index, String value)

public ProductReviewAttributes.Builder setMpns(int index, String value)

Optional. Contains MPNs (manufacturer part numbers) associated with a product.

repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The mpns to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

public ProductReviewAttributes.Builder setProductLinks(int index, String value)

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same.

repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The productLinks to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setProductNames(int index, String value)

public ProductReviewAttributes.Builder setProductNames(int index, String value)

Optional. Descriptive name of a product.

repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The productNames to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setPros(int index, String value)

public ProductReviewAttributes.Builder setPros(int index, String value)

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer.

repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The pros to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setPublisherFavicon(String value)

public ProductReviewAttributes.Builder setPublisherFavicon(String value)

Optional. A link to the company favicon of the publisher. The image dimensions should be favicon size: 16x16 pixels. The image format should be GIF, JPG or PNG.

optional string publisher_favicon = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The publisherFavicon to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setPublisherFaviconBytes(ByteString value)

public ProductReviewAttributes.Builder setPublisherFaviconBytes(ByteString value)

Optional. A link to the company favicon of the publisher. The image dimensions should be favicon size: 16x16 pixels. The image format should be GIF, JPG or PNG.

optional string publisher_favicon = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for publisherFavicon to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setPublisherName(String value)

public ProductReviewAttributes.Builder setPublisherName(String value)

Optional. The name of the publisher of the product reviews.

The information about the publisher, which may be a retailer, manufacturer, reviews service company, or any entity that publishes product reviews.

optional string publisher_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The publisherName to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setPublisherNameBytes(ByteString value)

public ProductReviewAttributes.Builder setPublisherNameBytes(ByteString value)

Optional. The name of the publisher of the product reviews.

The information about the publisher, which may be a retailer, manufacturer, reviews service company, or any entity that publishes product reviews.

optional string publisher_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for publisherName to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setRating(double value)

public ProductReviewAttributes.Builder setRating(double value)

Optional. The reviewer's overall rating of the product.

optional double rating = 19 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The rating to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

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

public ProductReviewAttributes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductReviewAttributes.Builder
Overrides

setReviewCountry(String value)

public ProductReviewAttributes.Builder setReviewCountry(String value)

Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country Code.

optional string review_country = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The reviewCountry to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setReviewCountryBytes(ByteString value)

public ProductReviewAttributes.Builder setReviewCountryBytes(ByteString value)

Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country Code.

optional string review_country = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for reviewCountry to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setReviewLanguage(String value)

public ProductReviewAttributes.Builder setReviewLanguage(String value)

Optional. The language of the review defined by BCP-47 language code.

optional string review_language = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The reviewLanguage to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setReviewLanguageBytes(ByteString value)

public ProductReviewAttributes.Builder setReviewLanguageBytes(ByteString value)

Optional. The language of the review defined by BCP-47 language code.

optional string review_language = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for reviewLanguage to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

public ProductReviewAttributes.Builder setReviewLink(ProductReviewAttributes.ReviewLink value)

Optional. The URI of the review landing page.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProductReviewAttributes.ReviewLink
Returns
Type Description
ProductReviewAttributes.Builder
public ProductReviewAttributes.Builder setReviewLink(ProductReviewAttributes.ReviewLink.Builder builderForValue)

Optional. The URI of the review landing page.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ProductReviewAttributes.ReviewLink.Builder
Returns
Type Description
ProductReviewAttributes.Builder

setReviewTime(Timestamp value)

public ProductReviewAttributes.Builder setReviewTime(Timestamp value)

Required. The timestamp indicating when the review was written.

.google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
ProductReviewAttributes.Builder

setReviewTime(Timestamp.Builder builderForValue)

public ProductReviewAttributes.Builder setReviewTime(Timestamp.Builder builderForValue)

Required. The timestamp indicating when the review was written.

.google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ProductReviewAttributes.Builder

setReviewerId(String value)

public ProductReviewAttributes.Builder setReviewerId(String value)

Optional. The author of the product review.

A permanent, unique identifier for the author of the review in the publisher's system.

optional string reviewer_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The reviewerId to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setReviewerIdBytes(ByteString value)

public ProductReviewAttributes.Builder setReviewerIdBytes(ByteString value)

Optional. The author of the product review.

A permanent, unique identifier for the author of the review in the publisher's system.

optional string reviewer_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for reviewerId to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

public ProductReviewAttributes.Builder setReviewerImageLinks(int index, String value)

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension.

repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The reviewerImageLinks to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setReviewerIsAnonymous(boolean value)

public ProductReviewAttributes.Builder setReviewerIsAnonymous(boolean value)

Optional. Set to true if the reviewer should remain anonymous.

optional bool reviewer_is_anonymous = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The reviewerIsAnonymous to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setReviewerUsername(String value)

public ProductReviewAttributes.Builder setReviewerUsername(String value)

Optional. The name of the reviewer of the product review.

optional string reviewer_username = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The reviewerUsername to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setReviewerUsernameBytes(ByteString value)

public ProductReviewAttributes.Builder setReviewerUsernameBytes(ByteString value)

Optional. The name of the reviewer of the product review.

optional string reviewer_username = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for reviewerUsername to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setSkus(int index, String value)

public ProductReviewAttributes.Builder setSkus(int index, String value)

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed.

repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The skus to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setSubclientName(String value)

public ProductReviewAttributes.Builder setSubclientName(String value)

Optional. The name of the subclient of the product reviews.

The subclient is an identifier of the product review source. It should be equivalent to the directory provided in the file data source path.

optional string subclient_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The subclientName to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setSubclientNameBytes(ByteString value)

public ProductReviewAttributes.Builder setSubclientNameBytes(ByteString value)

Optional. The name of the subclient of the product reviews.

The subclient is an identifier of the product review source. It should be equivalent to the directory provided in the file data source path.

optional string subclient_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for subclientName to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setTitle(String value)

public ProductReviewAttributes.Builder setTitle(String value)

Optional. The title of the review.

optional string title = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The title to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public ProductReviewAttributes.Builder setTitleBytes(ByteString value)

Optional. The title of the review.

optional string title = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setTransactionId(String value)

public ProductReviewAttributes.Builder setTransactionId(String value)

Optional. A permanent, unique identifier for the transaction associated with the review in the publisher's system. This ID can be used to indicate that multiple reviews are associated with the same transaction.

string transaction_id = 29 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The transactionId to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setTransactionIdBytes(ByteString value)

public ProductReviewAttributes.Builder setTransactionIdBytes(ByteString value)

Optional. A permanent, unique identifier for the transaction associated with the review in the publisher's system. This ID can be used to indicate that multiple reviews are associated with the same transaction.

string transaction_id = 29 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for transactionId to set.

Returns
Type Description
ProductReviewAttributes.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductReviewAttributes.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductReviewAttributes.Builder
Overrides