Class DeliveryTime (0.5.0)

public final class DeliveryTime extends GeneratedMessageV3 implements DeliveryTimeOrBuilder

Time spent in various aspects from order to the delivery of the product.

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

Static Fields

CUTOFF_TIME_FIELD_NUMBER

public static final int CUTOFF_TIME_FIELD_NUMBER
Field Value
Type Description
int

HANDLING_BUSINESS_DAY_CONFIG_FIELD_NUMBER

public static final int HANDLING_BUSINESS_DAY_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

MAX_HANDLING_DAYS_FIELD_NUMBER

public static final int MAX_HANDLING_DAYS_FIELD_NUMBER
Field Value
Type Description
int

MAX_TRANSIT_DAYS_FIELD_NUMBER

public static final int MAX_TRANSIT_DAYS_FIELD_NUMBER
Field Value
Type Description
int

MIN_HANDLING_DAYS_FIELD_NUMBER

public static final int MIN_HANDLING_DAYS_FIELD_NUMBER
Field Value
Type Description
int

MIN_TRANSIT_DAYS_FIELD_NUMBER

public static final int MIN_TRANSIT_DAYS_FIELD_NUMBER
Field Value
Type Description
int

TRANSIT_BUSINESS_DAY_CONFIG_FIELD_NUMBER

public static final int TRANSIT_BUSINESS_DAY_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

TRANSIT_TIME_TABLE_FIELD_NUMBER

public static final int TRANSIT_TIME_TABLE_FIELD_NUMBER
Field Value
Type Description
int

WAREHOUSE_BASED_DELIVERY_TIMES_FIELD_NUMBER

public static final int WAREHOUSE_BASED_DELIVERY_TIMES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeliveryTime getDefaultInstance()
Returns
Type Description
DeliveryTime

getDescriptor()

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

newBuilder()

public static DeliveryTime.Builder newBuilder()
Returns
Type Description
DeliveryTime.Builder

newBuilder(DeliveryTime prototype)

public static DeliveryTime.Builder newBuilder(DeliveryTime prototype)
Parameter
Name Description
prototype DeliveryTime
Returns
Type Description
DeliveryTime.Builder

parseDelimitedFrom(InputStream input)

public static DeliveryTime parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeliveryTime
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeliveryTime parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeliveryTime
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DeliveryTime parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DeliveryTime parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DeliveryTime parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DeliveryTime parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DeliveryTime parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DeliveryTime
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DeliveryTime parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeliveryTime
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DeliveryTime parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeliveryTime
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeliveryTime parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeliveryTime
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DeliveryTime parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DeliveryTime parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DeliveryTime> parser()
Returns
Type Description
Parser<DeliveryTime>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCutoffTime()

public CutoffTime getCutoffTime()

Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.

optional .google.shopping.merchant.accounts.v1beta.CutoffTime cutoff_time = 3;

Returns
Type Description
CutoffTime

The cutoffTime.

getCutoffTimeOrBuilder()

public CutoffTimeOrBuilder getCutoffTimeOrBuilder()

Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.

optional .google.shopping.merchant.accounts.v1beta.CutoffTime cutoff_time = 3;

Returns
Type Description
CutoffTimeOrBuilder

getDefaultInstanceForType()

public DeliveryTime getDefaultInstanceForType()
Returns
Type Description
DeliveryTime

getHandlingBusinessDayConfig()

public BusinessDayConfig getHandlingBusinessDayConfig()

The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig handling_business_day_config = 7;

Returns
Type Description
BusinessDayConfig

The handlingBusinessDayConfig.

getHandlingBusinessDayConfigOrBuilder()

public BusinessDayConfigOrBuilder getHandlingBusinessDayConfigOrBuilder()

The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig handling_business_day_config = 7;

Returns
Type Description
BusinessDayConfigOrBuilder

getMaxHandlingDays()

public int getMaxHandlingDays()

Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to min_handling_days.

optional int32 max_handling_days = 5;

Returns
Type Description
int

The maxHandlingDays.

getMaxTransitDays()

public int getMaxTransitDays()

Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to min_transit_days.

optional int32 max_transit_days = 2;

Returns
Type Description
int

The maxTransitDays.

getMinHandlingDays()

public int getMinHandlingDays()

Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.

optional int32 min_handling_days = 4;

Returns
Type Description
int

The minHandlingDays.

getMinTransitDays()

public int getMinTransitDays()

Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either min_transit_days, max_transit_days or transit_time_table must be set, but not both.

optional int32 min_transit_days = 1;

Returns
Type Description
int

The minTransitDays.

getParserForType()

