# Interface ProductInfoOrBuilder (0.33.0)

0.33.0 (latest) 0.31.0 0.28.0 0.27.0 0.25.0 0.23.0 0.22.0 0.20.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.10.0 0.8.0 0.7.0 0.4.0 0.3.0 0.2.0

    public interface ProductInfoOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsProductAttributes(String key)

    public abstract boolean containsProductAttributes(String key)

Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.

`
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getProductAttributes() (deprecated)

    public abstract Map<String,String> getProductAttributes()

Use [#getProductAttributesMap()](https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.ProductInfoOrBuilder#com_google_shopping_merchant_productstudio_v1alpha_ProductInfoOrBuilder_getProductAttributesMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getProductAttributesCount()

    public abstract int getProductAttributesCount()

Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.

`
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getProductAttributesMap()

    public abstract Map<String,String> getProductAttributesMap()

Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.

`
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getProductAttributesOrDefault(String key, String defaultValue)

    public abstract String getProductAttributesOrDefault(String key, String defaultValue)

Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.

`
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getProductAttributesOrThrow(String key)

    public abstract String getProductAttributesOrThrow(String key)

Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.

`
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getProductImage()

    public abstract Image getProductImage()

Optional. Image associated with the product.

`
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.Image` | The productImage. |

### getProductImageOrBuilder()

    public abstract ImageOrBuilder getProductImageOrBuilder()

Optional. Image associated with the product.

`
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/com.google.shopping.merchant.productstudio.v1alpha.ImageOrBuilder` |   |

### hasProductImage()

    public abstract boolean hasProductImage()

Optional. Image associated with the product.

`
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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