Class ProductReviewAttributes (0.1.0)

public final class ProductReviewAttributes extends GeneratedMessageV3 implements ProductReviewAttributesOrBuilder

Attributes.

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

Static Fields

AGGREGATOR_NAME_FIELD_NUMBER

public static final int AGGREGATOR_NAME_FIELD_NUMBER
Field Value
Type Description
int

ASINS_FIELD_NUMBER

public static final int ASINS_FIELD_NUMBER
Field Value
Type Description
int

BRANDS_FIELD_NUMBER

public static final int BRANDS_FIELD_NUMBER
Field Value
Type Description
int

COLLECTION_METHOD_FIELD_NUMBER

public static final int COLLECTION_METHOD_FIELD_NUMBER
Field Value
Type Description
int

CONS_FIELD_NUMBER

public static final int CONS_FIELD_NUMBER
Field Value
Type Description
int

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
Type Description
int

GTINS_FIELD_NUMBER

public static final int GTINS_FIELD_NUMBER
Field Value
Type Description
int

IS_SPAM_FIELD_NUMBER

public static final int IS_SPAM_FIELD_NUMBER
Field Value
Type Description
int

MAX_RATING_FIELD_NUMBER

public static final int MAX_RATING_FIELD_NUMBER
Field Value
Type Description
int

MIN_RATING_FIELD_NUMBER

public static final int MIN_RATING_FIELD_NUMBER
Field Value
Type Description
int

MPNS_FIELD_NUMBER

public static final int MPNS_FIELD_NUMBER
Field Value
Type Description
int
public static final int PRODUCT_LINKS_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_NAMES_FIELD_NUMBER

public static final int PRODUCT_NAMES_FIELD_NUMBER
Field Value
Type Description
int

PROS_FIELD_NUMBER

public static final int PROS_FIELD_NUMBER
Field Value
Type Description
int

PUBLISHER_FAVICON_FIELD_NUMBER

public static final int PUBLISHER_FAVICON_FIELD_NUMBER
Field Value
Type Description
int

PUBLISHER_NAME_FIELD_NUMBER

public static final int PUBLISHER_NAME_FIELD_NUMBER
Field Value
Type Description
int

RATING_FIELD_NUMBER

public static final int RATING_FIELD_NUMBER
Field Value
Type Description
int

REVIEWER_ID_FIELD_NUMBER

public static final int REVIEWER_ID_FIELD_NUMBER
Field Value
Type Description
int
public static final int REVIEWER_IMAGE_LINKS_FIELD_NUMBER
Field Value
Type Description
int

REVIEWER_IS_ANONYMOUS_FIELD_NUMBER

public static final int REVIEWER_IS_ANONYMOUS_FIELD_NUMBER
Field Value
Type Description
int

REVIEWER_USERNAME_FIELD_NUMBER

public static final int REVIEWER_USERNAME_FIELD_NUMBER
Field Value
Type Description
int

REVIEW_COUNTRY_FIELD_NUMBER

public static final int REVIEW_COUNTRY_FIELD_NUMBER
Field Value
Type Description
int

REVIEW_LANGUAGE_FIELD_NUMBER

public static final int REVIEW_LANGUAGE_FIELD_NUMBER
Field Value
Type Description
int
public static final int REVIEW_LINK_FIELD_NUMBER
Field Value
Type Description
int

REVIEW_TIME_FIELD_NUMBER

public static final int REVIEW_TIME_FIELD_NUMBER
Field Value
Type Description
int

SKUS_FIELD_NUMBER

public static final int SKUS_FIELD_NUMBER
Field Value
Type Description
int

SUBCLIENT_NAME_FIELD_NUMBER

public static final int SUBCLIENT_NAME_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
Type Description
int

TRANSACTION_ID_FIELD_NUMBER

public static final int TRANSACTION_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductReviewAttributes getDefaultInstance()
Returns
Type Description
ProductReviewAttributes

getDescriptor()

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

newBuilder()

public static ProductReviewAttributes.Builder newBuilder()
Returns
Type Description
ProductReviewAttributes.Builder

newBuilder(ProductReviewAttributes prototype)

public static ProductReviewAttributes.Builder newBuilder(ProductReviewAttributes prototype)
Parameter
Name Description
prototype ProductReviewAttributes
Returns
Type Description
ProductReviewAttributes.Builder

parseDelimitedFrom(InputStream input)

public static ProductReviewAttributes parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductReviewAttributes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProductReviewAttributes parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProductReviewAttributes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProductReviewAttributes parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProductReviewAttributes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProductReviewAttributes parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductReviewAttributes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProductReviewAttributes parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductReviewAttributes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProductReviewAttributes parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProductReviewAttributes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductReviewAttributes
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProductReviewAttributes> parser()
Returns
Type Description
Parser<ProductReviewAttributes>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<ProductReviewAttributes> getParserForType()
Returns
Type Description
Parser<ProductReviewAttributes>
Overrides
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.

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.

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProductReviewAttributes.Builder newBuilderForType()
Returns
Type Description
ProductReviewAttributes.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductReviewAttributes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProductReviewAttributes.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ProductReviewAttributes.Builder toBuilder()
Returns
Type Description
ProductReviewAttributes.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException