Class FreeShippingThreshold.Builder (0.11.0)

public static final class FreeShippingThreshold.Builder extends GeneratedMessageV3.Builder<FreeShippingThreshold.Builder> implements FreeShippingThresholdOrBuilder

Conditions to be met for a product to have free shipping.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

public FreeShippingThreshold.Builder clone()
Returns
Type Description
FreeShippingThreshold.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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 String

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

The bytes for country to set.

Returns
Type Description
FreeShippingThreshold.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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