Class Distance.Builder (0.4.0)

public static final class Distance.Builder extends GeneratedMessageV3.Builder<Distance.Builder> implements DistanceOrBuilder

Maximum delivery radius. This is only required for the local delivery shipment type.

Protobuf type google.shopping.merchant.accounts.v1beta.Distance

Implements

DistanceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Distance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Distance.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public Distance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Distance.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Distance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Distance.Builder
Overrides

clearUnit()

public Distance.Builder clearUnit()

Unit can differ based on country, it is parameterized to include miles and kilometers.

optional .google.shopping.merchant.accounts.v1beta.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.

clone()

public Distance.Builder clone()
Returns
Type Description
Distance.Builder
Overrides

getDefaultInstanceForType()

public Distance getDefaultInstanceForType()
Returns
Type Description
Distance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUnit()

public Distance.Unit getUnit()

Unit can differ based on country, it is parameterized to include miles and kilometers.

optional .google.shopping.merchant.accounts.v1beta.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.v1beta.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.v1beta.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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Distance.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Distance.Builder
Overrides

mergeFrom(Distance other)

public Distance.Builder mergeFrom(Distance other)
Parameter
Name Description
other Distance
Returns
Type Description
Distance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Distance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Distance.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Distance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Distance.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Distance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Distance.Builder
Overrides

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.v1beta.Distance.Unit unit = 2;

Parameter
Name Description
value Distance.Unit

The 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.v1beta.Distance.Unit unit = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for unit to set.

Returns
Type Description
Distance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Distance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Distance.Builder
Overrides

setValue(long value)

public Distance.Builder setValue(long value)

Integer value of distance.

optional int64 value = 1;

Parameter
Name Description
value long

The value to set.

Returns
Type Description
Distance.Builder

This builder for chaining.