public static final class FreeShippingThreshold.Builder extends GeneratedMessage.Builder<FreeShippingThreshold.Builder> implements FreeShippingThresholdOrBuilderConditions to be met for a product to have free shipping.
Protobuf type google.shopping.merchant.products.v1beta.FreeShippingThreshold
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FreeShippingThreshold.BuilderImplements
FreeShippingThresholdOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FreeShippingThreshold build()| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold |
|
buildPartial()
public FreeShippingThreshold buildPartial()| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold |
|
clear()
public FreeShippingThreshold.Builder clear()| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
|
clearCountry()
public FreeShippingThreshold.Builder clearCountry()The CLDR territory code of the country to which an item will ship.
optional string country = 1;
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
This builder for chaining. |
clearPriceThreshold()
public FreeShippingThreshold.Builder clearPriceThreshold()The minimum product price for the shipping cost to become free. Represented as a number.
optional .google.shopping.type.Price price_threshold = 2;
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
|
getCountry()
public String getCountry()The CLDR territory code of the country to which an item will ship.
optional string country = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The country. |
getCountryBytes()
public ByteString getCountryBytes()The CLDR territory code of the country to which an item will ship.
optional string country = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for country. |
getDefaultInstanceForType()
public FreeShippingThreshold getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPriceThreshold()
public Price getPriceThreshold()The minimum product price for the shipping cost to become free. Represented as a number.
optional .google.shopping.type.Price price_threshold = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price |
The priceThreshold. |
getPriceThresholdBuilder()
public Price.Builder getPriceThresholdBuilder()The minimum product price for the shipping cost to become free. Represented as a number.
optional .google.shopping.type.Price price_threshold = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price.Builder |
|
getPriceThresholdOrBuilder()
public PriceOrBuilder getPriceThresholdOrBuilder()The minimum product price for the shipping cost to become free. Represented as a number.
optional .google.shopping.type.Price price_threshold = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.PriceOrBuilder |
|
hasCountry()
public boolean hasCountry()The CLDR territory code of the country to which an item will ship.
optional string country = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the country field is set. |
hasPriceThreshold()
public boolean hasPriceThreshold()The minimum product price for the shipping cost to become free. Represented as a number.
optional .google.shopping.type.Price price_threshold = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the priceThreshold field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FreeShippingThreshold.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FreeShippingThreshold.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
|
mergeFrom(FreeShippingThreshold other)
public FreeShippingThreshold.Builder mergeFrom(FreeShippingThreshold other)| Parameter | |
|---|---|
| Name | Description |
other |
FreeShippingThreshold |
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
|
mergePriceThreshold(Price value)
public FreeShippingThreshold.Builder mergePriceThreshold(Price value)The minimum product price for the shipping cost to become free. Represented as a number.
optional .google.shopping.type.Price price_threshold = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
|
setCountry(String value)
public FreeShippingThreshold.Builder setCountry(String value)The CLDR territory code of the country to which an item will ship.
optional string country = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe country to set. |
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
This builder for chaining. |
setCountryBytes(ByteString value)
public FreeShippingThreshold.Builder setCountryBytes(ByteString value)The CLDR territory code of the country to which an item will ship.
optional string country = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for country to set. |
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
This builder for chaining. |
setPriceThreshold(Price value)
public FreeShippingThreshold.Builder setPriceThreshold(Price value)The minimum product price for the shipping cost to become free. Represented as a number.
optional .google.shopping.type.Price price_threshold = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
|
setPriceThreshold(Price.Builder builderForValue)
public FreeShippingThreshold.Builder setPriceThreshold(Price.Builder builderForValue)The minimum product price for the shipping cost to become free. Represented as a number.
optional .google.shopping.type.Price price_threshold = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.shopping.type.Price.Builder |
| Returns | |
|---|---|
| Type | Description |
FreeShippingThreshold.Builder |
|