public Parser<DeliveryTime> getParserForType()
Returns
Type Description
Parser<DeliveryTime>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTransitBusinessDayConfig()

public BusinessDayConfig getTransitBusinessDayConfig()

The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig transit_business_day_config = 8;

Returns
Type Description
BusinessDayConfig

The transitBusinessDayConfig.

getTransitBusinessDayConfigOrBuilder()

public BusinessDayConfigOrBuilder getTransitBusinessDayConfigOrBuilder()

The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig transit_business_day_config = 8;

Returns
Type Description
BusinessDayConfigOrBuilder

getTransitTimeTable()

public TransitTable getTransitTimeTable()

Transit time table, number of business days spent in transit based on row and column dimensions. Either min_transit_days, max_transit_days or transit_time_table can be set, but not both.

optional .google.shopping.merchant.accounts.v1beta.TransitTable transit_time_table = 6;

Returns
Type Description
TransitTable

The transitTimeTable.

getTransitTimeTableOrBuilder()

public TransitTableOrBuilder getTransitTimeTableOrBuilder()

Transit time table, number of business days spent in transit based on row and column dimensions. Either min_transit_days, max_transit_days or transit_time_table can be set, but not both.

optional .google.shopping.merchant.accounts.v1beta.TransitTable transit_time_table = 6;

Returns
Type Description
TransitTableOrBuilder

getWarehouseBasedDeliveryTimes(int index)

public WarehouseBasedDeliveryTime getWarehouseBasedDeliveryTimes(int index)

Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set.

repeated .google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime warehouse_based_delivery_times = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
WarehouseBasedDeliveryTime

getWarehouseBasedDeliveryTimesCount()

public int getWarehouseBasedDeliveryTimesCount()

Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set.

repeated .google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime warehouse_based_delivery_times = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getWarehouseBasedDeliveryTimesList()

public List<WarehouseBasedDeliveryTime> getWarehouseBasedDeliveryTimesList()

Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set.

repeated .google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime warehouse_based_delivery_times = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<WarehouseBasedDeliveryTime>

getWarehouseBasedDeliveryTimesOrBuilder(int index)

public WarehouseBasedDeliveryTimeOrBuilder getWarehouseBasedDeliveryTimesOrBuilder(int index)

Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set.

repeated .google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime warehouse_based_delivery_times = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
WarehouseBasedDeliveryTimeOrBuilder

getWarehouseBasedDeliveryTimesOrBuilderList()

public List<? extends WarehouseBasedDeliveryTimeOrBuilder> getWarehouseBasedDeliveryTimesOrBuilderList()

Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set.

repeated .google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime warehouse_based_delivery_times = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTimeOrBuilder>

hasCutoffTime()

public boolean hasCutoffTime()

Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.

optional .google.shopping.merchant.accounts.v1beta.CutoffTime cutoff_time = 3;

Returns
Type Description
boolean

Whether the cutoffTime field is set.

hasHandlingBusinessDayConfig()

public boolean hasHandlingBusinessDayConfig()

The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig handling_business_day_config = 7;

Returns
Type Description
boolean

Whether the handlingBusinessDayConfig field is set.

hasMaxHandlingDays()

public boolean hasMaxHandlingDays()

Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to min_handling_days.

optional int32 max_handling_days = 5;

Returns
Type Description
boolean

Whether the maxHandlingDays field is set.

hasMaxTransitDays()

public boolean hasMaxTransitDays()

Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. 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.

hasMinHandlingDays()

public boolean hasMinHandlingDays()

Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.

optional int32 min_handling_days = 4;

Returns
Type Description
boolean

Whether the minHandlingDays field is set.

hasMinTransitDays()

public boolean hasMinTransitDays()

Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either min_transit_days, max_transit_days or transit_time_table must be set, but not both.

optional int32 min_transit_days = 1;

Returns
Type Description
boolean

Whether the minTransitDays field is set.

hasTransitBusinessDayConfig()

public boolean hasTransitBusinessDayConfig()

The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig transit_business_day_config = 8;

Returns
Type Description
boolean

Whether the transitBusinessDayConfig field is set.

hasTransitTimeTable()

public boolean hasTransitTimeTable()

Transit time table, number of business days spent in transit based on row and column dimensions. Either min_transit_days, max_transit_days or transit_time_table can be set, but not both.

optional .google.shopping.merchant.accounts.v1beta.TransitTable transit_time_table = 6;

Returns
Type Description
boolean

Whether the transitTimeTable field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DeliveryTime.Builder newBuilderForType()
Returns
Type Description
DeliveryTime.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DeliveryTime.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DeliveryTime.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DeliveryTime.Builder toBuilder()
Returns
Type Description
DeliveryTime.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException