Class ProductMinimumOrderValue.Builder (1.23.0)

public static final class ProductMinimumOrderValue.Builder extends GeneratedMessage.Builder<ProductMinimumOrderValue.Builder> implements ProductMinimumOrderValueOrBuilder

The minimum order value in the cart before the checkout is permitted.

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

Static Methods

getDescriptor()

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

Methods

build()

public ProductMinimumOrderValue build()
Returns
Type Description
ProductMinimumOrderValue

buildPartial()

public ProductMinimumOrderValue buildPartial()
Returns
Type Description
ProductMinimumOrderValue

clear()

public ProductMinimumOrderValue.Builder clear()
Returns
Type Description
ProductMinimumOrderValue.Builder
Overrides

clearCountry()

public ProductMinimumOrderValue.Builder clearCountry()

Required. The CLDR territory code of the country to which an item will ship.

optional string country = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductMinimumOrderValue.Builder

This builder for chaining.

clearPrice()

public ProductMinimumOrderValue.Builder clearPrice()

Required. The minimum cart or basket value before the checkout is permitted.

optional .google.shopping.type.Price price = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductMinimumOrderValue.Builder

clearService()

public ProductMinimumOrderValue.Builder clearService()

A free-form description of the service class or delivery speed. This should match the service value set for the Shipping attribute. See service.

optional string service = 2;

Returns
Type Description
ProductMinimumOrderValue.Builder

This builder for chaining.

clearSurface()

public ProductMinimumOrderValue.Builder clearSurface()

The surface to which the minimum order value applies. Defaults to ONLINE_LOCAL if not configured.

optional .google.shopping.merchant.products.v1.ProductMinimumOrderValue.Surface surface = 3;

Returns
Type Description
ProductMinimumOrderValue.Builder

This builder for chaining.

getCountry()

public String getCountry()

Required. The CLDR territory code of the country to which an item will ship.

optional string country = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The country.

getCountryBytes()

public ByteString getCountryBytes()

Required. The CLDR territory code of the country to which an item will ship.

optional string country = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for country.

getDefaultInstanceForType()

public ProductMinimumOrderValue getDefaultInstanceForType()
Returns
Type Description
ProductMinimumOrderValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrice()

public Price getPrice()

Required. The minimum cart or basket value before the checkout is permitted.

optional .google.shopping.type.Price price = 4 [(.google.api.field_behavior) = REQUIRED];

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

The price.

getPriceBuilder()

public Price.Builder getPriceBuilder()

Required. The minimum cart or basket value before the checkout is permitted.

optional .google.shopping.type.Price price = 4 [(.google.api.field_behavior) = REQUIRED];

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

getPriceOrBuilder()

public PriceOrBuilder getPriceOrBuilder()

Required. The minimum cart or basket value before the checkout is permitted.

optional .google.shopping.type.Price price = 4 [(.google.api.field_behavior) = REQUIRED];

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

getService()

public String getService()

A free-form description of the service class or delivery speed. This should match the service value set for the Shipping attribute. See service.

optional string service = 2;

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

A free-form description of the service class or delivery speed. This should match the service value set for the Shipping attribute. See service.

optional string service = 2;

Returns
Type Description
ByteString

The bytes for service.

getSurface()

public ProductMinimumOrderValue.Surface getSurface()

The surface to which the minimum order value applies. Defaults to ONLINE_LOCAL if not configured.

optional .google.shopping.merchant.products.v1.ProductMinimumOrderValue.Surface surface = 3;

Returns
Type Description
ProductMinimumOrderValue.Surface

The surface.

getSurfaceValue()

public int getSurfaceValue()

The surface to which the minimum order value applies. Defaults to ONLINE_LOCAL if not configured.

optional .google.shopping.merchant.products.v1.ProductMinimumOrderValue.Surface surface = 3;

Returns
Type Description
int

The enum numeric value on the wire for surface.

hasCountry()

public boolean hasCountry()

