Class ProductReview (0.1.0)

public final class ProductReview extends GeneratedMessageV3 implements ProductReviewOrBuilder

A review for a product. For more information, see Introduction to Product Review Feeds

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

Static Fields

ATTRIBUTES_FIELD_NUMBER

public static final int ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

CUSTOM_ATTRIBUTES_FIELD_NUMBER

public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_FIELD_NUMBER

public static final int DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_REVIEW_ID_FIELD_NUMBER

public static final int PRODUCT_REVIEW_ID_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_REVIEW_STATUS_FIELD_NUMBER

public static final int PRODUCT_REVIEW_STATUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductReview getDefaultInstance()
Returns
Type Description
ProductReview

getDescriptor()

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

newBuilder()

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

newBuilder(ProductReview prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAttributes()

public ProductReviewAttributes getAttributes()

Optional. A list of product review attributes.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributes

The attributes.

getAttributesOrBuilder()

public ProductReviewAttributesOrBuilder getAttributesOrBuilder()

Optional. A list of product review attributes.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductReviewAttributesOrBuilder

getCustomAttributes(int index)

public CustomAttribute getCustomAttributes(int index)

Optional. A list of custom (merchant-provided) attributes.

repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
com.google.shopping.type.CustomAttribute

getCustomAttributesCount()

public int getCustomAttributesCount()

Optional. A list of custom (merchant-provided) attributes.

repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getCustomAttributesList()

public List<CustomAttribute> getCustomAttributesList()

Optional. A list of custom (merchant-provided) attributes.

repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<com.google.shopping.type.CustomAttribute>

getCustomAttributesOrBuilder(int index)

public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index)

Optional. A list of custom (merchant-provided) attributes.

repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
com.google.shopping.type.CustomAttributeOrBuilder

getCustomAttributesOrBuilderList()

public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList()

Optional. A list of custom (merchant-provided) attributes.

repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.shopping.type.CustomAttributeOrBuilder>

getDataSource()

public String getDataSource()

Output only. The primary data source of the product review.

string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The dataSource.

getDataSourceBytes()

public ByteString getDataSourceBytes()

Output only. The primary data source of the product review.

string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for dataSource.

getDefaultInstanceForType()

public ProductReview getDefaultInstanceForType()
Returns
Type Description
ProductReview

getName()

public String getName()

Identifier. The name of the product review. Format: "{productreview.name=accounts/{account}/productReviews/{productReview}}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the product review. Format: "{productreview.name=accounts/{account}/productReviews/{productReview}}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<ProductReview> getParserForType()
Returns
Type Description
Parser<ProductReview>
Overrides

getProductReviewId()

public String getProductReviewId()

Required. The permanent, unique identifier for the product review in the publisher’s system.

string product_review_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The productReviewId.

getProductReviewIdBytes()

public ByteString getProductReviewIdBytes()

Required. The permanent, unique identifier for the product review in the publisher’s system.

string product_review_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for productReviewId.

getProductReviewStatus()

public ProductReviewStatus getProductReviewStatus()

Output only. The status of a product review, data validation issues, that is, information about a product review computed asynchronously.

.google.shopping.merchant.reviews.v1beta.ProductReviewStatus product_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProductReviewStatus

The productReviewStatus.

getProductReviewStatusOrBuilder()

public ProductReviewStatusOrBuilder getProductReviewStatusOrBuilder()

Output only. The status of a product review, data validation issues, that is, information about a product review computed asynchronously.

.google.shopping.merchant.reviews.v1beta.ProductReviewStatus product_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProductReviewStatusOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAttributes()

public boolean hasAttributes()

Optional. A list of product review attributes.

.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the attributes field is set.

hasProductReviewStatus()

public boolean hasProductReviewStatus()

Output only. The status of a product review, data validation issues, that is, information about a product review computed asynchronously.

.google.shopping.merchant.reviews.v1beta.ProductReviewStatus product_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the productReviewStatus 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 ProductReview.Builder newBuilderForType()
Returns
Type Description
ProductReview.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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