# Interface ServiceOrBuilder (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 ServiceOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getActive()

    public abstract boolean getActive()

Required. A boolean exposing the active status of the shipping service.

`optional bool active = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getCurrencyCode()

    public abstract String getCurrencyCode()

The CLDR code of the currency to which this service applies. Must match
that of the prices in rate groups.

`optional string currency_code = 4;`

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

### getCurrencyCodeBytes()

    public abstract ByteString getCurrencyCodeBytes()

The CLDR code of the currency to which this service applies. Must match
that of the prices in rate groups.

`optional string currency_code = 4;`

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

### getDeliveryCountries(int index)

    public abstract String getDeliveryCountries(int index)

Required. The CLDR territory code of the countries to which the service
applies.

`repeated string delivery_countries = 3 [(.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 deliveryCountries at the given index. |

### getDeliveryCountriesBytes(int index)

    public abstract ByteString getDeliveryCountriesBytes(int index)

Required. The CLDR territory code of the countries to which the service
applies.

`repeated string delivery_countries = 3 [(.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 deliveryCountries at the given index. |

### getDeliveryCountriesCount()

    public abstract int getDeliveryCountriesCount()

Required. The CLDR territory code of the countries to which the service
applies.

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

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

### getDeliveryCountriesList()

    public abstract List<String> getDeliveryCountriesList()

Required. The CLDR territory code of the countries to which the service
applies.

`repeated string delivery_countries = 3 [(.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 deliveryCountries. |

### getDeliveryTime()

    public abstract DeliveryTime getDeliveryTime()

Required. Time spent in various aspects from order to the delivery of the
product.

`
optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1beta.DeliveryTime` | The deliveryTime. |

### getDeliveryTimeOrBuilder()

    public abstract DeliveryTimeOrBuilder getDeliveryTimeOrBuilder()

Required. Time spent in various aspects from order to the delivery of the
product.

`
optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];
`

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

### getLoyaltyPrograms(int index)

    public abstract Service.LoyaltyProgram getLoyaltyPrograms(int index)

Optional. Loyalty programs that this shipping service is limited to.

`
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.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.v1beta.Service.LoyaltyProgram` |   |

### getLoyaltyProgramsCount()

    public abstract int getLoyaltyProgramsCount()

Optional. Loyalty programs that this shipping service is limited to.

`
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getLoyaltyProgramsList()

    public abstract List<Service.LoyaltyProgram> getLoyaltyProgramsList()

Optional. Loyalty programs that this shipping service is limited to.

`
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.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.v1beta.Service.LoyaltyProgram>` |   |

### getLoyaltyProgramsOrBuilder(int index)

    public abstract Service.LoyaltyProgramOrBuilder getLoyaltyProgramsOrBuilder(int index)

Optional. Loyalty programs that this shipping service is limited to.

`
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.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.v1beta.Service.LoyaltyProgramOrBuilder` |   |

### getLoyaltyProgramsOrBuilderList()

    public abstract List<? extends Service.LoyaltyProgramOrBuilder> getLoyaltyProgramsOrBuilderList()

Optional. Loyalty programs that this shipping service is limited to.

`
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.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.v1beta.Service.LoyaltyProgramOrBuilder>` |   |

### getMinimumOrderValue()

    public abstract Price getMinimumOrderValue()

Minimum order value for this service. If set, indicates that customers
will have to spend at least this amount.
All prices within a service must have the same currency.
Cannot be set together with minimum_order_value_table.

`optional .google.shopping.type.Price minimum_order_value = 8;`

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

### getMinimumOrderValueOrBuilder()

    public abstract PriceOrBuilder getMinimumOrderValueOrBuilder()

Minimum order value for this service. If set, indicates that customers
will have to spend at least this amount.
All prices within a service must have the same currency.
Cannot be set together with minimum_order_value_table.

`optional .google.shopping.type.Price minimum_order_value = 8;`

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

### getMinimumOrderValueTable()

    public abstract MinimumOrderValueTable getMinimumOrderValueTable()

Table of per store minimum order values for the pickup fulfillment type.
Cannot be set together with minimum_order_value.

`
optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable` | The minimumOrderValueTable. |

### getMinimumOrderValueTableOrBuilder()

    public abstract MinimumOrderValueTableOrBuilder getMinimumOrderValueTableOrBuilder()

Table of per store minimum order values for the pickup fulfillment type.
Cannot be set together with minimum_order_value.

`
optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;
`

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

### getRateGroups(int index)

    public abstract RateGroup getRateGroups(int index)

Optional. Shipping rate group definitions. Only the last one is allowed to
have an empty `applicable_shipping_labels`, which means "everything else".
The other `applicable_shipping_labels` must not overlap.

`
repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.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.v1beta.RateGroup` |   |

### getRateGroupsCount()

    public abstract int getRateGroupsCount()

Optional. Shipping rate group definitions. Only the last one is allowed to
have an empty `applicable_shipping_labels`, which means "everything else".
The other `applicable_shipping_labels` must not overlap.

`
repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getRateGroupsList()

    public abstract List<RateGroup> getRateGroupsList()

Optional. Shipping rate group definitions. Only the last one is allowed to
have an empty `applicable_shipping_labels`, which means "everything else".
The other `applicable_shipping_labels` must not overlap.

`
repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.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.v1beta.RateGroup>` |   |

### getRateGroupsOrBuilder(int index)

    public abstract RateGroupOrBuilder getRateGroupsOrBuilder(int index)

Optional. Shipping rate group definitions. Only the last one is allowed to
have an empty `applicable_shipping_labels`, which means "everything else".
The other `applicable_shipping_labels` must not overlap.

`
repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.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.v1beta.RateGroupOrBuilder` |   |

### getRateGroupsOrBuilderList()

    public abstract List<? extends RateGroupOrBuilder> getRateGroupsOrBuilderList()

Optional. Shipping rate group definitions. Only the last one is allowed to
have an empty `applicable_shipping_labels`, which means "everything else".
The other `applicable_shipping_labels` must not overlap.

`
repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.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.v1beta.RateGroupOrBuilder>` |   |

### getServiceName()

    public abstract String getServiceName()

Required. Free-form name of the service. Must be unique within target
account.

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

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

### getServiceNameBytes()

    public abstract ByteString getServiceNameBytes()

Required. Free-form name of the service. Must be unique within target
account.

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

### getShipmentType()

    public abstract Service.ShipmentType getShipmentType()

Type of locations this service ships orders to.

`
optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1beta.Service.ShipmentType` | The shipmentType. |

### getShipmentTypeValue()

    public abstract int getShipmentTypeValue()

Type of locations this service ships orders to.

`
optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for shipmentType. |

### getStoreConfig()

    public abstract Service.StoreConfig getStoreConfig()

A list of stores your products are delivered from.
This is only valid for the local delivery shipment type.

`optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1beta.Service.StoreConfig` | The storeConfig. |

### getStoreConfigOrBuilder()

    public abstract Service.StoreConfigOrBuilder getStoreConfigOrBuilder()

A list of stores your products are delivered from.
This is only valid for the local delivery shipment type.

`optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;
`

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

### hasActive()

    public abstract boolean hasActive()

Required. A boolean exposing the active status of the shipping service.

`optional bool active = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### hasCurrencyCode()

    public abstract boolean hasCurrencyCode()

The CLDR code of the currency to which this service applies. Must match
that of the prices in rate groups.

`optional string currency_code = 4;`

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

### hasDeliveryTime()

    public abstract boolean hasDeliveryTime()

Required. Time spent in various aspects from order to the delivery of the
product.

`
optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasMinimumOrderValue()

    public abstract boolean hasMinimumOrderValue()

Minimum order value for this service. If set, indicates that customers
will have to spend at least this amount.
All prices within a service must have the same currency.
Cannot be set together with minimum_order_value_table.

`optional .google.shopping.type.Price minimum_order_value = 8;`

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

### hasMinimumOrderValueTable()

    public abstract boolean hasMinimumOrderValueTable()

Table of per store minimum order values for the pickup fulfillment type.
Cannot be set together with minimum_order_value.

`
optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;
`

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

### hasServiceName()

    public abstract boolean hasServiceName()

Required. Free-form name of the service. Must be unique within target
account.

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

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

### hasShipmentType()

    public abstract boolean hasShipmentType()

Type of locations this service ships orders to.

`
optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;
`

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

### hasStoreConfig()

    public abstract boolean hasStoreConfig()

A list of stores your products are delivered from.
This is only valid for the local delivery shipment type.

`optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;
`

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