# Interface OrderTrackingSignal.LineItemDetailsOrBuilder (1.21.0)

1.21.0 (latest) 1.19.0 1.16.0 1.15.0 1.13.0 1.11.0 1.10.0 1.9.0 1.8.0 1.6.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.10.0 0.8.0 0.7.0 0.4.0 0.3.0 0.2.0

    public static interface OrderTrackingSignal.LineItemDetailsOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getBrand()

    public abstract String getBrand()

Optional. Brand of the product.

`optional string brand = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getBrandBytes()

    public abstract ByteString getBrandBytes()

Optional. Brand of the product.

`optional string brand = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for brand. |

### getGtins(int index)

    public abstract String getGtins(int index)

Optional. The Global Trade Item Numbers.

`repeated string gtins = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The gtins at the given index. |

### getGtinsBytes(int index)

    public abstract ByteString getGtinsBytes(int index)

Optional. The Global Trade Item Numbers.

`repeated string gtins = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the gtins at the given index. |

### getGtinsCount()

    public abstract int getGtinsCount()

Optional. The Global Trade Item Numbers.

`repeated string gtins = 8 [(.google.api.field_behavior) = OPTIONAL];`

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

### getGtinsList()

    public abstract List<String> getGtinsList()

Optional. The Global Trade Item Numbers.

`repeated string gtins = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the gtins. |

### getLineItemId()

    public abstract String getLineItemId()

Required. The ID for this line item.

`string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getLineItemIdBytes()

    public abstract ByteString getLineItemIdBytes()

Required. The ID for this line item.

`string line_item_id = 1 [(.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 lineItemId. |

### getMpn()

    public abstract String getMpn()

Optional. The manufacturer part number.

`string mpn = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getMpnBytes()

    public abstract ByteString getMpnBytes()

Optional. The manufacturer part number.

`string mpn = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for mpn. |

### getProductId()

    public abstract String getProductId()

Required. The Content API REST ID of the product, in the
form channel:contentLanguage:targetCountry:offerId.

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

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

### getProductIdBytes()

    public abstract ByteString getProductIdBytes()

Required. The Content API REST ID of the product, in the
form channel:contentLanguage:targetCountry:offerId.

`string product_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 productId. |

### getProductTitle()

    public abstract String getProductTitle()

Optional. Plain text title of this product.

`optional string product_title = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getProductTitleBytes()

    public abstract ByteString getProductTitleBytes()

Optional. Plain text title of this product.

`optional string product_title = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for productTitle. |

### getQuantity()

    public abstract long getQuantity()

Required. The quantity of the line item in the order.

`int64 quantity = 7 [(.google.api.field_behavior) = REQUIRED];`

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

### hasBrand()

    public abstract boolean hasBrand()

Optional. Brand of the product.

`optional string brand = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasProductTitle()

    public abstract boolean hasProductTitle()

Optional. Plain text title of this product.

`optional string product_title = 5 [(.google.api.field_behavior) = OPTIONAL];`

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