public static final class RouteLegTravelAdvisory.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder> 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 | Method and Description |
|---|---|
RouteLegTravelAdvisory.Builder |
addAllSpeedReadingIntervals(Iterable<? extends SpeedReadingInterval> values)
Speed reading intervals detailing traffic density.
|
RouteLegTravelAdvisory.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteLegTravelAdvisory.Builder |
addSpeedReadingIntervals(int index,
SpeedReadingInterval.Builder builderForValue)
Speed reading intervals detailing traffic density.
|
RouteLegTravelAdvisory.Builder |
addSpeedReadingIntervals(int index,
SpeedReadingInterval value)
Speed reading intervals detailing traffic density.
|
RouteLegTravelAdvisory.Builder |
addSpeedReadingIntervals(SpeedReadingInterval.Builder builderForValue)
Speed reading intervals detailing traffic density.
|
RouteLegTravelAdvisory.Builder |
addSpeedReadingIntervals(SpeedReadingInterval value)
Speed reading intervals detailing traffic density.
|
SpeedReadingInterval.Builder |
addSpeedReadingIntervalsBuilder()
Speed reading intervals detailing traffic density.
|
SpeedReadingInterval.Builder |
addSpeedReadingIntervalsBuilder(int index)
Speed reading intervals detailing traffic density.
|
RouteLegTravelAdvisory |
build() |
RouteLegTravelAdvisory |
buildPartial() |
RouteLegTravelAdvisory.Builder |
clear() |
RouteLegTravelAdvisory.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RouteLegTravelAdvisory.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RouteLegTravelAdvisory.Builder |
clearSpeedReadingIntervals()
Speed reading intervals detailing traffic density.
|
RouteLegTravelAdvisory.Builder |
clearTollInfo()
Contains information about tolls on the specific `RouteLeg`.
|
RouteLegTravelAdvisory.Builder |
clone() |
RouteLegTravelAdvisory |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
SpeedReadingInterval |
getSpeedReadingIntervals(int index)
Speed reading intervals detailing traffic density.
|
SpeedReadingInterval.Builder |
getSpeedReadingIntervalsBuilder(int index)
Speed reading intervals detailing traffic density.
|
List<SpeedReadingInterval.Builder> |
getSpeedReadingIntervalsBuilderList()
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`.
|
TollInfo.Builder |
getTollInfoBuilder()
Contains information about tolls on the specific `RouteLeg`.
|
TollInfoOrBuilder |
getTollInfoOrBuilder()
Contains information about tolls on the specific `RouteLeg`.
|
boolean |
hasTollInfo()
Contains information about tolls on the specific `RouteLeg`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RouteLegTravelAdvisory.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouteLegTravelAdvisory.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouteLegTravelAdvisory.Builder |
mergeFrom(RouteLegTravelAdvisory other) |
RouteLegTravelAdvisory.Builder |
mergeTollInfo(TollInfo value)
Contains information about tolls on the specific `RouteLeg`.
|
RouteLegTravelAdvisory.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouteLegTravelAdvisory.Builder |
removeSpeedReadingIntervals(int index)
Speed reading intervals detailing traffic density.
|
RouteLegTravelAdvisory.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteLegTravelAdvisory.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RouteLegTravelAdvisory.Builder |
setSpeedReadingIntervals(int index,
SpeedReadingInterval.Builder builderForValue)
Speed reading intervals detailing traffic density.
|
RouteLegTravelAdvisory.Builder |
setSpeedReadingIntervals(int index,
SpeedReadingInterval value)
Speed reading intervals detailing traffic density.
|
RouteLegTravelAdvisory.Builder |
setTollInfo(TollInfo.Builder builderForValue)
Contains information about tolls on the specific `RouteLeg`.
|
RouteLegTravelAdvisory.Builder |
setTollInfo(TollInfo value)
Contains information about tolls on the specific `RouteLeg`.
|
RouteLegTravelAdvisory.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouteLegTravelAdvisory build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouteLegTravelAdvisory buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouteLegTravelAdvisory.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory.Builder mergeFrom(RouteLegTravelAdvisory other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public RouteLegTravelAdvisory.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteLegTravelAdvisory.Builder>IOExceptionpublic 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 RouteLegTravelAdvisory.Builder setTollInfo(TollInfo value)
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;public RouteLegTravelAdvisory.Builder setTollInfo(TollInfo.Builder builderForValue)
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;public RouteLegTravelAdvisory.Builder mergeTollInfo(TollInfo value)
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;public RouteLegTravelAdvisory.Builder clearTollInfo()
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;public TollInfo.Builder getTollInfoBuilder()
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;public 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 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 RouteLegTravelAdvisory.Builder setSpeedReadingIntervals(int index, SpeedReadingInterval value)
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;
public RouteLegTravelAdvisory.Builder setSpeedReadingIntervals(int index, SpeedReadingInterval.Builder builderForValue)
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;
public RouteLegTravelAdvisory.Builder addSpeedReadingIntervals(SpeedReadingInterval value)
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;
public RouteLegTravelAdvisory.Builder addSpeedReadingIntervals(int index, SpeedReadingInterval value)
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;
public RouteLegTravelAdvisory.Builder addSpeedReadingIntervals(SpeedReadingInterval.Builder builderForValue)
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;
public RouteLegTravelAdvisory.Builder addSpeedReadingIntervals(int index, SpeedReadingInterval.Builder builderForValue)
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;
public RouteLegTravelAdvisory.Builder addAllSpeedReadingIntervals(Iterable<? extends SpeedReadingInterval> values)
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;
public RouteLegTravelAdvisory.Builder clearSpeedReadingIntervals()
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;
public RouteLegTravelAdvisory.Builder removeSpeedReadingIntervals(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;
public SpeedReadingInterval.Builder getSpeedReadingIntervalsBuilder(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;
public 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 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 SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder()
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;
public SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder(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;
public List<SpeedReadingInterval.Builder> getSpeedReadingIntervalsBuilderList()
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;
public final RouteLegTravelAdvisory.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>public final RouteLegTravelAdvisory.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLegTravelAdvisory.Builder>Copyright © 2025 Google LLC. All rights reserved.