Package com.google.maps.routing.v2
Class ComputeRouteMatrixRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class ComputeRouteMatrixRequest extends com.google.protobuf.GeneratedMessageV3 implements ComputeRouteMatrixRequestOrBuilder
ComputeRouteMatrix request message
Protobuf typegoogle.maps.routing.v2.ComputeRouteMatrixRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComputeRouteMatrixRequest.Builder
ComputeRouteMatrix request messagestatic class
ComputeRouteMatrixRequest.ExtraComputation
Extra computations to perform while completing the request.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static int
ARRIVAL_TIME_FIELD_NUMBER
static int
DEPARTURE_TIME_FIELD_NUMBER
static int
DESTINATIONS_FIELD_NUMBER
static int
EXTRA_COMPUTATIONS_FIELD_NUMBER
static int
LANGUAGE_CODE_FIELD_NUMBER
static int
ORIGINS_FIELD_NUMBER
static int
REGION_CODE_FIELD_NUMBER
static int
ROUTING_PREFERENCE_FIELD_NUMBER
static int
TRAFFIC_MODEL_FIELD_NUMBER
static int
TRANSIT_PREFERENCES_FIELD_NUMBER
static int
TRAVEL_MODE_FIELD_NUMBER
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ORIGINS_FIELD_NUMBER
public static final int ORIGINS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESTINATIONS_FIELD_NUMBER
public static final int DESTINATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAVEL_MODE_FIELD_NUMBER
public static final int TRAVEL_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROUTING_PREFERENCE_FIELD_NUMBER
public static final int ROUTING_PREFERENCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPARTURE_TIME_FIELD_NUMBER
public static final int DEPARTURE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARRIVAL_TIME_FIELD_NUMBER
public static final int ARRIVAL_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REGION_CODE_FIELD_NUMBER
public static final int REGION_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTRA_COMPUTATIONS_FIELD_NUMBER
public static final int EXTRA_COMPUTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAFFIC_MODEL_FIELD_NUMBER
public static final int TRAFFIC_MODEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSIT_PREFERENCES_FIELD_NUMBER
public static final int TRANSIT_PREFERENCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
getOriginsList
public List<RouteMatrixOrigin> 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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOriginsList
in interfaceComputeRouteMatrixRequestOrBuilder
-
getOriginsOrBuilderList
public List<? extends RouteMatrixOriginOrBuilder> 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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOriginsOrBuilderList
in 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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOriginsCount
in interfaceComputeRouteMatrixRequestOrBuilder
-
getOrigins
public RouteMatrixOrigin getOrigins(int index)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOrigins
in interfaceComputeRouteMatrixRequestOrBuilder
-
getOriginsOrBuilder
public RouteMatrixOriginOrBuilder getOriginsOrBuilder(int index)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOriginsOrBuilder
in interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsList
public List<RouteMatrixDestination> 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:
getDestinationsList
in interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsOrBuilderList
public List<? extends RouteMatrixDestinationOrBuilder> 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:
getDestinationsOrBuilderList
in 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:
getDestinationsCount
in interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinations
public RouteMatrixDestination getDestinations(int index)
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:
getDestinations
in interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsOrBuilder
public RouteMatrixDestinationOrBuilder getDestinationsOrBuilder(int index)
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:
getDestinationsOrBuilder
in 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:
getTravelModeValue
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The enum numeric value on the wire for travelMode.
-
getTravelMode
public RouteTravelMode getTravelMode()
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTravelMode
in 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:
getRoutingPreferenceValue
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The enum numeric value on the wire for routingPreference.
-
getRoutingPreference
public 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:
getRoutingPreference
in 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:
hasDepartureTime
in 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:
getDepartureTime
in 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:
getDepartureTimeOrBuilder
in 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:
hasArrivalTime
in 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:
getArrivalTime
in 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:
getArrivalTimeOrBuilder
in interfaceComputeRouteMatrixRequestOrBuilder
-
getLanguageCode
public String getLanguageCode()
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see 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:
getLanguageCode
in 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 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:
getLanguageCodeBytes
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The bytes for languageCode.
-
getRegionCode
public String getRegionCode()
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see 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:
getRegionCode
in 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 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:
getRegionCodeBytes
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The bytes for regionCode.
-
getExtraComputationsList
public List<ComputeRouteMatrixRequest.ExtraComputation> 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:
getExtraComputationsList
in 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:
getExtraComputationsCount
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The count of extraComputations.
-
getExtraComputations
public ComputeRouteMatrixRequest.ExtraComputation getExtraComputations(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:
getExtraComputations
in interfaceComputeRouteMatrixRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The extraComputations at the given index.
-
getExtraComputationsValueList
public List<Integer> 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:
getExtraComputationsValueList
in 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:
getExtraComputationsValue
in 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. [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:
getTrafficModelValue
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The enum numeric value on the wire for trafficModel.
-
getTrafficModel
public 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. [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:
getTrafficModel
in 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:
hasTransitPreferences
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- Whether the transitPreferences field is set.
-
getTransitPreferences
public TransitPreferences 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:
getTransitPreferences
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The transitPreferences.
-
getTransitPreferencesOrBuilder
public TransitPreferencesOrBuilder 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:
getTransitPreferencesOrBuilder
in interfaceComputeRouteMatrixRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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
public static ComputeRouteMatrixRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ComputeRouteMatrixRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ComputeRouteMatrixRequest parseDelimitedFrom(InputStream input) throws IOException
- 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
public ComputeRouteMatrixRequest.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ComputeRouteMatrixRequest.Builder newBuilder()
-
newBuilder
public static ComputeRouteMatrixRequest.Builder newBuilder(ComputeRouteMatrixRequest prototype)
-
toBuilder
public ComputeRouteMatrixRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ComputeRouteMatrixRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ComputeRouteMatrixRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ComputeRouteMatrixRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<ComputeRouteMatrixRequest> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ComputeRouteMatrixRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-