Class Shipping.Builder (0.4.0)

public static final class Shipping.Builder extends GeneratedMessageV3.Builder<Shipping.Builder> implements ShippingOrBuilder

The Shipping of the product.

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

Implements

ShippingOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Shipping.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Shipping.Builder
Overrides

build()

public Shipping build()
Returns
Type Description
Shipping

buildPartial()

public Shipping buildPartial()
Returns
Type Description
Shipping

clear()

public Shipping.Builder clear()
Returns
Type Description
Shipping.Builder
Overrides

clearCountry()

public Shipping.Builder clearCountry()

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

string country = 2;

Returns
Type Description
Shipping.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Shipping.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Shipping.Builder
Overrides

clearLocationGroupName()

public Shipping.Builder clearLocationGroupName()

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

string location_group_name = 6;

Returns
Type Description
Shipping.Builder

This builder for chaining.

clearLocationId()

public Shipping.Builder clearLocationId()

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
Shipping.Builder

This builder for chaining.

clearMaxHandlingTime()

public Shipping.Builder clearMaxHandlingTime()

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
Shipping.Builder

This builder for chaining.

clearMaxTransitTime()

public Shipping.Builder clearMaxTransitTime()

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
Shipping.Builder

This builder for chaining.

clearMinHandlingTime()

public Shipping.Builder clearMinHandlingTime()

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
Shipping.Builder

This builder for chaining.

clearMinTransitTime()

public Shipping.Builder clearMinTransitTime()

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
Shipping.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Shipping.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Shipping.Builder
Overrides

clearPostalCode()

public Shipping.Builder clearPostalCode()

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
Shipping.Builder

This builder for chaining.

clearPrice()

public Shipping.Builder clearPrice()

Fixed shipping price, represented as a number.

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

Returns
Type Description
Shipping.Builder

clearRegion()

public Shipping.Builder clearRegion()

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

string region = 3;

Returns
Type Description
Shipping.Builder

This builder for chaining.

clearService()

public Shipping.Builder clearService()

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

string service = 4;

Returns
Type Description
Shipping.Builder

This builder for chaining.

clone()

public Shipping.Builder clone()
Returns
Type Description
Shipping.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

getPriceBuilder()

public Price.Builder getPriceBuilder()

Fixed shipping price, represented as a number.

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

Returns
Type Description
com.google.shopping.type.Price.Builder

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Shipping.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Shipping.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Shipping.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Shipping.Builder
Overrides

mergeFrom(Shipping other)

public Shipping.Builder mergeFrom(Shipping other)
Parameter
Name Description
other Shipping
Returns
Type Description
Shipping.Builder

mergePrice(Price value)

public Shipping.Builder mergePrice(Price value)

Fixed shipping price, represented as a number.

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
Shipping.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Shipping.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Shipping.Builder
Overrides

setCountry(String value)

public Shipping.Builder setCountry(String value)

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

string country = 2;

Parameter
Name Description
value String

The country to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setCountryBytes(ByteString value)

public Shipping.Builder setCountryBytes(ByteString value)

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

string country = 2;

Parameter
Name Description
value ByteString

The bytes for country to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Shipping.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Shipping.Builder
Overrides

setLocationGroupName(String value)

public Shipping.Builder setLocationGroupName(String value)

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

string location_group_name = 6;

Parameter
Name Description
value String

The locationGroupName to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setLocationGroupNameBytes(ByteString value)

public Shipping.Builder setLocationGroupNameBytes(ByteString value)

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

string location_group_name = 6;

Parameter
Name Description
value ByteString

The bytes for locationGroupName to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setLocationId(long value)

public Shipping.Builder setLocationId(long value)

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

int64 location_id = 5;

Parameter
Name Description
value long

The locationId to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setMaxHandlingTime(long value)

public Shipping.Builder setMaxHandlingTime(long value)

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;

Parameter
Name Description
value long

The maxHandlingTime to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setMaxTransitTime(long value)

public Shipping.Builder setMaxTransitTime(long value)

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;

Parameter
Name Description
value long

The maxTransitTime to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setMinHandlingTime(long value)

public Shipping.Builder setMinHandlingTime(long value)

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;

Parameter
Name Description
value long

The minHandlingTime to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setMinTransitTime(long value)

public Shipping.Builder setMinTransitTime(long value)

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;

Parameter
Name Description
value long

The minTransitTime to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setPostalCode(String value)

public Shipping.Builder setPostalCode(String value)

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;

Parameter
Name Description
value String

The postalCode to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setPostalCodeBytes(ByteString value)

public Shipping.Builder setPostalCodeBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for postalCode to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setPrice(Price value)

public Shipping.Builder setPrice(Price value)

Fixed shipping price, represented as a number.

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
Shipping.Builder

setPrice(Price.Builder builderForValue)

public Shipping.Builder setPrice(Price.Builder builderForValue)

Fixed shipping price, represented as a number.

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

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
Shipping.Builder

setRegion(String value)

public Shipping.Builder setRegion(String value)

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

string region = 3;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public Shipping.Builder setRegionBytes(ByteString value)

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

string region = 3;

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Shipping.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Shipping.Builder
Overrides

setService(String value)

public Shipping.Builder setService(String value)

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

string service = 4;

Parameter
Name Description
value String

The service to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public Shipping.Builder setServiceBytes(ByteString value)

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

string service = 4;

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
Shipping.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Shipping.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Shipping.Builder
Overrides