Class Distance
Maximum delivery radius. This is only required for the local delivery shipment type.
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public sealed class Distance : IMessage<Distance>, IEquatable<Distance>, IDeepCloneable<Distance>, IBufferMessage, IMessage
Constructors
Distance()
Declaration
public Distance()
Distance(Distance)
Declaration
public Distance(Distance other)
Parameters
Type | Name | Description |
---|---|---|
Distance | other |
Properties
HasUnit
Gets whether the "unit" field is set
Declaration
public bool HasUnit { get; }
Property Value
Type | Description |
---|---|
bool |
HasValue
Gets whether the "value" field is set
Declaration
public bool HasValue { get; }
Property Value
Type | Description |
---|---|
bool |
Unit
Unit can differ based on country, it is parameterized to include miles and kilometers.
Declaration
public Distance.Types.Unit Unit { get; set; }
Property Value
Type | Description |
---|---|
Distance.Types.Unit |
Value
Integer value of distance.
Declaration
public long Value { get; set; }
Property Value
Type | Description |
---|---|
long |