public final class RouteMatrixElement extends com.google.protobuf.GeneratedMessageV3 implements RouteMatrixElementOrBuilder
Contains route information computed for an origin/destination pair in the ComputeRouteMatrix API. This proto can be streamed to the client.Protobuf type
google.maps.routing.v2.RouteMatrixElement| Modifier and Type | Class and Description |
|---|---|
static class |
RouteMatrixElement.Builder
Contains route information computed for an origin/destination pair in the
ComputeRouteMatrix API.
|
static class |
RouteMatrixElement.LocalizedValues
Text representations of certain properties.
|
static interface |
RouteMatrixElement.LocalizedValuesOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONDITION_FIELD_NUMBER |
static int |
DESTINATION_INDEX_FIELD_NUMBER |
static int |
DISTANCE_METERS_FIELD_NUMBER |
static int |
DURATION_FIELD_NUMBER |
static int |
FALLBACK_INFO_FIELD_NUMBER |
static int |
LOCALIZED_VALUES_FIELD_NUMBER |
static int |
ORIGIN_INDEX_FIELD_NUMBER |
static int |
STATIC_DURATION_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
TRAVEL_ADVISORY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
RouteMatrixElementCondition |
getCondition()
Indicates whether the route was found or not.
|
int |
getConditionValue()
Indicates whether the route was found or not.
|
static RouteMatrixElement |
getDefaultInstance() |
RouteMatrixElement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.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.
|
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.LocalizedValuesOrBuilder |
getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteMatrixElement`.
|
int |
getOriginIndex()
Zero-based index of the origin in the request.
|
com.google.protobuf.Parser<RouteMatrixElement> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Duration |
getStaticDuration()
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.StatusOrBuilder |
getStatusOrBuilder()
Error status code for this element.
|
RouteTravelAdvisory |
getTravelAdvisory()
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.
|
int |
hashCode() |
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() |
static RouteMatrixElement.Builder |
newBuilder() |
static RouteMatrixElement.Builder |
newBuilder(RouteMatrixElement prototype) |
RouteMatrixElement.Builder |
newBuilderForType() |
protected RouteMatrixElement.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RouteMatrixElement |
parseDelimitedFrom(InputStream input) |
static RouteMatrixElement |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteMatrixElement |
parseFrom(byte[] data) |
static RouteMatrixElement |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteMatrixElement |
parseFrom(ByteBuffer data) |
static RouteMatrixElement |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteMatrixElement |
parseFrom(com.google.protobuf.ByteString data) |
static RouteMatrixElement |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteMatrixElement |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RouteMatrixElement |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteMatrixElement |
parseFrom(InputStream input) |
static RouteMatrixElement |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RouteMatrixElement> |
parser() |
RouteMatrixElement.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ORIGIN_INDEX_FIELD_NUMBER
public static final int DESTINATION_INDEX_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER
public static final int DISTANCE_METERS_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
public static final int STATIC_DURATION_FIELD_NUMBER
public static final int TRAVEL_ADVISORY_FIELD_NUMBER
public static final int FALLBACK_INFO_FIELD_NUMBER
public static final int LOCALIZED_VALUES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasOriginIndex()
Zero-based index of the origin in the request.
optional int32 origin_index = 1;hasOriginIndex in interface RouteMatrixElementOrBuilderpublic int getOriginIndex()
Zero-based index of the origin in the request.
optional int32 origin_index = 1;getOriginIndex in interface RouteMatrixElementOrBuilderpublic boolean hasDestinationIndex()
Zero-based index of the destination in the request.
optional int32 destination_index = 2;hasDestinationIndex in interface RouteMatrixElementOrBuilderpublic int getDestinationIndex()
Zero-based index of the destination in the request.
optional int32 destination_index = 2;getDestinationIndex in interface RouteMatrixElementOrBuilderpublic boolean hasStatus()
Error status code for this element.
.google.rpc.Status status = 3;hasStatus in interface RouteMatrixElementOrBuilderpublic com.google.rpc.Status getStatus()
Error status code for this element.
.google.rpc.Status status = 3;getStatus in interface RouteMatrixElementOrBuilderpublic com.google.rpc.StatusOrBuilder getStatusOrBuilder()
Error status code for this element.
.google.rpc.Status status = 3;getStatusOrBuilder in interface RouteMatrixElementOrBuilderpublic int getConditionValue()
Indicates whether the route was found or not. Independent of status.
.google.maps.routing.v2.RouteMatrixElementCondition condition = 9;getConditionValue in interface RouteMatrixElementOrBuilderpublic RouteMatrixElementCondition getCondition()
Indicates whether the route was found or not. Independent of status.
.google.maps.routing.v2.RouteMatrixElementCondition condition = 9;getCondition in interface RouteMatrixElementOrBuilderpublic int getDistanceMeters()
The travel distance of the route, in meters.
int32 distance_meters = 4;getDistanceMeters in interface RouteMatrixElementOrBuilderpublic 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;hasDuration in interface RouteMatrixElementOrBuilderpublic 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;getDuration in interface RouteMatrixElementOrBuilderpublic 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;getDurationOrBuilder in interface RouteMatrixElementOrBuilderpublic boolean hasStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;hasStaticDuration in interface RouteMatrixElementOrBuilderpublic com.google.protobuf.Duration getStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;getStaticDuration in interface RouteMatrixElementOrBuilderpublic com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;getStaticDurationOrBuilder in interface RouteMatrixElementOrBuilderpublic boolean hasTravelAdvisory()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;hasTravelAdvisory in interface RouteMatrixElementOrBuilderpublic RouteTravelAdvisory getTravelAdvisory()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;getTravelAdvisory in interface RouteMatrixElementOrBuilderpublic RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;getTravelAdvisoryOrBuilder in interface RouteMatrixElementOrBuilderpublic 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;hasFallbackInfo in interface RouteMatrixElementOrBuilderpublic 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;getFallbackInfo in interface RouteMatrixElementOrBuilderpublic 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;getFallbackInfoOrBuilder in interface RouteMatrixElementOrBuilderpublic boolean hasLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;hasLocalizedValues in interface RouteMatrixElementOrBuilderpublic RouteMatrixElement.LocalizedValues getLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;getLocalizedValues in interface RouteMatrixElementOrBuilderpublic RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;getLocalizedValuesOrBuilder in interface RouteMatrixElementOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RouteMatrixElement parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteMatrixElement parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteMatrixElement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteMatrixElement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteMatrixElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteMatrixElement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteMatrixElement parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouteMatrixElement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteMatrixElement parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouteMatrixElement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteMatrixElement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouteMatrixElement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RouteMatrixElement.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouteMatrixElement.Builder newBuilder()
public static RouteMatrixElement.Builder newBuilder(RouteMatrixElement prototype)
public RouteMatrixElement.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouteMatrixElement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RouteMatrixElement getDefaultInstance()
public static com.google.protobuf.Parser<RouteMatrixElement> parser()
public com.google.protobuf.Parser<RouteMatrixElement> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RouteMatrixElement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.