public static final class Distance.Builder extends GeneratedMessage.Builder<Distance.Builder> implements DistanceOrBuilderMaximum delivery radius. This is only required for the local delivery shipment type.
Protobuf type google.shopping.merchant.accounts.v1.Distance
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Distance.BuilderImplements
DistanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Distance build()| Returns | |
|---|---|
| Type | Description |
Distance |
|
buildPartial()
public Distance buildPartial()| Returns | |
|---|---|
| Type | Description |
Distance |
|
clear()
public Distance.Builder clear()| Returns | |
|---|---|
| Type | Description |
Distance.Builder |
|
clearUnit()
public Distance.Builder clearUnit()Unit can differ based on country, it is parameterized to include miles and kilometers.
optional .google.shopping.merchant.accounts.v1.Distance.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
Distance.Builder |
This builder for chaining. |
clearValue()
public Distance.Builder clearValue()Integer value of distance.
optional int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
Distance.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Distance getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Distance |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getUnit()
public Distance.Unit getUnit()Unit can differ based on country, it is parameterized to include miles and kilometers.
optional .google.shopping.merchant.accounts.v1.Distance.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
Distance.Unit |
The unit. |
getUnitValue()
public int getUnitValue()Unit can differ based on country, it is parameterized to include miles and kilometers.
optional .google.shopping.merchant.accounts.v1.Distance.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for unit. |
getValue()
public long getValue()Integer value of distance.
optional int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The value. |
hasUnit()
public boolean hasUnit()Unit can differ based on country, it is parameterized to include miles and kilometers.
optional .google.shopping.merchant.accounts.v1.Distance.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the unit field is set. |
hasValue()
public boolean hasValue()Integer value of distance.
optional int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Distance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Distance.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Distance.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Distance.Builder |
|
mergeFrom(Distance other)
public Distance.Builder mergeFrom(Distance other)| Parameter | |
|---|---|
| Name | Description |
other |
Distance |
| Returns | |
|---|---|
| Type | Description |
Distance.Builder |
|
setUnit(Distance.Unit value)
public Distance.Builder setUnit(Distance.Unit value)Unit can differ based on country, it is parameterized to include miles and kilometers.
optional .google.shopping.merchant.accounts.v1.Distance.Unit unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Distance.UnitThe unit to set. |
| Returns | |
|---|---|
| Type | Description |
Distance.Builder |
This builder for chaining. |
setUnitValue(int value)
public Distance.Builder setUnitValue(int value)Unit can differ based on country, it is parameterized to include miles and kilometers.
optional .google.shopping.merchant.accounts.v1.Distance.Unit unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for unit to set. |
| Returns | |
|---|---|
| Type | Description |
Distance.Builder |
This builder for chaining. |
setValue(long value)
public Distance.Builder setValue(long value)Integer value of distance.
optional int64 value = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe value to set. |
| Returns | |
|---|---|
| Type | Description |
Distance.Builder |
This builder for chaining. |