Class TransitTable.TransitTimeRow.TransitTimeValue.Builder (0.3.0)

public static final class TransitTable.TransitTimeRow.TransitTimeValue.Builder extends GeneratedMessageV3.Builder<TransitTable.TransitTimeRow.TransitTimeValue.Builder> implements TransitTable.TransitTimeRow.TransitTimeValueOrBuilder

Transit time range (min-max) in business days.

Protobuf type google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransitTable.TransitTimeRow.TransitTimeValue build()
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue

buildPartial()

public TransitTable.TransitTimeRow.TransitTimeValue buildPartial()
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue

clear()

public TransitTable.TransitTimeRow.TransitTimeValue.Builder clear()
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TransitTable.TransitTimeRow.TransitTimeValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder
Overrides

clearMaxTransitDays()

public TransitTable.TransitTimeRow.TransitTimeValue.Builder clearMaxTransitDays()

Must be greater than or equal to min_transit_days.

optional int32 max_transit_days = 2;

Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder

This builder for chaining.

clearMinTransitDays()

public TransitTable.TransitTimeRow.TransitTimeValue.Builder clearMinTransitDays()

Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery.

optional int32 min_transit_days = 1;

Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TransitTable.TransitTimeRow.TransitTimeValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder
Overrides

clone()

public TransitTable.TransitTimeRow.TransitTimeValue.Builder clone()
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder
Overrides

getDefaultInstanceForType()

public TransitTable.TransitTimeRow.TransitTimeValue getDefaultInstanceForType()
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue

getDescriptorForType()

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

getMaxTransitDays()

public int getMaxTransitDays()

Must be greater than or equal to min_transit_days.

optional int32 max_transit_days = 2;

Returns
Type Description
int

The maxTransitDays.

getMinTransitDays()

public int getMinTransitDays()

Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery.

optional int32 min_transit_days = 1;

Returns
Type Description
int

The minTransitDays.

hasMaxTransitDays()

public boolean hasMaxTransitDays()

Must be greater than or equal to min_transit_days.

optional int32 max_transit_days = 2;

Returns
Type Description
boolean

Whether the maxTransitDays field is set.

hasMinTransitDays()

public boolean hasMinTransitDays()

Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery.

optional int32 min_transit_days = 1;

Returns
Type Description
boolean

Whether the minTransitDays 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 TransitTable.TransitTimeRow.TransitTimeValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TransitTable.TransitTimeRow.TransitTimeValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder
Overrides

mergeFrom(TransitTable.TransitTimeRow.TransitTimeValue other)

public TransitTable.TransitTimeRow.TransitTimeValue.Builder mergeFrom(TransitTable.TransitTimeRow.TransitTimeValue other)
Parameter
Name Description
other TransitTable.TransitTimeRow.TransitTimeValue
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransitTable.TransitTimeRow.TransitTimeValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxTransitDays(int value)

public TransitTable.TransitTimeRow.TransitTimeValue.Builder setMaxTransitDays(int value)

Must be greater than or equal to min_transit_days.

optional int32 max_transit_days = 2;

Parameter
Name Description
value int

The maxTransitDays to set.

Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder

This builder for chaining.

setMinTransitDays(int value)

public TransitTable.TransitTimeRow.TransitTimeValue.Builder setMinTransitDays(int value)

Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery.

optional int32 min_transit_days = 1;

Parameter
Name Description
value int

The minTransitDays to set.

Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final TransitTable.TransitTimeRow.TransitTimeValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransitTable.TransitTimeRow.TransitTimeValue.Builder
Overrides