# Interface OrderTrackingSignal.ShipmentLineItemMappingOrBuilder (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.ShipmentLineItemMappingOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getLineItemId()

    public abstract String getLineItemId()

Required. The line item ID.

`string line_item_id = 2 [(.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 line item ID.

`string line_item_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 lineItemId. |

### getQuantity()

    public abstract long getQuantity()

Required. The line item quantity in the shipment.

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

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

### getShipmentId()

    public abstract String getShipmentId()

Required. The shipment ID. This field will be hashed in returned
OrderTrackingSignal creation response.

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

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

### getShipmentIdBytes()

    public abstract ByteString getShipmentIdBytes()

Required. The shipment ID. This field will be hashed in returned
OrderTrackingSignal creation response.

`string shipment_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 shipmentId. |