Interface ShipmentModel.PrecedenceRuleOrBuilder (1.13.0)

publicstaticinterface ShipmentModel.PrecedenceRuleOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getFirstIndex()

publicabstractintgetFirstIndex()

Shipment index of the "first" event. This field must be specified.

optional int32 first_index = 1;

Returns
Type Description
int

The firstIndex.

getFirstIsDelivery()

publicabstractbooleangetFirstIsDelivery()

Indicates if the "first" event is a delivery.

bool first_is_delivery = 3;

Returns
Type Description
boolean

The firstIsDelivery.

getOffsetDuration()

publicabstractDurationgetOffsetDuration()

The offset between the "first" and "second" event. It can be negative.

.google.protobuf.Duration offset_duration = 5;

Returns
Type Description
Duration

The offsetDuration.

getOffsetDurationOrBuilder()

publicabstractDurationOrBuildergetOffsetDurationOrBuilder()

The offset between the "first" and "second" event. It can be negative.

.google.protobuf.Duration offset_duration = 5;

Returns
Type Description
DurationOrBuilder

getSecondIndex()

publicabstractintgetSecondIndex()

Shipment index of the "second" event. This field must be specified.

optional int32 second_index = 2;

Returns
Type Description
int

The secondIndex.

getSecondIsDelivery()

publicabstractbooleangetSecondIsDelivery()

Indicates if the "second" event is a delivery.

bool second_is_delivery = 4;

Returns
Type Description
boolean

The secondIsDelivery.

hasFirstIndex()

publicabstractbooleanhasFirstIndex()

Shipment index of the "first" event. This field must be specified.

optional int32 first_index = 1;

Returns
Type Description
boolean

Whether the firstIndex field is set.

hasOffsetDuration()

publicabstractbooleanhasOffsetDuration()

The offset between the "first" and "second" event. It can be negative.

.google.protobuf.Duration offset_duration = 5;

Returns
Type Description
boolean

Whether the offsetDuration field is set.

hasSecondIndex()

publicabstractbooleanhasSecondIndex()

Shipment index of the "second" event. This field must be specified.

optional int32 second_index = 2;

Returns
Type Description
boolean

Whether the secondIndex field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.