Class FreeShippingThreshold (0.5.0)

public final class FreeShippingThreshold extends GeneratedMessageV3 implements FreeShippingThresholdOrBuilder

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

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

Static Fields

COUNTRY_FIELD_NUMBER

public static final int COUNTRY_FIELD_NUMBER
Field Value
Type Description
int

PRICE_THRESHOLD_FIELD_NUMBER

public static final int PRICE_THRESHOLD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FreeShippingThreshold getDefaultInstance()
Returns
Type Description
FreeShippingThreshold

getDescriptor()

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

newBuilder()

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

newBuilder(FreeShippingThreshold prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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.

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

getParserForType()

public Parser<FreeShippingThreshold> getParserForType()
Returns
Type Description
Parser<FreeShippingThreshold>
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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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 FreeShippingThreshold.Builder newBuilderForType()
Returns
Type Description
FreeShippingThreshold.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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