public final class Shipping extends GeneratedMessageV3 implements ShippingOrBuilder
The Shipping of the product.
Protobuf type google.shopping.merchant.products.v1beta.Shipping
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int COUNTRY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LOCATION_GROUP_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LOCATION_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MAX_HANDLING_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MAX_TRANSIT_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MIN_HANDLING_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
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 |
|
public static final int PRICE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int REGION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SERVICE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static Shipping getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Shipping.Builder newBuilder()
public static Shipping.Builder newBuilder(Shipping prototype)
Parameter |
Name |
Description |
prototype |
Shipping
|
public static Shipping parseDelimitedFrom(InputStream input)
public static Shipping parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Shipping parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static Shipping parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Shipping parseFrom(ByteString data)
public static Shipping parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Shipping parseFrom(CodedInputStream input)
public static Shipping parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Shipping parseFrom(InputStream input)
public static Shipping parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Shipping parseFrom(ByteBuffer data)
public static Shipping parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Shipping> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public String getCountry()
Returns |
Type |
Description |
String |
The country.
|
public ByteString getCountryBytes()
Returns |
Type |
Description |
ByteString |
The bytes for country.
|
public Shipping getDefaultInstanceForType()
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
public Parser<Shipping> getParserForType()
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.
|
Fixed shipping price, represented as a number.
.google.shopping.type.Price price = 1;
Returns |
Type |
Description |
com.google.shopping.type.Price |
The price.
|
public PriceOrBuilder getPriceOrBuilder()
Fixed shipping price, represented as a number.
.google.shopping.type.Price price = 1;
Returns |
Type |
Description |
com.google.shopping.type.PriceOrBuilder |
|
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.
|
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.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public String getService()
A free-form description of the service class or delivery speed.
string service = 4;
Returns |
Type |
Description |
String |
The service.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Shipping.Builder newBuilderForType()
protected Shipping.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public Shipping.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides