Package com.google.maps.routing.v2
Class RouteMatrixElement.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
- com.google.maps.routing.v2.RouteMatrixElement.Builder
-
- All Implemented Interfaces:
RouteMatrixElementOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouteMatrixElement
public static final class RouteMatrixElement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder> implements RouteMatrixElementOrBuilder
Contains route information computed for an origin/destination pair in the ComputeRouteMatrix API. This proto can be streamed to the client.
Protobuf typegoogle.maps.routing.v2.RouteMatrixElement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteMatrixElement.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteMatrixElementbuild()RouteMatrixElementbuildPartial()RouteMatrixElement.Builderclear()RouteMatrixElement.BuilderclearCondition()Indicates whether the route was found or not.RouteMatrixElement.BuilderclearDestinationIndex()Zero-based index of the destination in the request.RouteMatrixElement.BuilderclearDistanceMeters()The travel distance of the route, in meters.RouteMatrixElement.BuilderclearDuration()The length of time needed to navigate the route.RouteMatrixElement.BuilderclearFallbackInfo()In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.RouteMatrixElement.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RouteMatrixElement.BuilderclearLocalizedValues()Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RouteMatrixElement.BuilderclearOriginIndex()Zero-based index of the origin in the request.RouteMatrixElement.BuilderclearStaticDuration()The duration of traveling through the route without taking traffic conditions into consideration.RouteMatrixElement.BuilderclearStatus()Error status code for this element.RouteMatrixElement.BuilderclearTravelAdvisory()Additional information about the route.RouteMatrixElement.Builderclone()RouteMatrixElementConditiongetCondition()Indicates whether the route was found or not.intgetConditionValue()Indicates whether the route was found or not.RouteMatrixElementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetDestinationIndex()Zero-based index of the destination in the request.intgetDistanceMeters()The travel distance of the route, in meters.com.google.protobuf.DurationgetDuration()The length of time needed to navigate the route.com.google.protobuf.Duration.BuildergetDurationBuilder()The length of time needed to navigate the route.com.google.protobuf.DurationOrBuildergetDurationOrBuilder()The length of time needed to navigate the route.FallbackInfogetFallbackInfo()In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.FallbackInfo.BuildergetFallbackInfoBuilder()In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.FallbackInfoOrBuildergetFallbackInfoOrBuilder()In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.RouteMatrixElement.LocalizedValuesgetLocalizedValues()Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.LocalizedValues.BuildergetLocalizedValuesBuilder()Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.LocalizedValuesOrBuildergetLocalizedValuesOrBuilder()Text representations of properties of the `RouteMatrixElement`.intgetOriginIndex()Zero-based index of the origin in the request.com.google.protobuf.DurationgetStaticDuration()The duration of traveling through the route without taking traffic conditions into consideration.com.google.protobuf.Duration.BuildergetStaticDurationBuilder()The duration of traveling through the route without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuildergetStaticDurationOrBuilder()The duration of traveling through the route without taking traffic conditions into consideration.com.google.rpc.StatusgetStatus()Error status code for this element.com.google.rpc.Status.BuildergetStatusBuilder()Error status code for this element.com.google.rpc.StatusOrBuildergetStatusOrBuilder()Error status code for this element.RouteTravelAdvisorygetTravelAdvisory()Additional information about the route.RouteTravelAdvisory.BuildergetTravelAdvisoryBuilder()Additional information about the route.RouteTravelAdvisoryOrBuildergetTravelAdvisoryOrBuilder()Additional information about the route.booleanhasDestinationIndex()Zero-based index of the destination in the request.booleanhasDuration()The length of time needed to navigate the route.booleanhasFallbackInfo()In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.booleanhasLocalizedValues()Text representations of properties of the `RouteMatrixElement`.booleanhasOriginIndex()Zero-based index of the origin in the request.booleanhasStaticDuration()The duration of traveling through the route without taking traffic conditions into consideration.booleanhasStatus()Error status code for this element.booleanhasTravelAdvisory()Additional information about the route.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RouteMatrixElement.BuildermergeDuration(com.google.protobuf.Duration value)The length of time needed to navigate the route.RouteMatrixElement.BuildermergeFallbackInfo(FallbackInfo value)In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.RouteMatrixElement.BuildermergeFrom(RouteMatrixElement other)RouteMatrixElement.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RouteMatrixElement.BuildermergeFrom(com.google.protobuf.Message other)RouteMatrixElement.BuildermergeLocalizedValues(RouteMatrixElement.LocalizedValues value)Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.BuildermergeStaticDuration(com.google.protobuf.Duration value)The duration of traveling through the route without taking traffic conditions into consideration.RouteMatrixElement.BuildermergeStatus(com.google.rpc.Status value)Error status code for this element.RouteMatrixElement.BuildermergeTravelAdvisory(RouteTravelAdvisory value)Additional information about the route.RouteMatrixElement.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouteMatrixElement.BuildersetCondition(RouteMatrixElementCondition value)Indicates whether the route was found or not.RouteMatrixElement.BuildersetConditionValue(int value)Indicates whether the route was found or not.RouteMatrixElement.BuildersetDestinationIndex(int value)Zero-based index of the destination in the request.RouteMatrixElement.BuildersetDistanceMeters(int value)The travel distance of the route, in meters.RouteMatrixElement.BuildersetDuration(com.google.protobuf.Duration value)The length of time needed to navigate the route.RouteMatrixElement.BuildersetDuration(com.google.protobuf.Duration.Builder builderForValue)The length of time needed to navigate the route.RouteMatrixElement.BuildersetFallbackInfo(FallbackInfo value)In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.RouteMatrixElement.BuildersetFallbackInfo(FallbackInfo.Builder builderForValue)In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.RouteMatrixElement.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteMatrixElement.BuildersetLocalizedValues(RouteMatrixElement.LocalizedValues value)Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.BuildersetLocalizedValues(RouteMatrixElement.LocalizedValues.Builder builderForValue)Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.BuildersetOriginIndex(int value)Zero-based index of the origin in the request.RouteMatrixElement.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RouteMatrixElement.BuildersetStaticDuration(com.google.protobuf.Duration value)The duration of traveling through the route without taking traffic conditions into consideration.RouteMatrixElement.BuildersetStaticDuration(com.google.protobuf.Duration.Builder builderForValue)The duration of traveling through the route without taking traffic conditions into consideration.RouteMatrixElement.BuildersetStatus(com.google.rpc.Status value)Error status code for this element.RouteMatrixElement.BuildersetStatus(com.google.rpc.Status.Builder builderForValue)Error status code for this element.RouteMatrixElement.BuildersetTravelAdvisory(RouteTravelAdvisory value)Additional information about the route.RouteMatrixElement.BuildersetTravelAdvisory(RouteTravelAdvisory.Builder builderForValue)Additional information about the route.RouteMatrixElement.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
clear
public RouteMatrixElement.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
getDefaultInstanceForType
public RouteMatrixElement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteMatrixElement build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteMatrixElement buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteMatrixElement.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
setField
public RouteMatrixElement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
clearField
public RouteMatrixElement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
clearOneof
public RouteMatrixElement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
setRepeatedField
public RouteMatrixElement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
addRepeatedField
public RouteMatrixElement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
mergeFrom
public RouteMatrixElement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteMatrixElement.Builder>
-
mergeFrom
public RouteMatrixElement.Builder mergeFrom(RouteMatrixElement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
mergeFrom
public RouteMatrixElement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteMatrixElement.Builder>- Throws:
IOException
-
hasOriginIndex
public boolean hasOriginIndex()
Zero-based index of the origin in the request.
optional int32 origin_index = 1;- Specified by:
hasOriginIndexin interfaceRouteMatrixElementOrBuilder- Returns:
- Whether the originIndex field is set.
-
getOriginIndex
public int getOriginIndex()
Zero-based index of the origin in the request.
optional int32 origin_index = 1;- Specified by:
getOriginIndexin interfaceRouteMatrixElementOrBuilder- Returns:
- The originIndex.
-
setOriginIndex
public RouteMatrixElement.Builder setOriginIndex(int value)
Zero-based index of the origin in the request.
optional int32 origin_index = 1;- Parameters:
value- The originIndex to set.- Returns:
- This builder for chaining.
-
clearOriginIndex
public RouteMatrixElement.Builder clearOriginIndex()
Zero-based index of the origin in the request.
optional int32 origin_index = 1;- Returns:
- This builder for chaining.
-
hasDestinationIndex
public boolean hasDestinationIndex()
Zero-based index of the destination in the request.
optional int32 destination_index = 2;- Specified by:
hasDestinationIndexin interfaceRouteMatrixElementOrBuilder- Returns:
- Whether the destinationIndex field is set.
-
getDestinationIndex
public int getDestinationIndex()
Zero-based index of the destination in the request.
optional int32 destination_index = 2;- Specified by:
getDestinationIndexin interfaceRouteMatrixElementOrBuilder- Returns:
- The destinationIndex.
-
setDestinationIndex
public RouteMatrixElement.Builder setDestinationIndex(int value)
Zero-based index of the destination in the request.
optional int32 destination_index = 2;- Parameters:
value- The destinationIndex to set.- Returns:
- This builder for chaining.
-
clearDestinationIndex
public RouteMatrixElement.Builder clearDestinationIndex()
Zero-based index of the destination in the request.
optional int32 destination_index = 2;- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()
Error status code for this element.
.google.rpc.Status status = 3;- Specified by:
hasStatusin interfaceRouteMatrixElementOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public com.google.rpc.Status getStatus()
Error status code for this element.
.google.rpc.Status status = 3;- Specified by:
getStatusin interfaceRouteMatrixElementOrBuilder- Returns:
- The status.
-
setStatus
public RouteMatrixElement.Builder setStatus(com.google.rpc.Status value)
Error status code for this element.
.google.rpc.Status status = 3;
-
setStatus
public RouteMatrixElement.Builder setStatus(com.google.rpc.Status.Builder builderForValue)
Error status code for this element.
.google.rpc.Status status = 3;
-
mergeStatus
public RouteMatrixElement.Builder mergeStatus(com.google.rpc.Status value)
Error status code for this element.
.google.rpc.Status status = 3;
-
clearStatus
public RouteMatrixElement.Builder clearStatus()
Error status code for this element.
.google.rpc.Status status = 3;
-
getStatusBuilder
public com.google.rpc.Status.Builder getStatusBuilder()
Error status code for this element.
.google.rpc.Status status = 3;
-
getStatusOrBuilder
public com.google.rpc.StatusOrBuilder getStatusOrBuilder()
Error status code for this element.
.google.rpc.Status status = 3;- Specified by:
getStatusOrBuilderin interfaceRouteMatrixElementOrBuilder
-
getConditionValue
public int getConditionValue()
Indicates whether the route was found or not. Independent of status.
.google.maps.routing.v2.RouteMatrixElementCondition condition = 9;- Specified by:
getConditionValuein interfaceRouteMatrixElementOrBuilder- Returns:
- The enum numeric value on the wire for condition.
-
setConditionValue
public RouteMatrixElement.Builder setConditionValue(int value)
Indicates whether the route was found or not. Independent of status.
.google.maps.routing.v2.RouteMatrixElementCondition condition = 9;- Parameters:
value- The enum numeric value on the wire for condition to set.- Returns:
- This builder for chaining.
-
getCondition
public RouteMatrixElementCondition getCondition()
Indicates whether the route was found or not. Independent of status.
.google.maps.routing.v2.RouteMatrixElementCondition condition = 9;- Specified by:
getConditionin interfaceRouteMatrixElementOrBuilder- Returns:
- The condition.
-
setCondition
public RouteMatrixElement.Builder setCondition(RouteMatrixElementCondition value)
Indicates whether the route was found or not. Independent of status.
.google.maps.routing.v2.RouteMatrixElementCondition condition = 9;- Parameters:
value- The condition to set.- Returns:
- This builder for chaining.
-
clearCondition
public RouteMatrixElement.Builder clearCondition()
Indicates whether the route was found or not. Independent of status.
.google.maps.routing.v2.RouteMatrixElementCondition condition = 9;- Returns:
- This builder for chaining.
-
getDistanceMeters
public int getDistanceMeters()
The travel distance of the route, in meters.
int32 distance_meters = 4;- Specified by:
getDistanceMetersin interfaceRouteMatrixElementOrBuilder- Returns:
- The distanceMeters.
-
setDistanceMeters
public RouteMatrixElement.Builder setDistanceMeters(int value)
The travel distance of the route, in meters.
int32 distance_meters = 4;- Parameters:
value- The distanceMeters to set.- Returns:
- This builder for chaining.
-
clearDistanceMeters
public RouteMatrixElement.Builder clearDistanceMeters()
The travel distance of the route, in meters.
int32 distance_meters = 4;- Returns:
- This builder for chaining.
-
hasDuration
public boolean hasDuration()
The length of time needed to navigate the route. If you set the [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference] to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 5;- Specified by:
hasDurationin interfaceRouteMatrixElementOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()
The length of time needed to navigate the route. If you set the [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference] to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 5;- Specified by:
getDurationin interfaceRouteMatrixElementOrBuilder- Returns:
- The duration.
-
setDuration
public RouteMatrixElement.Builder setDuration(com.google.protobuf.Duration value)
The length of time needed to navigate the route. If you set the [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference] to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 5;
-
setDuration
public RouteMatrixElement.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
The length of time needed to navigate the route. If you set the [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference] to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 5;
-
mergeDuration
public RouteMatrixElement.Builder mergeDuration(com.google.protobuf.Duration value)
The length of time needed to navigate the route. If you set the [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference] to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 5;
-
clearDuration
public RouteMatrixElement.Builder clearDuration()
The length of time needed to navigate the route. If you set the [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference] to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 5;
-
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()
The length of time needed to navigate the route. If you set the [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference] to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 5;
-
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
The length of time needed to navigate the route. If you set the [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference] to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 5;- Specified by:
getDurationOrBuilderin interfaceRouteMatrixElementOrBuilder
-
hasStaticDuration
public boolean hasStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;- Specified by:
hasStaticDurationin interfaceRouteMatrixElementOrBuilder- Returns:
- Whether the staticDuration field is set.
-
getStaticDuration
public com.google.protobuf.Duration getStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;- Specified by:
getStaticDurationin interfaceRouteMatrixElementOrBuilder- Returns:
- The staticDuration.
-
setStaticDuration
public RouteMatrixElement.Builder setStaticDuration(com.google.protobuf.Duration value)
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;
-
setStaticDuration
public RouteMatrixElement.Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue)
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;
-
mergeStaticDuration
public RouteMatrixElement.Builder mergeStaticDuration(com.google.protobuf.Duration value)
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;
-
clearStaticDuration
public RouteMatrixElement.Builder clearStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;
-
getStaticDurationBuilder
public com.google.protobuf.Duration.Builder getStaticDurationBuilder()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;
-
getStaticDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;- Specified by:
getStaticDurationOrBuilderin interfaceRouteMatrixElementOrBuilder
-
hasTravelAdvisory
public boolean hasTravelAdvisory()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;- Specified by:
hasTravelAdvisoryin interfaceRouteMatrixElementOrBuilder- Returns:
- Whether the travelAdvisory field is set.
-
getTravelAdvisory
public RouteTravelAdvisory getTravelAdvisory()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;- Specified by:
getTravelAdvisoryin interfaceRouteMatrixElementOrBuilder- Returns:
- The travelAdvisory.
-
setTravelAdvisory
public RouteMatrixElement.Builder setTravelAdvisory(RouteTravelAdvisory value)
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
-
setTravelAdvisory
public RouteMatrixElement.Builder setTravelAdvisory(RouteTravelAdvisory.Builder builderForValue)
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
-
mergeTravelAdvisory
public RouteMatrixElement.Builder mergeTravelAdvisory(RouteTravelAdvisory value)
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
-
clearTravelAdvisory
public RouteMatrixElement.Builder clearTravelAdvisory()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
-
getTravelAdvisoryBuilder
public RouteTravelAdvisory.Builder getTravelAdvisoryBuilder()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
-
getTravelAdvisoryOrBuilder
public RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;- Specified by:
getTravelAdvisoryOrBuilderin interfaceRouteMatrixElementOrBuilder
-
hasFallbackInfo
public boolean hasFallbackInfo()
In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 8;- Specified by:
hasFallbackInfoin interfaceRouteMatrixElementOrBuilder- Returns:
- Whether the fallbackInfo field is set.
-
getFallbackInfo
public FallbackInfo getFallbackInfo()
In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 8;- Specified by:
getFallbackInfoin interfaceRouteMatrixElementOrBuilder- Returns:
- The fallbackInfo.
-
setFallbackInfo
public RouteMatrixElement.Builder setFallbackInfo(FallbackInfo value)
In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 8;
-
setFallbackInfo
public RouteMatrixElement.Builder setFallbackInfo(FallbackInfo.Builder builderForValue)
In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 8;
-
mergeFallbackInfo
public RouteMatrixElement.Builder mergeFallbackInfo(FallbackInfo value)
In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 8;
-
clearFallbackInfo
public RouteMatrixElement.Builder clearFallbackInfo()
In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 8;
-
getFallbackInfoBuilder
public FallbackInfo.Builder getFallbackInfoBuilder()
In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 8;
-
getFallbackInfoOrBuilder
public FallbackInfoOrBuilder getFallbackInfoOrBuilder()
In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 8;- Specified by:
getFallbackInfoOrBuilderin interfaceRouteMatrixElementOrBuilder
-
hasLocalizedValues
public boolean hasLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;- Specified by:
hasLocalizedValuesin interfaceRouteMatrixElementOrBuilder- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
public RouteMatrixElement.LocalizedValues getLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;- Specified by:
getLocalizedValuesin interfaceRouteMatrixElementOrBuilder- Returns:
- The localizedValues.
-
setLocalizedValues
public RouteMatrixElement.Builder setLocalizedValues(RouteMatrixElement.LocalizedValues value)
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
-
setLocalizedValues
public RouteMatrixElement.Builder setLocalizedValues(RouteMatrixElement.LocalizedValues.Builder builderForValue)
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
-
mergeLocalizedValues
public RouteMatrixElement.Builder mergeLocalizedValues(RouteMatrixElement.LocalizedValues value)
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
-
clearLocalizedValues
public RouteMatrixElement.Builder clearLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
-
getLocalizedValuesBuilder
public RouteMatrixElement.LocalizedValues.Builder getLocalizedValuesBuilder()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
-
getLocalizedValuesOrBuilder
public RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;- Specified by:
getLocalizedValuesOrBuilderin interfaceRouteMatrixElementOrBuilder
-
setUnknownFields
public final RouteMatrixElement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
mergeUnknownFields
public final RouteMatrixElement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
-