publicstaticfinalclass ShipmentModel.PrecedenceRuleextendsGeneratedMessageV3implementsShipmentModel.PrecedenceRuleOrBuilder
A precedence rule between two events (each event is the pickup or the
delivery of a shipment): the "second" event has to start at least
offset_duration after "first" has started.
Several precedences can refer to the same (or related) events, e.g.,
"pickup of B happens after delivery of A" and "pickup of C happens after
pickup of B".
Furthermore, precedences only apply when both shipments are performed and
are otherwise ignored.
Protobuf type google.cloud.optimization.v1.ShipmentModel.PrecedenceRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
FIRST_INDEX_FIELD_NUMBER
publicstaticfinalintFIRST_INDEX_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
FIRST_IS_DELIVERY_FIELD_NUMBER
publicstaticfinalintFIRST_IS_DELIVERY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
OFFSET_DURATION_FIELD_NUMBER
publicstaticfinalintOFFSET_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SECOND_INDEX_FIELD_NUMBER
publicstaticfinalintSECOND_INDEX_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SECOND_IS_DELIVERY_FIELD_NUMBER
publicstaticfinalintSECOND_IS_DELIVERY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticShipmentModel.PrecedenceRulegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticShipmentModel.PrecedenceRule.BuildernewBuilder()
newBuilder(ShipmentModel.PrecedenceRule prototype)
publicstaticShipmentModel.PrecedenceRule.BuildernewBuilder(ShipmentModel.PrecedenceRuleprototype)
publicstaticShipmentModel.PrecedenceRuleparseDelimitedFrom(InputStreaminput)
publicstaticShipmentModel.PrecedenceRuleparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticShipmentModel.PrecedenceRuleparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentModel.PrecedenceRuleparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticShipmentModel.PrecedenceRuleparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentModel.PrecedenceRuleparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticShipmentModel.PrecedenceRuleparseFrom(CodedInputStreaminput)
publicstaticShipmentModel.PrecedenceRuleparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticShipmentModel.PrecedenceRuleparseFrom(InputStreaminput)
publicstaticShipmentModel.PrecedenceRuleparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticShipmentModel.PrecedenceRuleparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentModel.PrecedenceRuleparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<ShipmentModel.PrecedenceRule>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicShipmentModel.PrecedenceRulegetDefaultInstanceForType()
getFirstIndex()
Shipment index of the "first" event. This field must be specified.
optional int32 first_index = 1;
| Returns |
| Type |
Description |
int |
The firstIndex.
|
getFirstIsDelivery()
publicbooleangetFirstIsDelivery()
Indicates if the "first" event is a delivery.
bool first_is_delivery = 3;
| Returns |
| Type |
Description |
boolean |
The firstIsDelivery.
|
getOffsetDuration()
publicDurationgetOffsetDuration()
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()
publicDurationOrBuildergetOffsetDurationOrBuilder()
The offset between the "first" and "second" event. It can be negative.
.google.protobuf.Duration offset_duration = 5;
getParserForType()
publicParser<ShipmentModel.PrecedenceRule>getParserForType()
Overrides
getSecondIndex()
publicintgetSecondIndex()
Shipment index of the "second" event. This field must be specified.
optional int32 second_index = 2;
| Returns |
| Type |
Description |
int |
The secondIndex.
|
getSecondIsDelivery()
publicbooleangetSecondIsDelivery()
Indicates if the "second" event is a delivery.
bool second_is_delivery = 4;
| Returns |
| Type |
Description |
boolean |
The secondIsDelivery.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
hasFirstIndex()
publicbooleanhasFirstIndex()
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()
publicbooleanhasOffsetDuration()
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()
publicbooleanhasSecondIndex()
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicShipmentModel.PrecedenceRule.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedShipmentModel.PrecedenceRule.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicShipmentModel.PrecedenceRule.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides