public static final class PriceInfo.PriceRange extends GeneratedMessageV3 implements PriceInfo.PriceRangeOrBuilder
The price range of all
variant
Product having the same
Product.primary_product_id.
Protobuf type google.cloud.retail.v2beta.PriceInfo.PriceRange
Static Fields
ORIGINAL_PRICE_FIELD_NUMBER
public static final int ORIGINAL_PRICE_FIELD_NUMBER
Field Value
PRICE_FIELD_NUMBER
public static final int PRICE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static PriceInfo.PriceRange getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static PriceInfo.PriceRange.Builder newBuilder()
Returns
newBuilder(PriceInfo.PriceRange prototype)
public static PriceInfo.PriceRange.Builder newBuilder(PriceInfo.PriceRange prototype)
Parameter
Returns
public static PriceInfo.PriceRange parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PriceInfo.PriceRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PriceInfo.PriceRange parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PriceInfo.PriceRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PriceInfo.PriceRange parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PriceInfo.PriceRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PriceInfo.PriceRange parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PriceInfo.PriceRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PriceInfo.PriceRange parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PriceInfo.PriceRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PriceInfo.PriceRange parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PriceInfo.PriceRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<PriceInfo.PriceRange> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public PriceInfo.PriceRange getDefaultInstanceForType()
Returns
getOriginalPrice()
public Interval getOriginalPrice()
The inclusive
Product.pricing_info.original_price
internal of all
variant
Product having the same
Product.primary_product_id.
.google.cloud.retail.v2beta.Interval original_price = 2;
Returns
Type | Description |
Interval | The originalPrice.
|
getOriginalPriceOrBuilder()
public IntervalOrBuilder getOriginalPriceOrBuilder()
The inclusive
Product.pricing_info.original_price
internal of all
variant
Product having the same
Product.primary_product_id.
.google.cloud.retail.v2beta.Interval original_price = 2;
Returns
getParserForType()
public Parser<PriceInfo.PriceRange> getParserForType()
Returns
Overrides
getPrice()
public Interval getPrice()
The inclusive
Product.pricing_info.price
interval of all
variant
Product having the same
Product.primary_product_id.
.google.cloud.retail.v2beta.Interval price = 1;
Returns
getPriceOrBuilder()
public IntervalOrBuilder getPriceOrBuilder()
The inclusive
Product.pricing_info.price
interval of all
variant
Product having the same
Product.primary_product_id.
.google.cloud.retail.v2beta.Interval price = 1;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasOriginalPrice()
public boolean hasOriginalPrice()
The inclusive
Product.pricing_info.original_price
internal of all
variant
Product having the same
Product.primary_product_id.
.google.cloud.retail.v2beta.Interval original_price = 2;
Returns
Type | Description |
boolean | Whether the originalPrice field is set.
|
hasPrice()
public boolean hasPrice()
The inclusive
Product.pricing_info.price
interval of all
variant
Product having the same
Product.primary_product_id.
.google.cloud.retail.v2beta.Interval price = 1;
Returns
Type | Description |
boolean | Whether the price field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public PriceInfo.PriceRange.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PriceInfo.PriceRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public PriceInfo.PriceRange.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions