public static final class PickupCost.Builder extends GeneratedMessage.Builder<PickupCost.Builder> implements PickupCostOrBuilderThe pickup cost of the item.
Protobuf type google.shopping.merchant.products.v1.PickupCost
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PickupCost.BuilderImplements
PickupCostOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PickupCost build()| Returns | |
|---|---|
| Type | Description |
PickupCost |
|
buildPartial()
public PickupCost buildPartial()| Returns | |
|---|---|
| Type | Description |
PickupCost |
|
clear()
public PickupCost.Builder clear()| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|
clearFlatRate()
public PickupCost.Builder clearFlatRate()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 |
PickupCost.Builder |
|
clearFreeThreshold()
public PickupCost.Builder clearFreeThreshold()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 |
PickupCost.Builder |
|
getDefaultInstanceForType()
public PickupCost getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PickupCost |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getFlatRateBuilder()
public Price.Builder getFlatRateBuilder()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.Builder |
|
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. |
getFreeThresholdBuilder()
public Price.Builder getFreeThresholdBuilder()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.Builder |
|
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 |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFlatRate(Price value)
public PickupCost.Builder mergeFlatRate(Price value)Required. The flat rate pickup cost of the item.
optional .google.shopping.type.Price flat_rate = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|
mergeFreeThreshold(Price value)
public PickupCost.Builder mergeFreeThreshold(Price value)Optional. The price threshold above which pickup is free of charge.
optional .google.shopping.type.Price free_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PickupCost.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PickupCost.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|
mergeFrom(PickupCost other)
public PickupCost.Builder mergeFrom(PickupCost other)| Parameter | |
|---|---|
| Name | Description |
other |
PickupCost |
| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|
setFlatRate(Price value)
public PickupCost.Builder setFlatRate(Price value)Required. The flat rate pickup cost of the item.
optional .google.shopping.type.Price flat_rate = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|
setFlatRate(Price.Builder builderForValue)
public PickupCost.Builder setFlatRate(Price.Builder builderForValue)Required. The flat rate pickup cost of the item.
optional .google.shopping.type.Price flat_rate = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.shopping.type.Price.Builder |
| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|
setFreeThreshold(Price value)
public PickupCost.Builder setFreeThreshold(Price value)Optional. The price threshold above which pickup is free of charge.
optional .google.shopping.type.Price free_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|
setFreeThreshold(Price.Builder builderForValue)
public PickupCost.Builder setFreeThreshold(Price.Builder builderForValue)Optional. The price threshold above which pickup is free of charge.
optional .google.shopping.type.Price free_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.shopping.type.Price.Builder |
| Returns | |
|---|---|
| Type | Description |
PickupCost.Builder |
|