Class Shipping (0.5.0)

public final class Shipping extends GeneratedMessageV3 implements ShippingOrBuilder

The Shipping of the product.

Protobuf type google.shopping.merchant.products.v1beta.Shipping

Implements

ShippingOrBuilder

Static Fields

COUNTRY_FIELD_NUMBER

public static final int COUNTRY_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_GROUP_NAME_FIELD_NUMBER

public static final int LOCATION_GROUP_NAME_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_ID_FIELD_NUMBER

public static final int LOCATION_ID_FIELD_NUMBER
Field Value
Type Description
int

MAX_HANDLING_TIME_FIELD_NUMBER

public static final int MAX_HANDLING_TIME_FIELD_NUMBER
Field Value
Type Description
int

MAX_TRANSIT_TIME_FIELD_NUMBER

public static final int MAX_TRANSIT_TIME_FIELD_NUMBER
Field Value
Type Description
int

MIN_HANDLING_TIME_FIELD_NUMBER

public static final int MIN_HANDLING_TIME_FIELD_NUMBER
Field Value
Type Description
int

MIN_TRANSIT_TIME_FIELD_NUMBER

public static final int MIN_TRANSIT_TIME_FIELD_NUMBER
Field Value
Type Description
int

POSTAL_CODE_FIELD_NUMBER

public static final int POSTAL_CODE_FIELD_NUMBER
Field Value
Type Description
int

PRICE_FIELD_NUMBER

public static final int PRICE_FIELD_NUMBER
Field Value
Type Description
int

REGION_FIELD_NUMBER

public static final int REGION_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Shipping getDefaultInstance()
Returns
Type Description
Shipping

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Shipping.Builder newBuilder()
Returns
Type Description
Shipping.Builder

newBuilder(Shipping prototype)

public static Shipping.Builder newBuilder(Shipping prototype)
Parameter
Name Description
prototype Shipping
Returns
Type Description
Shipping.Builder

parseDelimitedFrom(InputStream input)

public static Shipping parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Shipping
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Shipping parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Shipping
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Shipping parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Shipping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Shipping parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Shipping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Shipping parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Shipping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Shipping parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Shipping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Shipping parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Shipping
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Shipping parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Shipping
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Shipping parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Shipping
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Shipping parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Shipping
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Shipping parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Shipping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Shipping parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Shipping
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Shipping> parser()
Returns
Type Description
Parser<Shipping>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCountry()

public String getCountry()

The CLDR territory code of the country to which an item will ship.

string country = 2;

Returns
Type Description
String

The country.

getCountryBytes()

public ByteString getCountryBytes()

The CLDR territory code of the country to which an item will ship.

string country = 2;

Returns
Type Description
ByteString

The bytes for country.

getDefaultInstanceForType()

public Shipping getDefaultInstanceForType()
Returns
Type Description
Shipping

getLocationGroupName()

public String getLocationGroupName()

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

string location_group_name = 6;

Returns
Type Description
String

The locationGroupName.

getLocationGroupNameBytes()

public ByteString getLocationGroupNameBytes()

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

string location_group_name = 6;

Returns
Type Description
ByteString

The bytes for locationGroupName.

getLocationId()

public long getLocationId()

The numeric ID of a location that the shipping rate applies to as defined in the AdWords API.

int64 location_id = 5;

Returns
Type Description
long

The locationId.

getMaxHandlingTime()

public 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
long

The maxHandlingTime.

getMaxTransitTime()

public 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
long

The maxTransitTime.

getMinHandlingTime()

public 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
long

The minHandlingTime.

getMinTransitTime()

public 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
long

The minTransitTime.

getParserForType()

public Parser<Shipping> getParserForType()
Returns
Type Description
Parser<Shipping>
Overrides

getPostalCode()

public 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
String

The postalCode.

getPostalCodeBytes()

public 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
ByteString

The bytes for postalCode.

getPrice()

public 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 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 String getRegion()

The geographic region to which a shipping rate applies. See region for more information.

string region = 3;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

The geographic region to which a shipping rate applies. See region for more information.

string region = 3;

Returns
Type Description
ByteString

The bytes for region.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getService()

public String getService()

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

string service = 4;

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

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

string service = 4;

Returns
Type Description
ByteString

The bytes for service.

hasMaxHandlingTime()

public 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
boolean

Whether the maxHandlingTime field is set.

hasMaxTransitTime()

public 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
boolean

Whether the maxTransitTime field is set.

hasMinHandlingTime()

public 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
boolean

Whether the minHandlingTime field is set.

hasMinTransitTime()

public 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
boolean

Whether the minTransitTime field is set.

hasPrice()

public boolean hasPrice()

Fixed shipping price, represented as a number.

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

Returns
Type Description
boolean

Whether the price field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Shipping.Builder newBuilderForType()
Returns
Type Description
Shipping.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Shipping.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Shipping.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Shipping.Builder toBuilder()
Returns
Type Description
Shipping.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException