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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteMatrixElement
build()
RouteMatrixElement
buildPartial()
RouteMatrixElement.Builder
clear()
RouteMatrixElement.Builder
clearCondition()
Indicates whether the route was found or not.RouteMatrixElement.Builder
clearDestinationIndex()
Zero-based index of the destination in the request.RouteMatrixElement.Builder
clearDistanceMeters()
The travel distance of the route, in meters.RouteMatrixElement.Builder
clearDuration()
The length of time needed to navigate the route.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.RouteMatrixElement.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RouteMatrixElement.Builder
clearLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RouteMatrixElement.Builder
clearOriginIndex()
Zero-based index of the origin in the request.RouteMatrixElement.Builder
clearStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.RouteMatrixElement.Builder
clearStatus()
Error status code for this element.RouteMatrixElement.Builder
clearTravelAdvisory()
Additional information about the route.RouteMatrixElement.Builder
clone()
RouteMatrixElementCondition
getCondition()
Indicates whether the route was found or not.int
getConditionValue()
Indicates whether the route was found or not.RouteMatrixElement
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getDestinationIndex()
Zero-based index of the destination in the request.int
getDistanceMeters()
The travel distance of the route, in meters.com.google.protobuf.Duration
getDuration()
The length of time needed to navigate the route.com.google.protobuf.Duration.Builder
getDurationBuilder()
The length of time needed to navigate the route.com.google.protobuf.DurationOrBuilder
getDurationOrBuilder()
The length of time needed to navigate the route.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.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.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.RouteMatrixElement.LocalizedValues
getLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.LocalizedValues.Builder
getLocalizedValuesBuilder()
Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.LocalizedValuesOrBuilder
getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteMatrixElement`.int
getOriginIndex()
Zero-based index of the origin in the request.com.google.protobuf.Duration
getStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.com.google.protobuf.Duration.Builder
getStaticDurationBuilder()
The duration of traveling through the route without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuilder
getStaticDurationOrBuilder()
The duration of traveling through the route without taking traffic conditions into consideration.com.google.rpc.Status
getStatus()
Error status code for this element.com.google.rpc.Status.Builder
getStatusBuilder()
Error status code for this element.com.google.rpc.StatusOrBuilder
getStatusOrBuilder()
Error status code for this element.RouteTravelAdvisory
getTravelAdvisory()
Additional information about the route.RouteTravelAdvisory.Builder
getTravelAdvisoryBuilder()
Additional information about the route.RouteTravelAdvisoryOrBuilder
getTravelAdvisoryOrBuilder()
Additional information about the route.boolean
hasDestinationIndex()
Zero-based index of the destination in the request.boolean
hasDuration()
The length of time needed to navigate the route.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.boolean
hasLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.boolean
hasOriginIndex()
Zero-based index of the origin in the request.boolean
hasStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.boolean
hasStatus()
Error status code for this element.boolean
hasTravelAdvisory()
Additional information about the route.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RouteMatrixElement.Builder
mergeDuration(com.google.protobuf.Duration value)
The length of time needed to navigate the route.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.RouteMatrixElement.Builder
mergeFrom(RouteMatrixElement other)
RouteMatrixElement.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouteMatrixElement.Builder
mergeFrom(com.google.protobuf.Message other)
RouteMatrixElement.Builder
mergeLocalizedValues(RouteMatrixElement.LocalizedValues value)
Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.Builder
mergeStaticDuration(com.google.protobuf.Duration value)
The duration of traveling through the route without taking traffic conditions into consideration.RouteMatrixElement.Builder
mergeStatus(com.google.rpc.Status value)
Error status code for this element.RouteMatrixElement.Builder
mergeTravelAdvisory(RouteTravelAdvisory value)
Additional information about the route.RouteMatrixElement.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RouteMatrixElement.Builder
setCondition(RouteMatrixElementCondition value)
Indicates whether the route was found or not.RouteMatrixElement.Builder
setConditionValue(int value)
Indicates whether the route was found or not.RouteMatrixElement.Builder
setDestinationIndex(int value)
Zero-based index of the destination in the request.RouteMatrixElement.Builder
setDistanceMeters(int value)
The travel distance of the route, in meters.RouteMatrixElement.Builder
setDuration(com.google.protobuf.Duration value)
The length of time needed to navigate the route.RouteMatrixElement.Builder
setDuration(com.google.protobuf.Duration.Builder builderForValue)
The length of time needed to navigate the route.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.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.RouteMatrixElement.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteMatrixElement.Builder
setLocalizedValues(RouteMatrixElement.LocalizedValues value)
Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.Builder
setLocalizedValues(RouteMatrixElement.LocalizedValues.Builder builderForValue)
Text representations of properties of the `RouteMatrixElement`.RouteMatrixElement.Builder
setOriginIndex(int value)
Zero-based index of the origin in the request.RouteMatrixElement.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RouteMatrixElement.Builder
setStaticDuration(com.google.protobuf.Duration value)
The duration of traveling through the route without taking traffic conditions into consideration.RouteMatrixElement.Builder
setStaticDuration(com.google.protobuf.Duration.Builder builderForValue)
The duration of traveling through the route without taking traffic conditions into consideration.RouteMatrixElement.Builder
setStatus(com.google.rpc.Status value)
Error status code for this element.RouteMatrixElement.Builder
setStatus(com.google.rpc.Status.Builder builderForValue)
Error status code for this element.RouteMatrixElement.Builder
setTravelAdvisory(RouteTravelAdvisory value)
Additional information about the route.RouteMatrixElement.Builder
setTravelAdvisory(RouteTravelAdvisory.Builder builderForValue)
Additional information about the route.RouteMatrixElement.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
clear
public RouteMatrixElement.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
getDefaultInstanceForType
public RouteMatrixElement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteMatrixElement build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteMatrixElement buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteMatrixElement.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
setField
public RouteMatrixElement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
clearField
public RouteMatrixElement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
clearOneof
public RouteMatrixElement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
setRepeatedField
public RouteMatrixElement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
addRepeatedField
public RouteMatrixElement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
mergeFrom
public RouteMatrixElement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteMatrixElement.Builder>
-
mergeFrom
public RouteMatrixElement.Builder mergeFrom(RouteMatrixElement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasOriginIndex
in 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:
getOriginIndex
in 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:
hasDestinationIndex
in 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:
getDestinationIndex
in 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:
hasStatus
in 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:
getStatus
in 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:
getStatusOrBuilder
in 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:
getConditionValue
in 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:
getCondition
in 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:
getDistanceMeters
in 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:
hasDuration
in 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:
getDuration
in 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:
getDurationOrBuilder
in 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:
hasStaticDuration
in 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:
getStaticDuration
in 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:
getStaticDurationOrBuilder
in 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:
hasTravelAdvisory
in 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:
getTravelAdvisory
in 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:
getTravelAdvisoryOrBuilder
in 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:
hasFallbackInfo
in 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:
getFallbackInfo
in 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:
getFallbackInfoOrBuilder
in interfaceRouteMatrixElementOrBuilder
-
hasLocalizedValues
public boolean hasLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
- Specified by:
hasLocalizedValues
in 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:
getLocalizedValues
in 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:
getLocalizedValuesOrBuilder
in interfaceRouteMatrixElementOrBuilder
-
setUnknownFields
public final RouteMatrixElement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
mergeUnknownFields
public final RouteMatrixElement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.Builder>
-
-