Package com.google.cloud.optimization.v1
Interface ShipmentModel.PrecedenceRuleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ShipmentModel.PrecedenceRule,ShipmentModel.PrecedenceRule.Builder
- Enclosing class:
- ShipmentModel
public static interface ShipmentModel.PrecedenceRuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintShipment index of the "first" event.booleanIndicates if the "first" event is a delivery.com.google.protobuf.DurationThe offset between the "first" and "second" event.com.google.protobuf.DurationOrBuilderThe offset between the "first" and "second" event.intShipment index of the "second" event.booleanIndicates if the "second" event is a delivery.booleanShipment index of the "first" event.booleanThe offset between the "first" and "second" event.booleanShipment index of the "second" event.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasFirstIndex
boolean hasFirstIndex()Shipment index of the "first" event. This field must be specified.
optional int32 first_index = 1;- Returns:
- Whether the firstIndex field is set.
-
getFirstIndex
int getFirstIndex()Shipment index of the "first" event. This field must be specified.
optional int32 first_index = 1;- Returns:
- The firstIndex.
-
getFirstIsDelivery
boolean getFirstIsDelivery()Indicates if the "first" event is a delivery.
bool first_is_delivery = 3;- Returns:
- The firstIsDelivery.
-
hasSecondIndex
boolean hasSecondIndex()Shipment index of the "second" event. This field must be specified.
optional int32 second_index = 2;- Returns:
- Whether the secondIndex field is set.
-
getSecondIndex
int getSecondIndex()Shipment index of the "second" event. This field must be specified.
optional int32 second_index = 2;- Returns:
- The secondIndex.
-
getSecondIsDelivery
boolean getSecondIsDelivery()Indicates if the "second" event is a delivery.
bool second_is_delivery = 4;- Returns:
- The secondIsDelivery.
-
hasOffsetDuration
boolean hasOffsetDuration()The offset between the "first" and "second" event. It can be negative.
.google.protobuf.Duration offset_duration = 5;- Returns:
- Whether the offsetDuration field is set.
-
getOffsetDuration
com.google.protobuf.Duration getOffsetDuration()The offset between the "first" and "second" event. It can be negative.
.google.protobuf.Duration offset_duration = 5;- Returns:
- The offsetDuration.
-
getOffsetDurationOrBuilder
com.google.protobuf.DurationOrBuilder getOffsetDurationOrBuilder()The offset between the "first" and "second" event. It can be negative.
.google.protobuf.Duration offset_duration = 5;
-