Class ShipmentRoute.Transition (0.1.2)
Stay organized with collections
Save and categorize content based on your preferences.
- 1.76.0 (latest)
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.68.0
- 1.66.0
- 1.65.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
publicstaticfinalclass ShipmentRoute.TransitionextendsGeneratedMessageV3implementsShipmentRoute.TransitionOrBuilder Transition between two events on the route. See the description of
ShipmentRoute.
If the vehicle does not have a start_location and/or end_location, the
corresponding travel metrics are 0.
Protobuf type google.cloud.optimization.v1.ShipmentRoute.Transition
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ShipmentRoute.TransitionImplements
ShipmentRoute.TransitionOrBuilderInherited Members
Static Fields
BREAK_DURATION_FIELD_NUMBER
publicstaticfinalintBREAK_DURATION_FIELD_NUMBERDELAY_DURATION_FIELD_NUMBER
publicstaticfinalintDELAY_DURATION_FIELD_NUMBERLOADS_FIELD_NUMBER
publicstaticfinalintLOADS_FIELD_NUMBERROUTE_POLYLINE_FIELD_NUMBER
publicstaticfinalintROUTE_POLYLINE_FIELD_NUMBERSTART_TIME_FIELD_NUMBER
publicstaticfinalintSTART_TIME_FIELD_NUMBERTOTAL_DURATION_FIELD_NUMBER
publicstaticfinalintTOTAL_DURATION_FIELD_NUMBERTRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER
publicstaticfinalintTRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBERTRAVEL_DISTANCE_METERS_FIELD_NUMBER
publicstaticfinalintTRAVEL_DISTANCE_METERS_FIELD_NUMBERTRAVEL_DURATION_FIELD_NUMBER
publicstaticfinalintTRAVEL_DURATION_FIELD_NUMBERVEHICLE_LOADS_FIELD_NUMBER
publicstaticfinalintVEHICLE_LOADS_FIELD_NUMBERWAIT_DURATION_FIELD_NUMBER
publicstaticfinalintWAIT_DURATION_FIELD_NUMBERStatic Methods
getDefaultInstance()
publicstaticShipmentRoute.TransitiongetDefaultInstance()getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()newBuilder()
publicstaticShipmentRoute.Transition.BuildernewBuilder()newBuilder(ShipmentRoute.Transition prototype)
publicstaticShipmentRoute.Transition.BuildernewBuilder(ShipmentRoute.Transitionprototype)parseDelimitedFrom(InputStream input)
publicstaticShipmentRoute.TransitionparseDelimitedFrom(InputStreaminput)parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentRoute.TransitionparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(byte[] data)
publicstaticShipmentRoute.TransitionparseFrom(byte[]data)byte[]parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentRoute.TransitionparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)byte[]parseFrom(ByteString data)
publicstaticShipmentRoute.TransitionparseFrom(ByteStringdata)parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentRoute.TransitionparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)parseFrom(CodedInputStream input)
publicstaticShipmentRoute.TransitionparseFrom(CodedInputStreaminput)parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentRoute.TransitionparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(InputStream input)
publicstaticShipmentRoute.TransitionparseFrom(InputStreaminput)parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentRoute.TransitionparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(ByteBuffer data)
publicstaticShipmentRoute.TransitionparseFrom(ByteBufferdata)parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentRoute.TransitionparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)parser()
publicstaticParser<ShipmentRoute.Transition>parser()Methods
containsVehicleLoads(String key)
publicbooleancontainsVehicleLoads(Stringkey) Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
equals(Object obj)
publicbooleanequals(Objectobj)getBreakDuration()
publicDurationgetBreakDuration()Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
The breakDuration.
getBreakDurationOrBuilder()
publicDurationOrBuildergetBreakDurationOrBuilder()Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
getDefaultInstanceForType()
publicShipmentRoute.TransitiongetDefaultInstanceForType()getDelayDuration()
publicDurationgetDelayDuration() Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
The delayDuration.
getDelayDurationOrBuilder()
publicDurationOrBuildergetDelayDurationOrBuilder() Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
getLoads(int index)
publicCapacityQuantitygetLoads(intindex)Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
getLoadsCount()
publicintgetLoadsCount()Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
getLoadsList()
publicList<CapacityQuantity>getLoadsList()Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
getLoadsOrBuilder(int index)
publicCapacityQuantityOrBuildergetLoadsOrBuilder(intindex)Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
getLoadsOrBuilderList()
publicList<?extendsCapacityQuantityOrBuilder>getLoadsOrBuilderList()Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
getParserForType()
publicParser<ShipmentRoute.Transition>getParserForType()getRoutePolyline()
publicShipmentRoute.EncodedPolylinegetRoutePolyline()The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
The routePolyline.
getRoutePolylineOrBuilder()
publicShipmentRoute.EncodedPolylineOrBuildergetRoutePolylineOrBuilder()The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
getSerializedSize()
publicintgetSerializedSize()getStartTime()
publicTimestampgetStartTime()Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
The startTime.
getStartTimeOrBuilder()
publicTimestampOrBuildergetStartTimeOrBuilder()Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
getTotalDuration()
publicDurationgetTotalDuration()Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time(orvehicle_end_timeif this is the last transition) - this transition'sstart_time; - if
ShipmentRoute.has_traffic_infeasibilitiesis false, the following additionally holds:total_duration = travel_duration + delay_duration - break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
The totalDuration.
getTotalDurationOrBuilder()
publicDurationOrBuildergetTotalDurationOrBuilder()Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time(orvehicle_end_timeif this is the last transition) - this transition'sstart_time; - if
ShipmentRoute.has_traffic_infeasibilitiesis false, the following additionally holds:total_duration = travel_duration + delay_duration - break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
getTrafficInfoUnavailable()
publicbooleangetTrafficInfoUnavailable() When traffic is requested via
[OptimizeToursRequest.consider_road_traffic]
[google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
and the traffic info couldn't be retrieved for a Transition, this
boolean is set to true. This may be temporary (rare hiccup in the
realtime traffic servers) or permanent (no data for this location).
bool traffic_info_unavailable = 3;
The trafficInfoUnavailable.
getTravelDistanceMeters()
publicdoublegetTravelDistanceMeters()Distance traveled during the transition.
double travel_distance_meters = 2;
The travelDistanceMeters.
getTravelDuration()
publicDurationgetTravelDuration()Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
The travelDuration.
getTravelDurationOrBuilder()
publicDurationOrBuildergetTravelDurationOrBuilder()Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
getUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()getVehicleLoads()
publicMap<String,ShipmentRoute.VehicleLoad>getVehicleLoads()Use #getVehicleLoadsMap() instead.
getVehicleLoadsCount()
publicintgetVehicleLoadsCount() Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
getVehicleLoadsMap()
publicMap<String,ShipmentRoute.VehicleLoad>getVehicleLoadsMap() Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
getVehicleLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)
publicShipmentRoute.VehicleLoadgetVehicleLoadsOrDefault(Stringkey,ShipmentRoute.VehicleLoaddefaultValue) Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
getVehicleLoadsOrThrow(String key)
publicShipmentRoute.VehicleLoadgetVehicleLoadsOrThrow(Stringkey) Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
getWaitDuration()
publicDurationgetWaitDuration()Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
The waitDuration.
getWaitDurationOrBuilder()
publicDurationOrBuildergetWaitDurationOrBuilder()Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
hasBreakDuration()
publicbooleanhasBreakDuration()Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
Whether the breakDuration field is set.
hasDelayDuration()
publicbooleanhasDelayDuration() Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
Whether the delayDuration field is set.
hasRoutePolyline()
publicbooleanhasRoutePolyline()The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
Whether the routePolyline field is set.
hasStartTime()
publicbooleanhasStartTime()Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
Whether the startTime field is set.
hasTotalDuration()
publicbooleanhasTotalDuration()Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time(orvehicle_end_timeif this is the last transition) - this transition'sstart_time; - if
ShipmentRoute.has_traffic_infeasibilitiesis false, the following additionally holds:total_duration = travel_duration + delay_duration - break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
Whether the totalDuration field is set.
hasTravelDuration()
publicbooleanhasTravelDuration()Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
Whether the travelDuration field is set.
hasWaitDuration()
publicbooleanhasWaitDuration()Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
Whether the waitDuration field is set.
hashCode()
publicinthashCode()internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)isInitialized()
publicfinalbooleanisInitialized()newBuilderForType()
publicShipmentRoute.Transition.BuildernewBuilderForType()newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedShipmentRoute.Transition.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)toBuilder()
publicShipmentRoute.Transition.BuildertoBuilder()writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)