Required. The CLDR territory code of the country to which an item will ship.

optional string country = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the country field is set.

hasPrice()

public boolean hasPrice()

Required. The minimum cart or basket value before the checkout is permitted.

optional .google.shopping.type.Price price = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the price field is set.

hasService()

public boolean hasService()

A free-form description of the service class or delivery speed. This should match the service value set for the Shipping attribute. See service.

optional string service = 2;

Returns
Type Description
boolean

Whether the service field is set.

hasSurface()

public boolean hasSurface()

The surface to which the minimum order value applies. Defaults to ONLINE_LOCAL if not configured.

optional .google.shopping.merchant.products.v1.ProductMinimumOrderValue.Surface surface = 3;

Returns
Type Description
boolean

Whether the surface field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductMinimumOrderValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductMinimumOrderValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(ProductMinimumOrderValue other)

public ProductMinimumOrderValue.Builder mergeFrom(ProductMinimumOrderValue other)
Parameter
Name Description
other ProductMinimumOrderValue
Returns
Type Description
ProductMinimumOrderValue.Builder

mergePrice(Price value)

public ProductMinimumOrderValue.Builder mergePrice(Price value)

Required. The minimum cart or basket value before the checkout is permitted.

optional .google.shopping.type.Price price = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
ProductMinimumOrderValue.Builder

setCountry(String value)

public ProductMinimumOrderValue.Builder setCountry(String value)

Required. The CLDR territory code of the country to which an item will ship.

optional string country = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The country to set.

Returns
Type Description
ProductMinimumOrderValue.Builder

This builder for chaining.

setCountryBytes(ByteString value)

public ProductMinimumOrderValue.Builder setCountryBytes(ByteString value)

Required. The CLDR territory code of the country to which an item will ship.

optional string country = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for country to set.

Returns
Type Description
ProductMinimumOrderValue.Builder

This builder for chaining.

setPrice(Price value)

public ProductMinimumOrderValue.Builder setPrice(Price value)

Required. The minimum cart or basket value before the checkout is permitted.

optional .google.shopping.type.Price price = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
ProductMinimumOrderValue.Builder

setPrice(Price.Builder builderForValue)

public ProductMinimumOrderValue.Builder setPrice(Price.Builder builderForValue)

Required. The minimum cart or basket value before the checkout is permitted.

optional .google.shopping.type.Price price = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
ProductMinimumOrderValue.Builder

setService(String value)

public ProductMinimumOrderValue.Builder setService(String value)

A free-form description of the service class or delivery speed. This should match the service value set for the Shipping attribute. See service.

optional string service = 2;

Parameter
Name Description
value String

The service to set.

Returns
Type Description
ProductMinimumOrderValue.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public ProductMinimumOrderValue.Builder setServiceBytes(ByteString value)

A free-form description of the service class or delivery speed. This should match the service value set for the Shipping attribute. See service.

optional string service = 2;

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
ProductMinimumOrderValue.Builder

This builder for chaining.

setSurface(ProductMinimumOrderValue.Surface value)

public ProductMinimumOrderValue.Builder setSurface(ProductMinimumOrderValue.Surface value)

The surface to which the minimum order value applies. Defaults to ONLINE_LOCAL if not configured.

optional .google.shopping.merchant.products.v1.ProductMinimumOrderValue.Surface surface = 3;

Parameter
Name Description
value ProductMinimumOrderValue.Surface

The surface to set.

Returns
Type Description
ProductMinimumOrderValue.Builder

This builder for chaining.

setSurfaceValue(int value)

public ProductMinimumOrderValue.Builder setSurfaceValue(int value)

The surface to which the minimum order value applies. Defaults to ONLINE_LOCAL if not configured.

optional .google.shopping.merchant.products.v1.ProductMinimumOrderValue.Surface surface = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for surface to set.

Returns
Type Description
ProductMinimumOrderValue.Builder

This builder for chaining.