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

## Implements

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

## Methods

### getCountry()

    public abstract String getCountry()

The [CLDR territory
code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
of the country to which an item will ship.

`string country = 2;`

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

### getCountryBytes()

    public abstract ByteString getCountryBytes()

The [CLDR territory
code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
of the country to which an item will ship.

`string country = 2;`

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

### getHandlingCutoffTime()

    public abstract String getHandlingCutoffTime()

The handling cutoff time until which an order has to be placed to be
processed in the same day. This is a string in format of HHMM (e.g.
`1530`) for 3:30 PM. If not configured, the cutoff time will be defaulted
to 8AM PST and `handling_cutoff_timezone` will be ignored.

`optional string handling_cutoff_time = 12;`

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

### getHandlingCutoffTimeBytes()

    public abstract ByteString getHandlingCutoffTimeBytes()

The handling cutoff time until which an order has to be placed to be
processed in the same day. This is a string in format of HHMM (e.g.
`1530`) for 3:30 PM. If not configured, the cutoff time will be defaulted
to 8AM PST and `handling_cutoff_timezone` will be ignored.

`optional string handling_cutoff_time = 12;`

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

### getHandlingCutoffTimezone()

    public abstract String getHandlingCutoffTimezone()

[Timezone
identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids)
For example `Europe/Zurich`. This field only applies if
`handling_cutoff_time` is set. If `handling_cutoff_time` is set but this
field is not set, the shipping destination timezone will be used. If both
fields are not set, the handling cutoff time will default to 8AM PST.

`optional string handling_cutoff_timezone = 13;`

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

### getHandlingCutoffTimezoneBytes()

    public abstract ByteString getHandlingCutoffTimezoneBytes()

[Timezone
identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids)
For example `Europe/Zurich`. This field only applies if
`handling_cutoff_time` is set. If `handling_cutoff_time` is set but this
field is not set, the shipping destination timezone will be used. If both
fields are not set, the handling cutoff time will default to 8AM PST.

`optional string handling_cutoff_timezone = 13;`

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

### getLocationGroupName()

    public abstract String getLocationGroupName()

The location where the shipping is applicable, represented by a
location group name.

`string location_group_name = 6;`

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

### getLocationGroupNameBytes()

    public abstract ByteString getLocationGroupNameBytes()

The location where the shipping is applicable, represented by a
location group name.

`string location_group_name = 6;`

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

### getLocationId()

    public abstract long getLocationId()

The numeric ID of a location that the shipping rate applies to as
defined in the [AdWords
API](https://developers.google.com/adwords/api/docs/appendix/geotargeting).

`int64 location_id = 5;`

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

### getMaxHandlingTime()

    public abstract long getMaxHandlingTime()

Maximum handling time (inclusive) between when the order is received and
shipped in business days. 0 means that the order is shipped on the same
day as it is received if it happens before the cut-off time. Both
maxHandlingTime
and
maxTransitTime
are required if providing shipping speeds.
minHandlingTime
is optional if
maxHandlingTime
is present.

`optional int64 max_handling_time = 9;`

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

### getMaxTransitTime()

    public abstract long getMaxTransitTime()

Maximum transit time (inclusive) between when the order has shipped and
when it is delivered in business days. 0 means that the order is
delivered on the same day as it ships. Both
maxHandlingTime
and
maxTransitTime
are required if providing shipping speeds.
minTransitTime
is optional if
maxTransitTime
is present.

`optional int64 max_transit_time = 11;`

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

### getMinHandlingTime()

    public abstract long getMinHandlingTime()

Minimum handling time (inclusive) between when the order is received and
shipped in business days. 0 means that the order is shipped on the same
day as it is received if it happens before the cut-off time.
minHandlingTime
can only be present together with
maxHandlingTime;
but it is not required if
maxHandlingTime
is present.

`optional int64 min_handling_time = 8;`

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

### getMinTransitTime()

    public abstract long getMinTransitTime()

Minimum transit time (inclusive) between when the order has shipped and
when it is delivered in business days. 0 means that the order is
delivered on the same day as it ships.
minTransitTime
can only be present together with
maxTransitTime;
but it is not required if
maxTransitTime
is present.

`optional int64 min_transit_time = 10;`

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

### getPostalCode()

    public abstract String getPostalCode()

The postal code range that the shipping rate applies to, represented by
a postal code, a postal code prefix followed by a \* wildcard, a range
between two postal codes or two postal code prefixes of equal length.

`string postal_code = 7;`

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

### getPostalCodeBytes()

    public abstract ByteString getPostalCodeBytes()

The postal code range that the shipping rate applies to, represented by
a postal code, a postal code prefix followed by a \* wildcard, a range
between two postal codes or two postal code prefixes of equal length.

`string postal_code = 7;`

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

### getPrice()

    public abstract Price getPrice()

Fixed shipping price, represented as a number.

`.google.shopping.type.Price price = 1;`

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

### getPriceOrBuilder()

    public abstract PriceOrBuilder getPriceOrBuilder()

Fixed shipping price, represented as a number.

`.google.shopping.type.Price price = 1;`

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

### getRegion()

    public abstract String getRegion()

The geographic region to which a shipping rate applies.
See [region](https://support.google.com/merchants/answer/6324484) for more
information.

`string region = 3;`

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

### getRegionBytes()

    public abstract ByteString getRegionBytes()

The geographic region to which a shipping rate applies.
See [region](https://support.google.com/merchants/answer/6324484) for more
information.

`string region = 3;`

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

### getService()

    public abstract String getService()

A free-form description of the service class or delivery speed.

`string service = 4;`

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

### getServiceBytes()

    public abstract ByteString getServiceBytes()

A free-form description of the service class or delivery speed.

`string service = 4;`

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

### hasHandlingCutoffTime()

    public abstract boolean hasHandlingCutoffTime()

The handling cutoff time until which an order has to be placed to be
processed in the same day. This is a string in format of HHMM (e.g.
`1530`) for 3:30 PM. If not configured, the cutoff time will be defaulted
to 8AM PST and `handling_cutoff_timezone` will be ignored.

`optional string handling_cutoff_time = 12;`

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

### hasHandlingCutoffTimezone()

    public abstract boolean hasHandlingCutoffTimezone()

[Timezone
identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids)
For example `Europe/Zurich`. This field only applies if
`handling_cutoff_time` is set. If `handling_cutoff_time` is set but this
field is not set, the shipping destination timezone will be used. If both
fields are not set, the handling cutoff time will default to 8AM PST.

`optional string handling_cutoff_timezone = 13;`

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

### hasMaxHandlingTime()

    public abstract boolean hasMaxHandlingTime()

Maximum handling time (inclusive) between when the order is received and
shipped in business days. 0 means that the order is shipped on the same
day as it is received if it happens before the cut-off time. Both
maxHandlingTime
and
maxTransitTime
are required if providing shipping speeds.
minHandlingTime
is optional if
maxHandlingTime
is present.

`optional int64 max_handling_time = 9;`

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

### hasMaxTransitTime()

    public abstract boolean hasMaxTransitTime()

Maximum transit time (inclusive) between when the order has shipped and
when it is delivered in business days. 0 means that the order is
delivered on the same day as it ships. Both
maxHandlingTime
and
maxTransitTime
are required if providing shipping speeds.
minTransitTime
is optional if
maxTransitTime
is present.

`optional int64 max_transit_time = 11;`

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

### hasMinHandlingTime()

    public abstract boolean hasMinHandlingTime()

Minimum handling time (inclusive) between when the order is received and
shipped in business days. 0 means that the order is shipped on the same
day as it is received if it happens before the cut-off time.
minHandlingTime
can only be present together with
maxHandlingTime;
but it is not required if
maxHandlingTime
is present.

`optional int64 min_handling_time = 8;`

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

### hasMinTransitTime()

    public abstract boolean hasMinTransitTime()

Minimum transit time (inclusive) between when the order has shipped and
when it is delivered in business days. 0 means that the order is
delivered on the same day as it ships.
minTransitTime
can only be present together with
maxTransitTime;
but it is not required if
maxTransitTime
is present.

`optional int64 min_transit_time = 10;`

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

### hasPrice()

    public abstract boolean hasPrice()

Fixed shipping price, represented as a number.

`.google.shopping.type.Price price = 1;`

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