com.google.maps.routing.v2.RouteMatrixElementOrBuilder Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/maps/routing/v2/routes_service.proto
// Protobuf Java Version: 3.25.3
package com.google.maps.routing.v2;
public interface RouteMatrixElementOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteMatrixElement)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Zero-based index of the origin in the request.
*
*
* optional int32 origin_index = 1;
*
* @return Whether the originIndex field is set.
*/
boolean hasOriginIndex();
/**
*
*
*
* Zero-based index of the origin in the request.
*
*
* optional int32 origin_index = 1;
*
* @return The originIndex.
*/
int getOriginIndex();
/**
*
*
*
* Zero-based index of the destination in the request.
*
*
* optional int32 destination_index = 2;
*
* @return Whether the destinationIndex field is set.
*/
boolean hasDestinationIndex();
/**
*
*
*
* Zero-based index of the destination in the request.
*
*
* optional int32 destination_index = 2;
*
* @return The destinationIndex.
*/
int getDestinationIndex();
/**
*
*
*
* Error status code for this element.
*
*
* .google.rpc.Status status = 3;
*
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
*
*
*
* Error status code for this element.
*
*
* .google.rpc.Status status = 3;
*
* @return The status.
*/
com.google.rpc.Status getStatus();
/**
*
*
*
* Error status code for this element.
*
*
* .google.rpc.Status status = 3;
*/
com.google.rpc.StatusOrBuilder getStatusOrBuilder();
/**
*
*
*
* Indicates whether the route was found or not. Independent of status.
*
*
* .google.maps.routing.v2.RouteMatrixElementCondition condition = 9;
*
* @return The enum numeric value on the wire for condition.
*/
int getConditionValue();
/**
*
*
*
* Indicates whether the route was found or not. Independent of status.
*
*
* .google.maps.routing.v2.RouteMatrixElementCondition condition = 9;
*
* @return The condition.
*/
com.google.maps.routing.v2.RouteMatrixElementCondition getCondition();
/**
*
*
*
* The travel distance of the route, in meters.
*
*
* int32 distance_meters = 4;
*
* @return The distanceMeters.
*/
int getDistanceMeters();
/**
*
*
*
* 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;
*
* @return Whether the duration field is set.
*/
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;
*
* @return The duration.
*/
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;
*/
com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
/**
*
*
*
* The duration of traveling through the route without taking traffic
* conditions into consideration.
*
*
* .google.protobuf.Duration static_duration = 6;
*
* @return Whether the staticDuration field is set.
*/
boolean hasStaticDuration();
/**
*
*
*
* The duration of traveling through the route without taking traffic
* conditions into consideration.
*
*
* .google.protobuf.Duration static_duration = 6;
*
* @return The staticDuration.
*/
com.google.protobuf.Duration getStaticDuration();
/**
*
*
*
* The duration of traveling through the route without taking traffic
* conditions into consideration.
*
*
* .google.protobuf.Duration static_duration = 6;
*/
com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder();
/**
*
*
*
* Additional information about the route. For example: restriction
* information and toll information
*
*
* .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
*
* @return Whether the travelAdvisory field is set.
*/
boolean hasTravelAdvisory();
/**
*
*
*
* Additional information about the route. For example: restriction
* information and toll information
*
*
* .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
*
* @return The travelAdvisory.
*/
com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory();
/**
*
*
*
* Additional information about the route. For example: restriction
* information and toll information
*
*
* .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
*/
com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder();
/**
*
*
*
* 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;
*
* @return Whether the fallbackInfo field is set.
*/
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;
*
* @return The fallbackInfo.
*/
com.google.maps.routing.v2.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;
*/
com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder();
/**
*
*
*
* Text representations of properties of the `RouteMatrixElement`.
*
*
* .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
*
* @return Whether the localizedValues field is set.
*/
boolean hasLocalizedValues();
/**
*
*
*
* Text representations of properties of the `RouteMatrixElement`.
*
*
* .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
*
* @return The localizedValues.
*/
com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getLocalizedValues();
/**
*
*
*
* Text representations of properties of the `RouteMatrixElement`.
*
*
* .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
*/
com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder
getLocalizedValuesOrBuilder();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy