public final class Value extends GeneratedMessage 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.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Value.Builder newBuilderForType()
protected Value.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public Value.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides