Class Weight
The weight represented as the value in string and the unit.
Namespace: Google.Shopping.Type
Assembly: Google.Shopping.Type.dll
Syntax
public sealed class Weight : IMessage<Weight>, IEquatable<Weight>, IDeepCloneable<Weight>, IBufferMessage, IMessage
Constructors
Weight()
Declaration
public Weight()
Weight(Weight)
Declaration
public Weight(Weight other)
Parameters
Type | Name | Description |
---|---|---|
Weight | other |
Properties
AmountMicros
Required. The weight represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
Declaration
public long AmountMicros { get; set; }
Property Value
Type | Description |
---|---|
long |
HasAmountMicros
Gets whether the "amount_micros" field is set
Declaration
public bool HasAmountMicros { get; }
Property Value
Type | Description |
---|---|
bool |
Unit
Required. The weight unit. Acceptable values are: kg and lb
Declaration
public Weight.Types.WeightUnit Unit { get; set; }
Property Value
Type | Description |
---|---|
Weight.Types.WeightUnit |