Package com.google.maps.routing.v2
Class ComputeRouteMatrixRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.maps.routing.v2.ComputeRouteMatrixRequest
- All Implemented Interfaces:
ComputeRouteMatrixRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ComputeRouteMatrixRequest
extends com.google.protobuf.GeneratedMessage
implements ComputeRouteMatrixRequestOrBuilder
ComputeRouteMatrix request messageProtobuf type
google.maps.routing.v2.ComputeRouteMatrixRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classComputeRouteMatrix request messagestatic enumExtra computations to perform while completing the request.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.static ComputeRouteMatrixRequestcom.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.static final com.google.protobuf.Descriptors.DescriptorgetDestinations(int index) Required.intRequired.Required.getDestinationsOrBuilder(int index) Required.List<? extends RouteMatrixDestinationOrBuilder>Required.getExtraComputations(int index) Optional.intOptional.Optional.intgetExtraComputationsValue(int index) Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.getOrigins(int index) Required.intRequired.Required.getOriginsOrBuilder(int index) Required.List<? extends RouteMatrixOriginOrBuilder>Required.com.google.protobuf.Parser<ComputeRouteMatrixRequest>Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.intOptional.intOptional.Optional.Optional.Optional.intOptional.getUnits()Optional.intOptional.booleanOptional.booleanOptional.inthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(ComputeRouteMatrixRequest prototype) protected ComputeRouteMatrixRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ComputeRouteMatrixRequestparseDelimitedFrom(InputStream input) static ComputeRouteMatrixRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ComputeRouteMatrixRequestparseFrom(byte[] data) static ComputeRouteMatrixRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ComputeRouteMatrixRequestparseFrom(com.google.protobuf.ByteString data) static ComputeRouteMatrixRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ComputeRouteMatrixRequestparseFrom(com.google.protobuf.CodedInputStream input) static ComputeRouteMatrixRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ComputeRouteMatrixRequestparseFrom(InputStream input) static ComputeRouteMatrixRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ComputeRouteMatrixRequestparseFrom(ByteBuffer data) static ComputeRouteMatrixRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ComputeRouteMatrixRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ORIGINS_FIELD_NUMBER
public static final int ORIGINS_FIELD_NUMBER- See Also:
-
DESTINATIONS_FIELD_NUMBER
public static final int DESTINATIONS_FIELD_NUMBER- See Also:
-
TRAVEL_MODE_FIELD_NUMBER
public static final int TRAVEL_MODE_FIELD_NUMBER- See Also:
-
ROUTING_PREFERENCE_FIELD_NUMBER
public static final int ROUTING_PREFERENCE_FIELD_NUMBER- See Also:
-
DEPARTURE_TIME_FIELD_NUMBER
public static final int DEPARTURE_TIME_FIELD_NUMBER- See Also:
-
ARRIVAL_TIME_FIELD_NUMBER
public static final int ARRIVAL_TIME_FIELD_NUMBER- See Also:
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
REGION_CODE_FIELD_NUMBER
public static final int REGION_CODE_FIELD_NUMBER- See Also:
-
UNITS_FIELD_NUMBER
public static final int UNITS_FIELD_NUMBER- See Also:
-
EXTRA_COMPUTATIONS_FIELD_NUMBER
public static final int EXTRA_COMPUTATIONS_FIELD_NUMBER- See Also:
-
TRAFFIC_MODEL_FIELD_NUMBER
public static final int TRAFFIC_MODEL_FIELD_NUMBER- See Also:
-
TRANSIT_PREFERENCES_FIELD_NUMBER
public static final int TRANSIT_PREFERENCES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getOriginsList
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsListin interfaceComputeRouteMatrixRequestOrBuilder
-
getOriginsOrBuilderList
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsOrBuilderListin interfaceComputeRouteMatrixRequestOrBuilder
-
getOriginsCount
public int getOriginsCount()Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsCountin interfaceComputeRouteMatrixRequestOrBuilder
-
getOrigins
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsin interfaceComputeRouteMatrixRequestOrBuilder
-
getOriginsOrBuilder
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsList
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsListin interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsOrBuilderList
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsOrBuilderListin interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsCount
public int getDestinationsCount()Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsCountin interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinations
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsin interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsOrBuilder
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-
getTravelModeValue
public int getTravelModeValue()Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTravelModeValuein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The enum numeric value on the wire for travelMode.
-
getTravelMode
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTravelModein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The travelMode.
-
getRoutingPreferenceValue
public int getRoutingPreferenceValue()Optional. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, an error is returned. You can specify this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
.google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingPreferenceValuein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The enum numeric value on the wire for routingPreference.
-
getRoutingPreference
Optional. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, an error is returned. You can specify this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
.google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingPreferencein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The routingPreference.
-
hasDepartureTime
public boolean hasDepartureTime()Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDepartureTimein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- Whether the departureTime field is set.
-
getDepartureTime
public com.google.protobuf.Timestamp getDepartureTime()Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDepartureTimein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The departureTime.
-
getDepartureTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder()Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDepartureTimeOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-
hasArrivalTime
public boolean hasArrivalTime()Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasArrivalTimein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- Whether the arrivalTime field is set.
-
getArrivalTime
public com.google.protobuf.Timestamp getArrivalTime()Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArrivalTimein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The arrivalTime.
-
getArrivalTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder()Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArrivalTimeOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-
getLanguageCode
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Unicode Locale Identifier](http://www.unicode.org/reports/tr35/#Unicode_locale_identifier). See [Language Support](https://developers.google.com/maps/faq#languagesupport) for the list of supported languages. When you don't provide this value, the display language is inferred from the location of the first origin.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Unicode Locale Identifier](http://www.unicode.org/reports/tr35/#Unicode_locale_identifier). See [Language Support](https://developers.google.com/maps/faq#languagesupport) for the list of supported languages. When you don't provide this value, the display language is inferred from the location of the first origin.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodeBytesin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The bytes for languageCode.
-
getRegionCode
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see [Country code top-level domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains).string region_code = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionCodein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The regionCode.
-
getRegionCodeBytes
public com.google.protobuf.ByteString getRegionCodeBytes()Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see [Country code top-level domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains).string region_code = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionCodeBytesin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The bytes for regionCode.
-
getUnitsValue
public int getUnitsValue()Optional. Specifies the units of measure for the display fields.
.google.maps.routing.v2.Units units = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUnitsValuein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The enum numeric value on the wire for units.
-
getUnits
Optional. Specifies the units of measure for the display fields.
.google.maps.routing.v2.Units units = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUnitsin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The units.
-
getExtraComputationsList
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsListin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- A list containing the extraComputations.
-
getExtraComputationsCount
public int getExtraComputationsCount()Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsCountin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The count of extraComputations.
-
getExtraComputations
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsin interfaceComputeRouteMatrixRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The extraComputations at the given index.
-
getExtraComputationsValueList
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsValueListin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for extraComputations.
-
getExtraComputationsValue
public int getExtraComputationsValue(int index) Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsValuein interfaceComputeRouteMatrixRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of extraComputations at the given index.
-
getTrafficModelValue
public int getTrafficModelValue()Optional. Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which contains the predicted time in traffic based on historical averages. `TrafficModel` is only available for requests that have set [RoutingPreference][google.maps.routing.v2.RoutingPreference] to `TRAFFIC_AWARE_OPTIMAL` and [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not specified.
.google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTrafficModelValuein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The enum numeric value on the wire for trafficModel.
-
getTrafficModel
Optional. Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which contains the predicted time in traffic based on historical averages. `TrafficModel` is only available for requests that have set [RoutingPreference][google.maps.routing.v2.RoutingPreference] to `TRAFFIC_AWARE_OPTIMAL` and [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not specified.
.google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTrafficModelin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The trafficModel.
-
hasTransitPreferences
public boolean hasTransitPreferences()Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTransitPreferencesin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- Whether the transitPreferences field is set.
-
getTransitPreferences
Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransitPreferencesin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The transitPreferences.
-
getTransitPreferencesOrBuilder
Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransitPreferencesOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ComputeRouteMatrixRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ComputeRouteMatrixRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-