public static final class RouteTravelAdvisory.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteTravelAdvisory.Builder> 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 | Method and Description |
|---|---|
RouteTravelAdvisory.Builder |
addAllSpeedReadingIntervals(Iterable<? extends SpeedReadingInterval> values)
Speed reading intervals detailing traffic density.
|
RouteTravelAdvisory.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteTravelAdvisory.Builder |
addSpeedReadingIntervals(int index,
SpeedReadingInterval.Builder builderForValue)
Speed reading intervals detailing traffic density.
|
RouteTravelAdvisory.Builder |
addSpeedReadingIntervals(int index,
SpeedReadingInterval value)
Speed reading intervals detailing traffic density.
|
RouteTravelAdvisory.Builder |
addSpeedReadingIntervals(SpeedReadingInterval.Builder builderForValue)
Speed reading intervals detailing traffic density.
|
RouteTravelAdvisory.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.
|
RouteTravelAdvisory |
build() |
RouteTravelAdvisory |
buildPartial() |
RouteTravelAdvisory.Builder |
clear() |
RouteTravelAdvisory.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RouteTravelAdvisory.Builder |
clearFuelConsumptionMicroliters()
The predicted fuel consumption in microliters.
|
RouteTravelAdvisory.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RouteTravelAdvisory.Builder |
clearRouteRestrictionsPartiallyIgnored()
Returned route may have restrictions that are not suitable for requested
travel mode or route modifiers.
|
RouteTravelAdvisory.Builder |
clearSpeedReadingIntervals()
Speed reading intervals detailing traffic density.
|
RouteTravelAdvisory.Builder |
clearTollInfo()
Contains information about tolls on the route.
|
RouteTravelAdvisory.Builder |
clearTransitFare()
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.
|
RouteTravelAdvisory.Builder |
clone() |
RouteTravelAdvisory |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getFuelConsumptionMicroliters()
The predicted fuel consumption in microliters.
|
boolean |
getRouteRestrictionsPartiallyIgnored()
Returned route may have restrictions that are not suitable for requested
travel mode or route modifiers.
|
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 route.
|
TollInfo.Builder |
getTollInfoBuilder()
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.Money.Builder |
getTransitFareBuilder()
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.
|
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() |
RouteTravelAdvisory.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouteTravelAdvisory.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouteTravelAdvisory.Builder |
mergeFrom(RouteTravelAdvisory other) |
RouteTravelAdvisory.Builder |
mergeTollInfo(TollInfo value)
Contains information about tolls on the route.
|
RouteTravelAdvisory.Builder |
mergeTransitFare(com.google.type.Money value)
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.
|
RouteTravelAdvisory.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouteTravelAdvisory.Builder |
removeSpeedReadingIntervals(int index)
Speed reading intervals detailing traffic density.
|
RouteTravelAdvisory.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteTravelAdvisory.Builder |
setFuelConsumptionMicroliters(long value)
The predicted fuel consumption in microliters.
|
RouteTravelAdvisory.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RouteTravelAdvisory.Builder |
setRouteRestrictionsPartiallyIgnored(boolean value)
Returned route may have restrictions that are not suitable for requested
travel mode or route modifiers.
|
RouteTravelAdvisory.Builder |
setSpeedReadingIntervals(int index,
SpeedReadingInterval.Builder builderForValue)
Speed reading intervals detailing traffic density.
|
RouteTravelAdvisory.Builder |
setSpeedReadingIntervals(int index,
SpeedReadingInterval value)
Speed reading intervals detailing traffic density.
|
RouteTravelAdvisory.Builder |
setTollInfo(TollInfo.Builder builderForValue)
Contains information about tolls on the route.
|
RouteTravelAdvisory.Builder |
setTollInfo(TollInfo value)
Contains information about tolls on the route.
|
RouteTravelAdvisory.Builder |
setTransitFare(com.google.type.Money.Builder builderForValue)
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.
|
RouteTravelAdvisory.Builder |
setTransitFare(com.google.type.Money value)
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.
|
RouteTravelAdvisory.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<RouteTravelAdvisory.Builder>public RouteTravelAdvisory.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouteTravelAdvisory.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<RouteTravelAdvisory.Builder>public RouteTravelAdvisory getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouteTravelAdvisory build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouteTravelAdvisory buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouteTravelAdvisory.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RouteTravelAdvisory.Builder>public RouteTravelAdvisory.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<RouteTravelAdvisory.Builder>public RouteTravelAdvisory.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteTravelAdvisory.Builder>public RouteTravelAdvisory.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteTravelAdvisory.Builder>public RouteTravelAdvisory.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<RouteTravelAdvisory.Builder>public RouteTravelAdvisory.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<RouteTravelAdvisory.Builder>public RouteTravelAdvisory.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteTravelAdvisory.Builder>public RouteTravelAdvisory.Builder mergeFrom(RouteTravelAdvisory other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouteTravelAdvisory.Builder>public RouteTravelAdvisory.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<RouteTravelAdvisory.Builder>IOExceptionpublic 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 RouteTravelAdvisory.Builder setTollInfo(TollInfo value)
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;public RouteTravelAdvisory.Builder setTollInfo(TollInfo.Builder builderForValue)
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;public RouteTravelAdvisory.Builder mergeTollInfo(TollInfo value)
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;public RouteTravelAdvisory.Builder clearTollInfo()
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;public TollInfo.Builder getTollInfoBuilder()
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;public 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 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 RouteTravelAdvisory.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 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;
public RouteTravelAdvisory.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 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;
public RouteTravelAdvisory.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 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;
public RouteTravelAdvisory.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 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;
public RouteTravelAdvisory.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 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;
public RouteTravelAdvisory.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 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;
public RouteTravelAdvisory.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 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;
public RouteTravelAdvisory.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 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;
public RouteTravelAdvisory.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 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;
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 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;
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 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 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 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 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;
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 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;
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 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;
public long getFuelConsumptionMicroliters()
The predicted fuel consumption in microliters.
int64 fuel_consumption_microliters = 5;getFuelConsumptionMicroliters in interface RouteTravelAdvisoryOrBuilderpublic RouteTravelAdvisory.Builder setFuelConsumptionMicroliters(long value)
The predicted fuel consumption in microliters.
int64 fuel_consumption_microliters = 5;value - The fuelConsumptionMicroliters to set.public RouteTravelAdvisory.Builder clearFuelConsumptionMicroliters()
The predicted fuel consumption in microliters.
int64 fuel_consumption_microliters = 5;public 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 RouteTravelAdvisory.Builder setRouteRestrictionsPartiallyIgnored(boolean value)
Returned route may have restrictions that are not suitable for requested travel mode or route modifiers.
bool route_restrictions_partially_ignored = 6;value - The routeRestrictionsPartiallyIgnored to set.public RouteTravelAdvisory.Builder clearRouteRestrictionsPartiallyIgnored()
Returned route may have restrictions that are not suitable for requested travel mode or route modifiers.
bool route_restrictions_partially_ignored = 6;public 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 RouteTravelAdvisory.Builder setTransitFare(com.google.type.Money value)
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;public RouteTravelAdvisory.Builder setTransitFare(com.google.type.Money.Builder builderForValue)
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;public RouteTravelAdvisory.Builder mergeTransitFare(com.google.type.Money value)
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;public RouteTravelAdvisory.Builder clearTransitFare()
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;public com.google.type.Money.Builder getTransitFareBuilder()
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;public 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 RouteTravelAdvisory.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteTravelAdvisory.Builder>public final RouteTravelAdvisory.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteTravelAdvisory.Builder>Copyright © 2025 Google LLC. All rights reserved.