• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/maps/routing/v2/route_modifiers.proto
18 
19 package com.google.maps.routing.v2;
20 
21 public interface RouteModifiersOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteModifiers)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Specifies whether to avoid toll roads where reasonable. Preference will be
31    * given to routes not containing toll roads. Applies only to the `DRIVE` and
32    * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
33    * </pre>
34    *
35    * <code>bool avoid_tolls = 1;</code>
36    *
37    * @return The avoidTolls.
38    */
getAvoidTolls()39   boolean getAvoidTolls();
40 
41   /**
42    *
43    *
44    * <pre>
45    * Specifies whether to avoid highways where reasonable. Preference will be
46    * given to routes not containing highways. Applies only to the `DRIVE` and
47    * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
48    * </pre>
49    *
50    * <code>bool avoid_highways = 2;</code>
51    *
52    * @return The avoidHighways.
53    */
getAvoidHighways()54   boolean getAvoidHighways();
55 
56   /**
57    *
58    *
59    * <pre>
60    * Specifies whether to avoid ferries where reasonable. Preference will be
61    * given to routes not containing travel by ferries.
62    * Applies only to the `DRIVE` and`TWO_WHEELER`
63    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
64    * </pre>
65    *
66    * <code>bool avoid_ferries = 3;</code>
67    *
68    * @return The avoidFerries.
69    */
getAvoidFerries()70   boolean getAvoidFerries();
71 
72   /**
73    *
74    *
75    * <pre>
76    * Specifies whether to avoid navigating indoors where reasonable. Preference
77    * will be given to routes not containing indoor navigation.
78    * Applies only to the `WALK`
79    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
80    * </pre>
81    *
82    * <code>bool avoid_indoor = 4;</code>
83    *
84    * @return The avoidIndoor.
85    */
getAvoidIndoor()86   boolean getAvoidIndoor();
87 
88   /**
89    *
90    *
91    * <pre>
92    * Specifies the vehicle information.
93    * </pre>
94    *
95    * <code>.google.maps.routing.v2.VehicleInfo vehicle_info = 5;</code>
96    *
97    * @return Whether the vehicleInfo field is set.
98    */
hasVehicleInfo()99   boolean hasVehicleInfo();
100   /**
101    *
102    *
103    * <pre>
104    * Specifies the vehicle information.
105    * </pre>
106    *
107    * <code>.google.maps.routing.v2.VehicleInfo vehicle_info = 5;</code>
108    *
109    * @return The vehicleInfo.
110    */
getVehicleInfo()111   com.google.maps.routing.v2.VehicleInfo getVehicleInfo();
112   /**
113    *
114    *
115    * <pre>
116    * Specifies the vehicle information.
117    * </pre>
118    *
119    * <code>.google.maps.routing.v2.VehicleInfo vehicle_info = 5;</code>
120    */
getVehicleInfoOrBuilder()121   com.google.maps.routing.v2.VehicleInfoOrBuilder getVehicleInfoOrBuilder();
122 
123   /**
124    *
125    *
126    * <pre>
127    * Encapsulates information about toll passes.
128    * If toll passes are provided, the API tries to return the pass price. If
129    * toll passes are not provided, the API treats the toll pass as unknown and
130    * tries to return the cash price.
131    * Applies only to the `DRIVE` and `TWO_WHEELER`
132    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
133    * </pre>
134    *
135    * <code>repeated .google.maps.routing.v2.TollPass toll_passes = 6;</code>
136    *
137    * @return A list containing the tollPasses.
138    */
getTollPassesList()139   java.util.List<com.google.maps.routing.v2.TollPass> getTollPassesList();
140   /**
141    *
142    *
143    * <pre>
144    * Encapsulates information about toll passes.
145    * If toll passes are provided, the API tries to return the pass price. If
146    * toll passes are not provided, the API treats the toll pass as unknown and
147    * tries to return the cash price.
148    * Applies only to the `DRIVE` and `TWO_WHEELER`
149    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
150    * </pre>
151    *
152    * <code>repeated .google.maps.routing.v2.TollPass toll_passes = 6;</code>
153    *
154    * @return The count of tollPasses.
155    */
getTollPassesCount()156   int getTollPassesCount();
157   /**
158    *
159    *
160    * <pre>
161    * Encapsulates information about toll passes.
162    * If toll passes are provided, the API tries to return the pass price. If
163    * toll passes are not provided, the API treats the toll pass as unknown and
164    * tries to return the cash price.
165    * Applies only to the `DRIVE` and `TWO_WHEELER`
166    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
167    * </pre>
168    *
169    * <code>repeated .google.maps.routing.v2.TollPass toll_passes = 6;</code>
170    *
171    * @param index The index of the element to return.
172    * @return The tollPasses at the given index.
173    */
getTollPasses(int index)174   com.google.maps.routing.v2.TollPass getTollPasses(int index);
175   /**
176    *
177    *
178    * <pre>
179    * Encapsulates information about toll passes.
180    * If toll passes are provided, the API tries to return the pass price. If
181    * toll passes are not provided, the API treats the toll pass as unknown and
182    * tries to return the cash price.
183    * Applies only to the `DRIVE` and `TWO_WHEELER`
184    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
185    * </pre>
186    *
187    * <code>repeated .google.maps.routing.v2.TollPass toll_passes = 6;</code>
188    *
189    * @return A list containing the enum numeric values on the wire for tollPasses.
190    */
getTollPassesValueList()191   java.util.List<java.lang.Integer> getTollPassesValueList();
192   /**
193    *
194    *
195    * <pre>
196    * Encapsulates information about toll passes.
197    * If toll passes are provided, the API tries to return the pass price. If
198    * toll passes are not provided, the API treats the toll pass as unknown and
199    * tries to return the cash price.
200    * Applies only to the `DRIVE` and `TWO_WHEELER`
201    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
202    * </pre>
203    *
204    * <code>repeated .google.maps.routing.v2.TollPass toll_passes = 6;</code>
205    *
206    * @param index The index of the value to return.
207    * @return The enum numeric value on the wire of tollPasses at the given index.
208    */
getTollPassesValue(int index)209   int getTollPassesValue(int index);
210 }
211