# Interface RateGroupOrBuilder (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.26.0 0.24.0 0.23.0 0.20.0 0.19.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface RateGroupOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getApplicableShippingLabels(int index)

    public abstract String getApplicableShippingLabels(int index)

Required. A list of [shipping
labels](https://support.google.com/merchants/answer/6324504) defining the
products to which this rate group applies to. This is a disjunction: only
one of the labels has to match for the rate group to apply. May only be
empty for the last rate group of a service.

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

| **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 applicableShippingLabels at the given index. |

### getApplicableShippingLabelsBytes(int index)

    public abstract ByteString getApplicableShippingLabelsBytes(int index)

Required. A list of [shipping
labels](https://support.google.com/merchants/answer/6324504) defining the
products to which this rate group applies to. This is a disjunction: only
one of the labels has to match for the rate group to apply. May only be
empty for the last rate group of a service.

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

| **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 applicableShippingLabels at the given index. |

### getApplicableShippingLabelsCount()

    public abstract int getApplicableShippingLabelsCount()

Required. A list of [shipping
labels](https://support.google.com/merchants/answer/6324504) defining the
products to which this rate group applies to. This is a disjunction: only
one of the labels has to match for the rate group to apply. May only be
empty for the last rate group of a service.

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

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

### getApplicableShippingLabelsList()

    public abstract List<String> getApplicableShippingLabelsList()

Required. A list of [shipping
labels](https://support.google.com/merchants/answer/6324504) defining the
products to which this rate group applies to. This is a disjunction: only
one of the labels has to match for the rate group to apply. May only be
empty for the last rate group of a service.

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

| **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 applicableShippingLabels. |

### getCarrierRates(int index)

    public abstract CarrierRate getCarrierRates(int index)

Optional. A list of carrier rates that can be referred to by
`main_table` or `single_value`.

`
repeated .google.shopping.merchant.accounts.v1.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.CarrierRate` |   |

### getCarrierRatesCount()

    public abstract int getCarrierRatesCount()

Optional. A list of carrier rates that can be referred to by
`main_table` or `single_value`.

`
repeated .google.shopping.merchant.accounts.v1.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getCarrierRatesList()

    public abstract List<CarrierRate> getCarrierRatesList()

Optional. A list of carrier rates that can be referred to by
`main_table` or `single_value`.

`
repeated .google.shopping.merchant.accounts.v1.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.CarrierRate>` |   |

### getCarrierRatesOrBuilder(int index)

    public abstract CarrierRateOrBuilder getCarrierRatesOrBuilder(int index)

Optional. A list of carrier rates that can be referred to by
`main_table` or `single_value`.

`
repeated .google.shopping.merchant.accounts.v1.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.CarrierRateOrBuilder` |   |

### getCarrierRatesOrBuilderList()

    public abstract List<? extends CarrierRateOrBuilder> getCarrierRatesOrBuilderList()

Optional. A list of carrier rates that can be referred to by
`main_table` or `single_value`.

`
repeated .google.shopping.merchant.accounts.v1.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.shopping.merchant.accounts.v1.CarrierRateOrBuilder>` |   |

### getMainTable()

    public abstract Table getMainTable()

A table defining the rate group, when `single_value` is not
expressive enough. Can only be set if `single_value` is not
set.

`optional .google.shopping.merchant.accounts.v1.Table main_table = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.Table` | The mainTable. |

### getMainTableOrBuilder()

    public abstract TableOrBuilder getMainTableOrBuilder()

A table defining the rate group, when `single_value` is not
expressive enough. Can only be set if `single_value` is not
set.

`optional .google.shopping.merchant.accounts.v1.Table main_table = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.TableOrBuilder` |   |

### getName()

    public abstract String getName()

Optional. Name of the rate group.
If set has to be unique within shipping service.

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

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Optional. Name of the rate group.
If set has to be unique within shipping service.

`optional string name = 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 name. |

### getSingleValue()

    public abstract Value getSingleValue()

The value of the rate group (For example flat rate $10). Can only be set
if `main_table` and `subtables` are not set.

`optional .google.shopping.merchant.accounts.v1.Value single_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.Value` | The singleValue. |

### getSingleValueOrBuilder()

    public abstract ValueOrBuilder getSingleValueOrBuilder()

The value of the rate group (For example flat rate $10). Can only be set
if `main_table` and `subtables` are not set.

`optional .google.shopping.merchant.accounts.v1.Value single_value = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.ValueOrBuilder` |   |

### getSubtables(int index)

    public abstract Table getSubtables(int index)

Optional. A list of subtables referred to by `main_table`. Can only
be set if `main_table` is set.

`
repeated .google.shopping.merchant.accounts.v1.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.Table` |   |

### getSubtablesCount()

    public abstract int getSubtablesCount()

Optional. A list of subtables referred to by `main_table`. Can only
be set if `main_table` is set.

`
repeated .google.shopping.merchant.accounts.v1.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getSubtablesList()

    public abstract List<Table> getSubtablesList()

Optional. A list of subtables referred to by `main_table`. Can only
be set if `main_table` is set.

`
repeated .google.shopping.merchant.accounts.v1.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.Table>` |   |

### getSubtablesOrBuilder(int index)

    public abstract TableOrBuilder getSubtablesOrBuilder(int index)

Optional. A list of subtables referred to by `main_table`. Can only
be set if `main_table` is set.

`
repeated .google.shopping.merchant.accounts.v1.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.TableOrBuilder` |   |

### getSubtablesOrBuilderList()

    public abstract List<? extends TableOrBuilder> getSubtablesOrBuilderList()

Optional. A list of subtables referred to by `main_table`. Can only
be set if `main_table` is set.

`
repeated .google.shopping.merchant.accounts.v1.Table subtables = 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.merchant.accounts.v1.TableOrBuilder>` |   |

### hasMainTable()

    public abstract boolean hasMainTable()

A table defining the rate group, when `single_value` is not
expressive enough. Can only be set if `single_value` is not
set.

`optional .google.shopping.merchant.accounts.v1.Table main_table = 3;`

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

### hasName()

    public abstract boolean hasName()

Optional. Name of the rate group.
If set has to be unique within shipping service.

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

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

### hasSingleValue()

    public abstract boolean hasSingleValue()

The value of the rate group (For example flat rate $10). Can only be set
if `main_table` and `subtables` are not set.

`optional .google.shopping.merchant.accounts.v1.Value single_value = 2;`

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