public final class RouteLegTravelAdvisory extends com.google.protobuf.GeneratedMessageV3 implements RouteLegTravelAdvisoryOrBuilder
Contains the additional information that the user should be informed about on a leg step, such as possible traffic zone restrictions.Protobuf type
google.maps.routing.v2.RouteLegTravelAdvisory| Modifier and Type | Class and Description |
|---|---|
static class |
RouteLegTravelAdvisory.Builder
Contains the additional information that the user should be informed
about on a leg step, 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 |
SPEED_READING_INTERVALS_FIELD_NUMBER |
static int |
TOLL_INFO_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static RouteLegTravelAdvisory |
getDefaultInstance() |
RouteLegTravelAdvisory |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<RouteLegTravelAdvisory> |
getParserForType() |
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 specific `RouteLeg`.
|
TollInfoOrBuilder |
getTollInfoOrBuilder()
Contains information about tolls on the specific `RouteLeg`.
|
int |
hashCode() |
boolean |
hasTollInfo()
Contains information about tolls on the specific `RouteLeg`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RouteLegTravelAdvisory.Builder |
newBuilder() |
static RouteLegTravelAdvisory.Builder |
newBuilder(RouteLegTravelAdvisory prototype) |
RouteLegTravelAdvisory.Builder |
newBuilderForType() |
protected RouteLegTravelAdvisory.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RouteLegTravelAdvisory |
parseDelimitedFrom(InputStream input) |
static RouteLegTravelAdvisory |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegTravelAdvisory |
parseFrom(byte[] data) |
static RouteLegTravelAdvisory |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegTravelAdvisory |
parseFrom(ByteBuffer data) |
static RouteLegTravelAdvisory |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegTravelAdvisory |
parseFrom(com.google.protobuf.ByteString data) |
static RouteLegTravelAdvisory |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegTravelAdvisory |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RouteLegTravelAdvisory |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegTravelAdvisory |
parseFrom(InputStream input) |
static RouteLegTravelAdvisory |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RouteLegTravelAdvisory> |
parser() |
RouteLegTravelAdvisory.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
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 specific `RouteLeg`. This field is only populated if we expect there are tolls on the `RouteLeg`. If this field is set but the estimated_price subfield is not populated, we expect that road contains tolls but we do not know an estimated price. If this field does not exist, then there is no toll on the `RouteLeg`.
.google.maps.routing.v2.TollInfo toll_info = 1;hasTollInfo in interface RouteLegTravelAdvisoryOrBuilderpublic TollInfo getTollInfo()
Contains information about tolls on the specific `RouteLeg`. This field is only populated if we expect there are tolls on the `RouteLeg`. If this field is set but the estimated_price subfield is not populated, we expect that road contains tolls but we do not know an estimated price. If this field does not exist, then there is no toll on the `RouteLeg`.
.google.maps.routing.v2.TollInfo toll_info = 1;getTollInfo in interface RouteLegTravelAdvisoryOrBuilderpublic TollInfoOrBuilder getTollInfoOrBuilder()
Contains information about tolls on the specific `RouteLeg`. This field is only populated if we expect there are tolls on the `RouteLeg`. If this field is set but the estimated_price subfield is not populated, we expect that road contains tolls but we do not know an estimated price. If this field does not exist, then there is no toll on the `RouteLeg`.
.google.maps.routing.v2.TollInfo toll_info = 1;getTollInfoOrBuilder in interface RouteLegTravelAdvisoryOrBuilderpublic 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 `RouteLeg` 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 = 2;getSpeedReadingIntervalsList in interface RouteLegTravelAdvisoryOrBuilderpublic 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 `RouteLeg` 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 = 2;getSpeedReadingIntervalsOrBuilderList in interface RouteLegTravelAdvisoryOrBuilderpublic 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 `RouteLeg` 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 = 2;getSpeedReadingIntervalsCount in interface RouteLegTravelAdvisoryOrBuilderpublic 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 `RouteLeg` 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 = 2;getSpeedReadingIntervals in interface RouteLegTravelAdvisoryOrBuilderpublic 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 `RouteLeg` 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 = 2;getSpeedReadingIntervalsOrBuilder in interface RouteLegTravelAdvisoryOrBuilderpublic 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 RouteLegTravelAdvisory parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegTravelAdvisory parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegTravelAdvisory parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegTravelAdvisory parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegTravelAdvisory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegTravelAdvisory parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegTravelAdvisory parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouteLegTravelAdvisory parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteLegTravelAdvisory parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouteLegTravelAdvisory parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteLegTravelAdvisory parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouteLegTravelAdvisory parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RouteLegTravelAdvisory.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouteLegTravelAdvisory.Builder newBuilder()
public static RouteLegTravelAdvisory.Builder newBuilder(RouteLegTravelAdvisory prototype)
public RouteLegTravelAdvisory.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouteLegTravelAdvisory.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RouteLegTravelAdvisory getDefaultInstance()
public static com.google.protobuf.Parser<RouteLegTravelAdvisory> parser()
public com.google.protobuf.Parser<RouteLegTravelAdvisory> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RouteLegTravelAdvisory getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.