public static final class RouteLegTravelAdvisory.Builder extends com.google.protobuf.GeneratedMessage.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 indicating traffic density.
|
RouteLegTravelAdvisory.Builder |
addSpeedReadingIntervals(int index,
SpeedReadingInterval.Builder builderForValue)
Speed reading intervals indicating traffic density.
|
RouteLegTravelAdvisory.Builder |
addSpeedReadingIntervals(int index,
SpeedReadingInterval value)
Speed reading intervals indicating traffic density.
|
RouteLegTravelAdvisory.Builder |
addSpeedReadingIntervals(SpeedReadingInterval.Builder builderForValue)
Speed reading intervals indicating traffic density.
|
RouteLegTravelAdvisory.Builder |
addSpeedReadingIntervals(SpeedReadingInterval value)
Speed reading intervals indicating traffic density.
|
SpeedReadingInterval.Builder |
addSpeedReadingIntervalsBuilder()
Speed reading intervals indicating traffic density.
|
SpeedReadingInterval.Builder |
addSpeedReadingIntervalsBuilder(int index)
Speed reading intervals indicating traffic density.
|
RouteLegTravelAdvisory |
build() |
RouteLegTravelAdvisory |
buildPartial() |
RouteLegTravelAdvisory.Builder |
clear() |
RouteLegTravelAdvisory.Builder |
clearSpeedReadingIntervals()
Speed reading intervals indicating traffic density.
|
RouteLegTravelAdvisory.Builder |
clearTollInfo()
Contains information about tolls on the specific `RouteLeg`.
|
RouteLegTravelAdvisory |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
SpeedReadingInterval |
getSpeedReadingIntervals(int index)
Speed reading intervals indicating traffic density.
|
SpeedReadingInterval.Builder |
getSpeedReadingIntervalsBuilder(int index)
Speed reading intervals indicating traffic density.
|
List<SpeedReadingInterval.Builder> |
getSpeedReadingIntervalsBuilderList()
Speed reading intervals indicating traffic density.
|
int |
getSpeedReadingIntervalsCount()
Speed reading intervals indicating traffic density.
|
List<SpeedReadingInterval> |
getSpeedReadingIntervalsList()
Speed reading intervals indicating traffic density.
|
SpeedReadingIntervalOrBuilder |
getSpeedReadingIntervalsOrBuilder(int index)
Speed reading intervals indicating traffic density.
|
List<? extends SpeedReadingIntervalOrBuilder> |
getSpeedReadingIntervalsOrBuilderList()
Speed reading intervals indicating 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.GeneratedMessage.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 |
removeSpeedReadingIntervals(int index)
Speed reading intervals indicating traffic density.
|
RouteLegTravelAdvisory.Builder |
setSpeedReadingIntervals(int index,
SpeedReadingInterval.Builder builderForValue)
Speed reading intervals indicating traffic density.
|
RouteLegTravelAdvisory.Builder |
setSpeedReadingIntervals(int index,
SpeedReadingInterval value)
Speed reading intervals indicating 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`.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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 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.GeneratedMessage.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` and `TOLLS` is included in the request's [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 `toll_info` 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` and `TOLLS` is included in the request's [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 `toll_info` 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` and `TOLLS` is included in the request's [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 `toll_info` 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` and `TOLLS` is included in the request's [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 `toll_info` 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` and `TOLLS` is included in the request's [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 `toll_info` 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` and `TOLLS` is included in the request's [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 `toll_info` 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` and `TOLLS` is included in the request's [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 `toll_info` 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` and `TOLLS` is included in the request's [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 `toll_info` 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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 indicating traffic density. This field is only populated for requests when the request has a `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL` [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference] value, and `TRAFFIC_ON_POLYLINE` is included in the [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations]. 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;
Copyright © 2026 Google LLC. All rights reserved.