Class ProductMinimumOrderValue (1.23.0)

public final class ProductMinimumOrderValue extends GeneratedMessage implements ProductMinimumOrderValueOrBuilder

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

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

Static Fields

COUNTRY_FIELD_NUMBER

public static final int COUNTRY_FIELD_NUMBER
Field Value
Type Description
int

PRICE_FIELD_NUMBER

public static final int PRICE_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
Type Description
int

SURFACE_FIELD_NUMBER

public static final int SURFACE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductMinimumOrderValue getDefaultInstance()
Returns
Type Description
ProductMinimumOrderValue

getDescriptor()

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

newBuilder()

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

newBuilder(ProductMinimumOrderValue prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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

getParserForType()

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

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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