public final class RouteTravelAdvisory extends com.google.protobuf.GeneratedMessageV3 implements RouteTravelAdvisoryOrBuilder
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions.Protobuf type
google.maps.routing.v2.RouteTravelAdvisory| Modifier and Type | Class and Description |
|---|---|
static class |
RouteTravelAdvisory.Builder
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FUEL_CONSUMPTION_MICROLITERS_FIELD_NUMBER |
static int |
ROUTE_RESTRICTIONS_PARTIALLY_IGNORED_FIELD_NUMBER |
static int |
SPEED_READING_INTERVALS_FIELD_NUMBER |
static int |
TOLL_INFO_FIELD_NUMBER |
static int |
TRANSIT_FARE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static RouteTravelAdvisory |
getDefaultInstance() |
RouteTravelAdvisory |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getFuelConsumptionMicroliters()
The predicted fuel consumption in microliters.
|
com.google.protobuf.Parser<RouteTravelAdvisory> |
getParserForType() |
boolean |
getRouteRestrictionsPartiallyIgnored()
Returned route may have restrictions that are not suitable for requested
travel mode or route modifiers.
|
int |
getSerializedSize() |
SpeedReadingInterval |
getSpeedReadingIntervals(int index)
Speed reading intervals detailing traffic density.
|
int |
getSpeedReadingIntervalsCount()
Speed reading intervals detailing traffic density.
|
List<SpeedReadingInterval> |
getSpeedReadingIntervalsList()
Speed reading intervals detailing traffic density.
|
SpeedReadingIntervalOrBuilder |
getSpeedReadingIntervalsOrBuilder(int index)
Speed reading intervals detailing traffic density.
|
List<? extends SpeedReadingIntervalOrBuilder> |
getSpeedReadingIntervalsOrBuilderList()
Speed reading intervals detailing traffic density.
|
TollInfo |
getTollInfo()
Contains information about tolls on the route.
|
TollInfoOrBuilder |
getTollInfoOrBuilder()
Contains information about tolls on the route.
|
com.google.type.Money |
getTransitFare()
If present, contains the total fare or ticket costs on this route
This property is only returned for `TRANSIT` requests and only
for routes where fare information is available for all transit steps.
|
com.google.type.MoneyOrBuilder |
getTransitFareOrBuilder()
If present, contains the total fare or ticket costs on this route
This property is only returned for `TRANSIT` requests and only
for routes where fare information is available for all transit steps.
|
int |
hashCode() |
boolean |
hasTollInfo()
Contains information about tolls on the route.
|
boolean |
hasTransitFare()
If present, contains the total fare or ticket costs on this route
This property is only returned for `TRANSIT` requests and only
for routes where fare information is available for all transit steps.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RouteTravelAdvisory.Builder |
newBuilder() |
static RouteTravelAdvisory.Builder |
newBuilder(RouteTravelAdvisory prototype) |
RouteTravelAdvisory.Builder |
newBuilderForType() |
protected RouteTravelAdvisory.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RouteTravelAdvisory |
parseDelimitedFrom(InputStream input) |
static RouteTravelAdvisory |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteTravelAdvisory |
parseFrom(byte[] data) |
static RouteTravelAdvisory |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteTravelAdvisory |
parseFrom(ByteBuffer data) |
static RouteTravelAdvisory |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteTravelAdvisory |
parseFrom(com.google.protobuf.ByteString data) |
static RouteTravelAdvisory |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteTravelAdvisory |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RouteTravelAdvisory |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteTravelAdvisory |
parseFrom(InputStream input) |
static RouteTravelAdvisory |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RouteTravelAdvisory> |
parser() |
RouteTravelAdvisory.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TOLL_INFO_FIELD_NUMBER
public static final int SPEED_READING_INTERVALS_FIELD_NUMBER
public static final int FUEL_CONSUMPTION_MICROLITERS_FIELD_NUMBER
public static final int ROUTE_RESTRICTIONS_PARTIALLY_IGNORED_FIELD_NUMBER
public static final int TRANSIT_FARE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasTollInfo()
Contains information about tolls on the route. This field is only populated if tolls are expected on the route. If this field is set, but the `estimatedPrice` subfield is not populated, then the route contains tolls, but the estimated price is unknown. If this field is not set, then there are no tolls expected on the route.
.google.maps.routing.v2.TollInfo toll_info = 2;hasTollInfo in interface RouteTravelAdvisoryOrBuilderpublic TollInfo getTollInfo()
Contains information about tolls on the route. This field is only populated if tolls are expected on the route. If this field is set, but the `estimatedPrice` subfield is not populated, then the route contains tolls, but the estimated price is unknown. If this field is not set, then there are no tolls expected on the route.
.google.maps.routing.v2.TollInfo toll_info = 2;getTollInfo in interface RouteTravelAdvisoryOrBuilderpublic TollInfoOrBuilder getTollInfoOrBuilder()
Contains information about tolls on the route. This field is only populated if tolls are expected on the route. If this field is set, but the `estimatedPrice` subfield is not populated, then the route contains tolls, but the estimated price is unknown. If this field is not set, then there are no tolls expected on the route.
.google.maps.routing.v2.TollInfo toll_info = 2;getTollInfoOrBuilder in interface RouteTravelAdvisoryOrBuilderpublic List<SpeedReadingInterval> getSpeedReadingIntervalsList()
Speed reading intervals detailing traffic density. Applicable in case of
`TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
The intervals cover the entire polyline of the route without overlap.
The start point of a specified interval is the same as the end point of the
preceding interval.
Example:
polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;getSpeedReadingIntervalsList in interface RouteTravelAdvisoryOrBuilderpublic List<? extends SpeedReadingIntervalOrBuilder> getSpeedReadingIntervalsOrBuilderList()
Speed reading intervals detailing traffic density. Applicable in case of
`TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
The intervals cover the entire polyline of the route without overlap.
The start point of a specified interval is the same as the end point of the
preceding interval.
Example:
polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;getSpeedReadingIntervalsOrBuilderList in interface RouteTravelAdvisoryOrBuilderpublic int getSpeedReadingIntervalsCount()
Speed reading intervals detailing traffic density. Applicable in case of
`TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
The intervals cover the entire polyline of the route without overlap.
The start point of a specified interval is the same as the end point of the
preceding interval.
Example:
polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;getSpeedReadingIntervalsCount in interface RouteTravelAdvisoryOrBuilderpublic SpeedReadingInterval getSpeedReadingIntervals(int index)
Speed reading intervals detailing traffic density. Applicable in case of
`TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
The intervals cover the entire polyline of the route without overlap.
The start point of a specified interval is the same as the end point of the
preceding interval.
Example:
polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;getSpeedReadingIntervals in interface RouteTravelAdvisoryOrBuilderpublic SpeedReadingIntervalOrBuilder getSpeedReadingIntervalsOrBuilder(int index)
Speed reading intervals detailing traffic density. Applicable in case of
`TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
The intervals cover the entire polyline of the route without overlap.
The start point of a specified interval is the same as the end point of the
preceding interval.
Example:
polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).
repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;getSpeedReadingIntervalsOrBuilder in interface RouteTravelAdvisoryOrBuilderpublic long getFuelConsumptionMicroliters()
The predicted fuel consumption in microliters.
int64 fuel_consumption_microliters = 5;getFuelConsumptionMicroliters in interface RouteTravelAdvisoryOrBuilderpublic boolean getRouteRestrictionsPartiallyIgnored()
Returned route may have restrictions that are not suitable for requested travel mode or route modifiers.
bool route_restrictions_partially_ignored = 6;getRouteRestrictionsPartiallyIgnored in interface RouteTravelAdvisoryOrBuilderpublic boolean hasTransitFare()
If present, contains the total fare or ticket costs on this route This property is only returned for `TRANSIT` requests and only for routes where fare information is available for all transit steps.
.google.type.Money transit_fare = 7;hasTransitFare in interface RouteTravelAdvisoryOrBuilderpublic com.google.type.Money getTransitFare()
If present, contains the total fare or ticket costs on this route This property is only returned for `TRANSIT` requests and only for routes where fare information is available for all transit steps.
.google.type.Money transit_fare = 7;getTransitFare in interface RouteTravelAdvisoryOrBuilderpublic com.google.type.MoneyOrBuilder getTransitFareOrBuilder()
If present, contains the total fare or ticket costs on this route This property is only returned for `TRANSIT` requests and only for routes where fare information is available for all transit steps.
.google.type.Money transit_fare = 7;getTransitFareOrBuilder in interface RouteTravelAdvisoryOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RouteTravelAdvisory parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteTravelAdvisory parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteTravelAdvisory parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteTravelAdvisory parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteTravelAdvisory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteTravelAdvisory parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteTravelAdvisory parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouteTravelAdvisory parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteTravelAdvisory parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouteTravelAdvisory parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteTravelAdvisory parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouteTravelAdvisory parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RouteTravelAdvisory.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouteTravelAdvisory.Builder newBuilder()
public static RouteTravelAdvisory.Builder newBuilder(RouteTravelAdvisory prototype)
public RouteTravelAdvisory.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouteTravelAdvisory.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RouteTravelAdvisory getDefaultInstance()
public static com.google.protobuf.Parser<RouteTravelAdvisory> parser()
public com.google.protobuf.Parser<RouteTravelAdvisory> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RouteTravelAdvisory getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.