Send feedback
Class Value (0.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.12.0 keyboard_arrow_down
public final class Value extends GeneratedMessageV3 implements ValueOrBuilder
The single value of a rate group or the value of a rate group table's cell.
Exactly one of no_shipping
, flat_rate
,
price_percentage
, carrier_rateName
,
subtable_name
must be set.
Protobuf type google.shopping.merchant.accounts.v1beta.Value
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 CARRIER_RATE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int FLAT_RATE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int NO_SHIPPING_FIELD_NUMBER
Field Value
Type
Description
int
public static final int PRICE_PERCENTAGE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int SUBTABLE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static Value getDefaultInstance ()
Returns
Type
Description
Value
public static final Descriptors . Descriptor getDescriptor ()
public static Value . Builder newBuilder ()
public static Value . Builder newBuilder ( Value prototype )
Parameter
Name
Description
prototype
Value
public static Value parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Value
public static Value parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Value
public static Value parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Value
public static Value parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Value
public static Value parseFrom ( ByteString data )
Returns
Type
Description
Value
public static Value parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Value
public static Value parseFrom ( CodedInputStream input )
Returns
Type
Description
Value
public static Value parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Value
public static Value parseFrom ( InputStream input )
Returns
Type
Description
Value
public static Value parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Value
public static Value parseFrom ( ByteBuffer data )
Returns
Type
Description
Value
public static Value parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Value
public static Parser<Value> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public String getCarrierRate ()
The name of a carrier rate referring to a carrier rate defined in the
same rate group. Can only be set if all other fields are not set.
optional string carrier_rate = 4;
Returns
Type
Description
String
The carrierRate.
public ByteString getCarrierRateBytes ()
The name of a carrier rate referring to a carrier rate defined in the
same rate group. Can only be set if all other fields are not set.
optional string carrier_rate = 4;
Returns
Type
Description
ByteString
The bytes for carrierRate.
public Value getDefaultInstanceForType ()
Returns
Type
Description
Value
public Price getFlatRate ()
A flat rate. Can only be set if all other fields are not set.
optional .google.shopping.type.Price flat_rate = 2;
Returns
Type
Description
com.google.shopping.type.Price
The flatRate.
public PriceOrBuilder getFlatRateOrBuilder ()
A flat rate. Can only be set if all other fields are not set.
optional .google.shopping.type.Price flat_rate = 2;
Returns
Type
Description
com.google.shopping.type.PriceOrBuilder
public boolean getNoShipping ()
If true, then the product can't be shipped. Must be true when set, can only
be set if all other fields are not set.
optional bool no_shipping = 1;
Returns
Type
Description
boolean
The noShipping.
public Parser<Value> getParserForType ()
Overrides
public String getPricePercentage ()
A percentage of the price represented as a number in decimal notation
(For example, "5.4"
). Can only be set if all other fields are not
set.
optional string price_percentage = 3;
Returns
Type
Description
String
The pricePercentage.
public ByteString getPricePercentageBytes ()
A percentage of the price represented as a number in decimal notation
(For example, "5.4"
). Can only be set if all other fields are not
set.
optional string price_percentage = 3;
Returns
Type
Description
ByteString
The bytes for pricePercentage.
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public String getSubtable ()
The name of a subtable. Can only be set in table cells (For example, not
for single values), and only if all other fields are not set.
optional string subtable = 5;
Returns
Type
Description
String
The subtable.
public ByteString getSubtableBytes ()
The name of a subtable. Can only be set in table cells (For example, not
for single values), and only if all other fields are not set.
optional string subtable = 5;
Returns
Type
Description
ByteString
The bytes for subtable.
public boolean hasCarrierRate ()
The name of a carrier rate referring to a carrier rate defined in the
same rate group. Can only be set if all other fields are not set.
optional string carrier_rate = 4;
Returns
Type
Description
boolean
Whether the carrierRate field is set.
public boolean hasFlatRate ()
A flat rate. Can only be set if all other fields are not set.
optional .google.shopping.type.Price flat_rate = 2;
Returns
Type
Description
boolean
Whether the flatRate field is set.
public boolean hasNoShipping ()
If true, then the product can't be shipped. Must be true when set, can only
be set if all other fields are not set.
optional bool no_shipping = 1;
Returns
Type
Description
boolean
Whether the noShipping field is set.
public boolean hasPricePercentage ()
A percentage of the price represented as a number in decimal notation
(For example, "5.4"
). Can only be set if all other fields are not
set.
optional string price_percentage = 3;
Returns
Type
Description
boolean
Whether the pricePercentage field is set.
public boolean hasSubtable ()
The name of a subtable. Can only be set in table cells (For example, not
for single values), and only if all other fields are not set.
optional string subtable = 5;
Returns
Type
Description
boolean
Whether the subtable field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public Value . Builder newBuilderForType ()
protected Value . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public Value . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-02-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-04 UTC."],[],[]]