Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class Price (2.43.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.43.0keyboard_arrow_down
public final class Price extends GeneratedMessageV3 implements PriceOrBuilder
The price represented as a number and currency.
Protobuf type google.shopping.type.Price
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int AMOUNT_MICROS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int CURRENCY_CODE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static Price getDefaultInstance ()
Returns
Type
Description
Price
public static final Descriptors . Descriptor getDescriptor ()
public static Price . Builder newBuilder ()
public static Price . Builder newBuilder ( Price prototype )
Parameter
Name
Description
prototype
Price
public static Price parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Price
public static Price parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Price
public static Price parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Price
public static Price parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Price
public static Price parseFrom ( ByteString data )
Returns
Type
Description
Price
public static Price parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Price
public static Price parseFrom ( CodedInputStream input )
Returns
Type
Description
Price
public static Price parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Price
public static Price parseFrom ( InputStream input )
Returns
Type
Description
Price
public static Price parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Price
public static Price parseFrom ( ByteBuffer data )
Returns
Type
Description
Price
public static Price parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Price
public static Parser<Price> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public long getAmountMicros ()
The price represented as a number in micros (1 million micros is an
equivalent to one's currency standard unit, for example, 1 USD = 1000000
micros).
optional int64 amount_micros = 1;
Returns
Type
Description
long
The amountMicros.
public String getCurrencyCode ()
The currency of the price using three-letter acronyms according to ISO
4217 .
optional string currency_code = 2;
Returns
Type
Description
String
The currencyCode.
public ByteString getCurrencyCodeBytes ()
The currency of the price using three-letter acronyms according to ISO
4217 .
optional string currency_code = 2;
Returns
Type
Description
ByteString
The bytes for currencyCode.
public Price getDefaultInstanceForType ()
Returns
Type
Description
Price
public Parser<Price> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public boolean hasAmountMicros ()
The price represented as a number in micros (1 million micros is an
equivalent to one's currency standard unit, for example, 1 USD = 1000000
micros).
optional int64 amount_micros = 1;
Returns
Type
Description
boolean
Whether the amountMicros field is set.
public boolean hasCurrencyCode ()
The currency of the price using three-letter acronyms according to ISO
4217 .
optional string currency_code = 2;
Returns
Type
Description
boolean
Whether the currencyCode field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public Price . Builder newBuilderForType ()
protected Price . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public Price . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-01 UTC."],[],[]]