Class PickupCost (1.23.0)

public final class PickupCost extends GeneratedMessage implements PickupCostOrBuilder

The pickup cost of the item.

Protobuf type google.shopping.merchant.products.v1.PickupCost

Implements

PickupCostOrBuilder

Static Fields

FLAT_RATE_FIELD_NUMBER

public static final int FLAT_RATE_FIELD_NUMBER
Field Value
Type Description
int

FREE_THRESHOLD_FIELD_NUMBER

public static final int FREE_THRESHOLD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PickupCost getDefaultInstance()
Returns
Type Description
PickupCost

getDescriptor()

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

newBuilder()

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

newBuilder(PickupCost prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PickupCost getDefaultInstanceForType()
Returns
Type Description
PickupCost

getFlatRate()

public Price getFlatRate()

Required. The flat rate pickup cost of the item.

optional .google.shopping.type.Price flat_rate = 1 [(.google.api.field_behavior) = REQUIRED];

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

The flatRate.

getFlatRateOrBuilder()

public PriceOrBuilder getFlatRateOrBuilder()

Required. The flat rate pickup cost of the item.

optional .google.shopping.type.Price flat_rate = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getFreeThreshold()

public Price getFreeThreshold()

Optional. The price threshold above which pickup is free of charge.

optional .google.shopping.type.Price free_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];

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

The freeThreshold.

getFreeThresholdOrBuilder()

public PriceOrBuilder getFreeThresholdOrBuilder()

Optional. The price threshold above which pickup is free of charge.

optional .google.shopping.type.Price free_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getParserForType()

public Parser<PickupCost> getParserForType()
Returns
Type Description
Parser<PickupCost>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasFlatRate()

public boolean hasFlatRate()

Required. The flat rate pickup cost of the item.

optional .google.shopping.type.Price flat_rate = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the flatRate field is set.

hasFreeThreshold()

public boolean hasFreeThreshold()

Optional. The price threshold above which pickup is free of charge.

optional .google.shopping.type.Price free_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the freeThreshold field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PickupCost.Builder newBuilderForType()
Returns
Type Description
PickupCost.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PickupCost.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PickupCost.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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