# Interface ProductReviewOrBuilder (0.39.0)

0.39.0 (latest) 0.37.0 0.34.0 0.33.0 0.31.0 0.29.0 0.28.0 0.26.0 0.24.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.16.0 0.14.0 0.13.0 0.10.0 0.9.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface ProductReviewOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCustomAttributes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.shopping.type.CustomAttribute` |   |

### getCustomAttributesCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getCustomAttributesList()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<com.google.shopping.type.CustomAttribute>` |   |

### getCustomAttributesOrBuilder(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.shopping.type.CustomAttributeOrBuilder` |   |

### getCustomAttributesOrBuilderList()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.shopping.type.CustomAttributeOrBuilder>` |   |

### getDataSource()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dataSource. |

### getDataSourceBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for dataSource. |

### getName()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getProductReviewAttributes()

    public abstract ProductReviewAttributes getProductReviewAttributes()

Optional. A list of product review attributes.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/com.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes` | The productReviewAttributes. |

### getProductReviewAttributesOrBuilder()

    public abstract ProductReviewAttributesOrBuilder getProductReviewAttributesOrBuilder()

Optional. A list of product review attributes.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/com.google.shopping.merchant.reviews.v1beta.ProductReviewAttributesOrBuilder` |   |

### getProductReviewId()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The productReviewId. |

### getProductReviewIdBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for productReviewId. |

### getProductReviewStatus()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/com.google.shopping.merchant.reviews.v1beta.ProductReviewStatus` | The productReviewStatus. |

### getProductReviewStatusOrBuilder()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/com.google.shopping.merchant.reviews.v1beta.ProductReviewStatusOrBuilder` |   |

### hasProductReviewAttributes()

    public abstract boolean hasProductReviewAttributes()

Optional. A list of product review attributes.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the productReviewAttributes field is set. |

### hasProductReviewStatus()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the productReviewStatus field is set. |