Class ProductReview.Builder (0.1.0)

public static final class ProductReview.Builder extends GeneratedMessageV3.Builder<ProductReview.Builder> 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 Methods

getDescriptor()

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

Methods

addAllCustomAttributes(Iterable<? extends CustomAttribute> values)

public ProductReview.Builder addAllCustomAttributes(Iterable<? extends CustomAttribute> values)

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

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

Parameter
Name Description
values Iterable<? extends com.google.shopping.type.CustomAttribute>
Returns
Type Description
ProductReview.Builder

addCustomAttributes(CustomAttribute value)

public ProductReview.Builder addCustomAttributes(CustomAttribute value)

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

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

Parameter
Name Description
value com.google.shopping.type.CustomAttribute
Returns
Type Description
ProductReview.Builder

addCustomAttributes(CustomAttribute.Builder builderForValue)

public ProductReview.Builder addCustomAttributes(CustomAttribute.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue com.google.shopping.type.CustomAttribute.Builder
Returns
Type Description
ProductReview.Builder

addCustomAttributes(int index, CustomAttribute value)

public ProductReview.Builder addCustomAttributes(int index, CustomAttribute value)

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

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

Parameters
Name Description
index int
value com.google.shopping.type.CustomAttribute
Returns
Type Description
ProductReview.Builder

addCustomAttributes(int index, CustomAttribute.Builder builderForValue)

public ProductReview.Builder addCustomAttributes(int index, CustomAttribute.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue com.google.shopping.type.CustomAttribute.Builder
Returns
Type Description
ProductReview.Builder

addCustomAttributesBuilder()

public CustomAttribute.Builder addCustomAttributesBuilder()

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

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

Returns
Type Description
com.google.shopping.type.CustomAttribute.Builder

addCustomAttributesBuilder(int index)

public CustomAttribute.Builder addCustomAttributesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProductReview build()
Returns
Type Description
ProductReview

buildPartial()

public ProductReview buildPartial()
Returns
Type Description
ProductReview

clear()

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

clearAttributes()

public ProductReview.Builder clearAttributes()

Optional. A list of product review attributes.

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

Returns
Type Description
ProductReview.Builder

clearCustomAttributes()

public ProductReview.Builder clearCustomAttributes()

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

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

Returns
Type Description
ProductReview.Builder

clearDataSource()

public ProductReview.Builder clearDataSource()

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

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

Returns
Type Description
ProductReview.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ProductReview.Builder clearName()

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
ProductReview.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProductReviewId()

public ProductReview.Builder clearProductReviewId()

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
ProductReview.Builder

This builder for chaining.

clearProductReviewStatus()

public ProductReview.Builder clearProductReviewStatus()

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
ProductReview.Builder

clone()

public ProductReview.Builder clone()
Returns
Type Description
ProductReview.Builder
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.

getAttributesBuilder()

public ProductReviewAttributes.Builder getAttributesBuilder()

Optional. A list of product review attributes.

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

Returns
Type Description
ProductReviewAttributes.Builder

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

getCustomAttributesBuilder(int index)

public CustomAttribute.Builder getCustomAttributesBuilder(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.Builder

getCustomAttributesBuilderList()

public List<CustomAttribute.Builder> getCustomAttributesBuilderList()

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.Builder>

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

getDescriptorForType()

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

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.

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.

getProductReviewStatusBuilder()

public ProductReviewStatus.Builder getProductReviewStatusBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAttributes(ProductReviewAttributes value)

public ProductReview.Builder mergeAttributes(ProductReviewAttributes value)

Optional. A list of product review attributes.

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

Parameter
Name Description
value ProductReviewAttributes
Returns
Type Description
ProductReview.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ProductReview other)

public ProductReview.Builder mergeFrom(ProductReview other)
Parameter
Name Description
other ProductReview
Returns
Type Description
ProductReview.Builder

mergeProductReviewStatus(ProductReviewStatus value)

public ProductReview.Builder mergeProductReviewStatus(ProductReviewStatus value)

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];

Parameter
Name Description
value ProductReviewStatus
Returns
Type Description
ProductReview.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCustomAttributes(int index)

public ProductReview.Builder removeCustomAttributes(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
ProductReview.Builder

setAttributes(ProductReviewAttributes value)

public ProductReview.Builder setAttributes(ProductReviewAttributes value)

Optional. A list of product review attributes.

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

Parameter
Name Description
value ProductReviewAttributes
Returns
Type Description
ProductReview.Builder

setAttributes(ProductReviewAttributes.Builder builderForValue)

public ProductReview.Builder setAttributes(ProductReviewAttributes.Builder builderForValue)

Optional. A list of product review attributes.

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

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

setCustomAttributes(int index, CustomAttribute value)

public ProductReview.Builder setCustomAttributes(int index, CustomAttribute value)

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

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

Parameters
Name Description
index int
value com.google.shopping.type.CustomAttribute
Returns
Type Description
ProductReview.Builder

setCustomAttributes(int index, CustomAttribute.Builder builderForValue)

public ProductReview.Builder setCustomAttributes(int index, CustomAttribute.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue com.google.shopping.type.CustomAttribute.Builder
Returns
Type Description
ProductReview.Builder

setDataSource(String value)

public ProductReview.Builder setDataSource(String value)

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

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

Parameter
Name Description
value String

The dataSource to set.

Returns
Type Description
ProductReview.Builder

This builder for chaining.

setDataSourceBytes(ByteString value)

public ProductReview.Builder setDataSourceBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for dataSource to set.

Returns
Type Description
ProductReview.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ProductReview.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ProductReview.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ProductReview.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ProductReview.Builder

This builder for chaining.

setProductReviewId(String value)

public ProductReview.Builder setProductReviewId(String value)

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

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

Parameter
Name Description
value String

The productReviewId to set.

Returns
Type Description
ProductReview.Builder

This builder for chaining.

setProductReviewIdBytes(ByteString value)

public ProductReview.Builder setProductReviewIdBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for productReviewId to set.

Returns
Type Description
ProductReview.Builder

This builder for chaining.

setProductReviewStatus(ProductReviewStatus value)

public ProductReview.Builder setProductReviewStatus(ProductReviewStatus value)

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];

Parameter
Name Description
value ProductReviewStatus
Returns
Type Description
ProductReview.Builder

setProductReviewStatus(ProductReviewStatus.Builder builderForValue)

public ProductReview.Builder setProductReviewStatus(ProductReviewStatus.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ProductReviewStatus.Builder
Returns
Type Description
ProductReview.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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