# Interface LfpSaleOrBuilder (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.8.0 1.6.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface LfpSaleOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getContentLanguage()

    public abstract String getContentLanguage()

Required. The two-letter ISO 639-1 language code for the item.

`string content_language = 6 [(.google.api.field_behavior) = REQUIRED];`

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

### getContentLanguageBytes()

    public abstract ByteString getContentLanguageBytes()

Required. The two-letter ISO 639-1 language code for the item.

`string content_language = 6 [(.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 contentLanguage. |

### getFeedLabel()

    public abstract String getFeedLabel()

Optional. The [feed
label](https://developers.google.com/shopping-content/guides/products/feed-labels)
for the product. If this is not set, it will default to `regionCode`.

`optional string feed_label = 12 [(.google.api.field_behavior) = OPTIONAL];`

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

### getFeedLabelBytes()

    public abstract ByteString getFeedLabelBytes()

Optional. The [feed
label](https://developers.google.com/shopping-content/guides/products/feed-labels)
for the product. If this is not set, it will default to `regionCode`.

`optional string feed_label = 12 [(.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 feedLabel. |

### getGtin()

    public abstract String getGtin()

Required. The Global Trade Item Number of the sold product.

`string gtin = 7 [(.google.api.field_behavior) = REQUIRED];`

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

### getGtinBytes()

    public abstract ByteString getGtinBytes()

Required. The Global Trade Item Number of the sold product.

`string gtin = 7 [(.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 gtin. |

### getName()

    public abstract String getName()

Output only. Identifier. The name of the `LfpSale` resource.
Format:
`accounts/{account}/lfpSales/{sale}`

`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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()

Output only. Identifier. The name of the `LfpSale` resource.
Format:
`accounts/{account}/lfpSales/{sale}`

`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. |

### getOfferId()

    public abstract String getOfferId()

Required. A unique identifier for the product. If both inventories and
sales are submitted for a merchant, this id should match for the same
product.

**Note**: if the merchant sells the same product new and used, they should
have different IDs.

`string offer_id = 4 [(.google.api.field_behavior) = REQUIRED];`

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

### getOfferIdBytes()

    public abstract ByteString getOfferIdBytes()

Required. A unique identifier for the product. If both inventories and
sales are submitted for a merchant, this id should match for the same
product.

**Note**: if the merchant sells the same product new and used, they should
have different IDs.

`string offer_id = 4 [(.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 offerId. |

### getPrice()

    public abstract Price getPrice()

Required. The unit price of the product.

`.google.shopping.type.Price price = 8 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.shopping.type.Price` | The price. |

### getPriceOrBuilder()

    public abstract PriceOrBuilder getPriceOrBuilder()

Required. The unit price of the product.

`.google.shopping.type.Price price = 8 [(.google.api.field_behavior) = REQUIRED];`

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

### getQuantity()

    public abstract long getQuantity()

Required. The relative change of the available quantity. Negative for items
returned.

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

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

### getRegionCode()

    public abstract String getRegionCode()

Required. The [CLDR territory
code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml)
for the country where the product is sold.

`string region_code = 5 [(.google.api.field_behavior) = REQUIRED];`

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

### getRegionCodeBytes()

    public abstract ByteString getRegionCodeBytes()

Required. The [CLDR territory
code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml)
for the country where the product is sold.

`string region_code = 5 [(.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 regionCode. |

### getSaleTime()

    public abstract Timestamp getSaleTime()

Required. The timestamp for the sale.

`.google.protobuf.Timestamp sale_time = 10 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The saleTime. |

### getSaleTimeOrBuilder()

    public abstract TimestampOrBuilder getSaleTimeOrBuilder()

Required. The timestamp for the sale.

`.google.protobuf.Timestamp sale_time = 10 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getStoreCode()

    public abstract String getStoreCode()

Required. The identifier of the merchant's store. Either a `storeCode`
inserted through the API or the code of the store in the Business Profile.

`string store_code = 3 [(.google.api.field_behavior) = REQUIRED];`

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

### getStoreCodeBytes()

    public abstract ByteString getStoreCodeBytes()

Required. The identifier of the merchant's store. Either a `storeCode`
inserted through the API or the code of the store in the Business Profile.

`string store_code = 3 [(.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 storeCode. |

### getTargetAccount()

    public abstract long getTargetAccount()

Required. The Merchant Center ID of the merchant to submit the sale for.

`int64 target_account = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getUid()

    public abstract String getUid()

Output only. System generated globally unique ID for the `LfpSale`.

`
optional string uid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
`

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

### getUidBytes()

    public abstract ByteString getUidBytes()

Output only. System generated globally unique ID for the `LfpSale`.

`
optional string uid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
`

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

### hasFeedLabel()

    public abstract boolean hasFeedLabel()

Optional. The [feed
label](https://developers.google.com/shopping-content/guides/products/feed-labels)
for the product. If this is not set, it will default to `regionCode`.

`optional string feed_label = 12 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasPrice()

    public abstract boolean hasPrice()

Required. The unit price of the product.

`.google.shopping.type.Price price = 8 [(.google.api.field_behavior) = REQUIRED];`

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

### hasSaleTime()

    public abstract boolean hasSaleTime()

Required. The timestamp for the sale.

`.google.protobuf.Timestamp sale_time = 10 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasUid()

    public abstract boolean hasUid()

Output only. System generated globally unique ID for the `LfpSale`.

`
optional string uid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
`

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