1// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.26.0
18// 	protoc        v3.12.2
19// source: google/maps/routes/v1/compute_custom_routes_request.proto
20
21package routes
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	_ "google.golang.org/genproto/googleapis/api/annotations"
28	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
31)
32
33const (
34	// Verify that this generated code is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36	// Verify that runtime/protoimpl is sufficiently up-to-date.
37	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38)
39
40// ComputeCustomRoutes request message.
41type ComputeCustomRoutesRequest struct {
42	state         protoimpl.MessageState
43	sizeCache     protoimpl.SizeCache
44	unknownFields protoimpl.UnknownFields
45
46	// Required. Origin waypoint.
47	Origin *Waypoint `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
48	// Required. Destination waypoint.
49	Destination *Waypoint `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
50	// Optional. A set of waypoints along the route (excluding terminal points), for either
51	// stopping at or passing by. Up to 25 intermediate waypoints are supported.
52	// Intermediates are not supported in ComputeCustomRoutes Alpha.
53	Intermediates []*Waypoint `protobuf:"bytes,3,rep,name=intermediates,proto3" json:"intermediates,omitempty"`
54	// Optional. Specifies the mode of transportation. Only DRIVE is supported in
55	// ComputeCustomRoutes Alpha.
56	TravelMode RouteTravelMode `protobuf:"varint,4,opt,name=travel_mode,json=travelMode,proto3,enum=google.maps.routes.v1.RouteTravelMode" json:"travel_mode,omitempty"`
57	// Optional. Specifies how to compute the route. The server attempts to use the selected
58	// routing preference to compute the route. If the routing preference results
59	// in an error or an extra long latency, then an error is returned. In the
60	// future, we might implement a fallback mechanism to use a different option
61	// when the preferred option does not give a valid result. You can specify
62	// this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`,
63	// otherwise the request fails.
64	RoutingPreference RoutingPreference `protobuf:"varint,5,opt,name=routing_preference,json=routingPreference,proto3,enum=google.maps.routes.v1.RoutingPreference" json:"routing_preference,omitempty"`
65	// Optional. Specifies your preference for the quality of the polyline.
66	PolylineQuality PolylineQuality `protobuf:"varint,6,opt,name=polyline_quality,json=polylineQuality,proto3,enum=google.maps.routes.v1.PolylineQuality" json:"polyline_quality,omitempty"`
67	// Optional. Specifies the preferred encoding for the polyline.
68	PolylineEncoding PolylineEncoding `protobuf:"varint,13,opt,name=polyline_encoding,json=polylineEncoding,proto3,enum=google.maps.routes.v1.PolylineEncoding" json:"polyline_encoding,omitempty"`
69	// Optional. The departure time. If you don't set this value, then this value
70	// defaults to the time that you made the request. If you set this value to a
71	// time that has already occurred, then the request fails.
72	DepartureTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"`
73	// Optional. A set of conditions to satisfy that affect the way routes are calculated.
74	RouteModifiers *RouteModifiers `protobuf:"bytes,11,opt,name=route_modifiers,json=routeModifiers,proto3" json:"route_modifiers,omitempty"`
75	// Required. A route objective to optimize for.
76	RouteObjective *RouteObjective `protobuf:"bytes,12,opt,name=route_objective,json=routeObjective,proto3" json:"route_objective,omitempty"`
77	// Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
78	// information, see
79	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
80	// [Language Support](https://developers.google.com/maps/faq#languagesupport)
81	// for the list of supported languages. When you don't provide this value, the
82	// display language is inferred from the location of the route request.
83	LanguageCode string `protobuf:"bytes,9,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
84	// Optional. Specifies the units of measure for the display fields. This includes the
85	// `instruction` field in `NavigationInstruction`. The units of measure used
86	// for the route, leg, step distance, and duration are not affected by this
87	// value. If you don't provide this value, then the display units are inferred
88	// from the location of the request.
89	Units Units `protobuf:"varint,10,opt,name=units,proto3,enum=google.maps.routes.v1.Units" json:"units,omitempty"`
90}
91
92func (x *ComputeCustomRoutesRequest) Reset() {
93	*x = ComputeCustomRoutesRequest{}
94	if protoimpl.UnsafeEnabled {
95		mi := &file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[0]
96		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
97		ms.StoreMessageInfo(mi)
98	}
99}
100
101func (x *ComputeCustomRoutesRequest) String() string {
102	return protoimpl.X.MessageStringOf(x)
103}
104
105func (*ComputeCustomRoutesRequest) ProtoMessage() {}
106
107func (x *ComputeCustomRoutesRequest) ProtoReflect() protoreflect.Message {
108	mi := &file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[0]
109	if protoimpl.UnsafeEnabled && x != nil {
110		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111		if ms.LoadMessageInfo() == nil {
112			ms.StoreMessageInfo(mi)
113		}
114		return ms
115	}
116	return mi.MessageOf(x)
117}
118
119// Deprecated: Use ComputeCustomRoutesRequest.ProtoReflect.Descriptor instead.
120func (*ComputeCustomRoutesRequest) Descriptor() ([]byte, []int) {
121	return file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescGZIP(), []int{0}
122}
123
124func (x *ComputeCustomRoutesRequest) GetOrigin() *Waypoint {
125	if x != nil {
126		return x.Origin
127	}
128	return nil
129}
130
131func (x *ComputeCustomRoutesRequest) GetDestination() *Waypoint {
132	if x != nil {
133		return x.Destination
134	}
135	return nil
136}
137
138func (x *ComputeCustomRoutesRequest) GetIntermediates() []*Waypoint {
139	if x != nil {
140		return x.Intermediates
141	}
142	return nil
143}
144
145func (x *ComputeCustomRoutesRequest) GetTravelMode() RouteTravelMode {
146	if x != nil {
147		return x.TravelMode
148	}
149	return RouteTravelMode_TRAVEL_MODE_UNSPECIFIED
150}
151
152func (x *ComputeCustomRoutesRequest) GetRoutingPreference() RoutingPreference {
153	if x != nil {
154		return x.RoutingPreference
155	}
156	return RoutingPreference_ROUTING_PREFERENCE_UNSPECIFIED
157}
158
159func (x *ComputeCustomRoutesRequest) GetPolylineQuality() PolylineQuality {
160	if x != nil {
161		return x.PolylineQuality
162	}
163	return PolylineQuality_POLYLINE_QUALITY_UNSPECIFIED
164}
165
166func (x *ComputeCustomRoutesRequest) GetPolylineEncoding() PolylineEncoding {
167	if x != nil {
168		return x.PolylineEncoding
169	}
170	return PolylineEncoding_POLYLINE_ENCODING_UNSPECIFIED
171}
172
173func (x *ComputeCustomRoutesRequest) GetDepartureTime() *timestamppb.Timestamp {
174	if x != nil {
175		return x.DepartureTime
176	}
177	return nil
178}
179
180func (x *ComputeCustomRoutesRequest) GetRouteModifiers() *RouteModifiers {
181	if x != nil {
182		return x.RouteModifiers
183	}
184	return nil
185}
186
187func (x *ComputeCustomRoutesRequest) GetRouteObjective() *RouteObjective {
188	if x != nil {
189		return x.RouteObjective
190	}
191	return nil
192}
193
194func (x *ComputeCustomRoutesRequest) GetLanguageCode() string {
195	if x != nil {
196		return x.LanguageCode
197	}
198	return ""
199}
200
201func (x *ComputeCustomRoutesRequest) GetUnits() Units {
202	if x != nil {
203		return x.Units
204	}
205	return Units_UNITS_UNSPECIFIED
206}
207
208// Encapsulates an objective to optimize for by ComputeCustomRoutes.
209type RouteObjective struct {
210	state         protoimpl.MessageState
211	sizeCache     protoimpl.SizeCache
212	unknownFields protoimpl.UnknownFields
213
214	// The route objective.
215	//
216	// Types that are assignable to Objective:
217	//	*RouteObjective_RateCard_
218	Objective isRouteObjective_Objective `protobuf_oneof:"objective"`
219}
220
221func (x *RouteObjective) Reset() {
222	*x = RouteObjective{}
223	if protoimpl.UnsafeEnabled {
224		mi := &file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[1]
225		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
226		ms.StoreMessageInfo(mi)
227	}
228}
229
230func (x *RouteObjective) String() string {
231	return protoimpl.X.MessageStringOf(x)
232}
233
234func (*RouteObjective) ProtoMessage() {}
235
236func (x *RouteObjective) ProtoReflect() protoreflect.Message {
237	mi := &file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[1]
238	if protoimpl.UnsafeEnabled && x != nil {
239		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
240		if ms.LoadMessageInfo() == nil {
241			ms.StoreMessageInfo(mi)
242		}
243		return ms
244	}
245	return mi.MessageOf(x)
246}
247
248// Deprecated: Use RouteObjective.ProtoReflect.Descriptor instead.
249func (*RouteObjective) Descriptor() ([]byte, []int) {
250	return file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescGZIP(), []int{1}
251}
252
253func (m *RouteObjective) GetObjective() isRouteObjective_Objective {
254	if m != nil {
255		return m.Objective
256	}
257	return nil
258}
259
260func (x *RouteObjective) GetRateCard() *RouteObjective_RateCard {
261	if x, ok := x.GetObjective().(*RouteObjective_RateCard_); ok {
262		return x.RateCard
263	}
264	return nil
265}
266
267type isRouteObjective_Objective interface {
268	isRouteObjective_Objective()
269}
270
271type RouteObjective_RateCard_ struct {
272	// The RateCard objective.
273	RateCard *RouteObjective_RateCard `protobuf:"bytes,1,opt,name=rate_card,json=rateCard,proto3,oneof"`
274}
275
276func (*RouteObjective_RateCard_) isRouteObjective_Objective() {}
277
278// Encapsulates a RateCard route objective.
279type RouteObjective_RateCard struct {
280	state         protoimpl.MessageState
281	sizeCache     protoimpl.SizeCache
282	unknownFields protoimpl.UnknownFields
283
284	// Optional. Cost per minute.
285	CostPerMinute *RouteObjective_RateCard_MonetaryCost `protobuf:"bytes,2,opt,name=cost_per_minute,json=costPerMinute,proto3" json:"cost_per_minute,omitempty"`
286	// Optional. Cost per kilometer.
287	CostPerKm *RouteObjective_RateCard_MonetaryCost `protobuf:"bytes,3,opt,name=cost_per_km,json=costPerKm,proto3" json:"cost_per_km,omitempty"`
288	// Optional. Whether to include toll cost in the overall cost.
289	IncludeTolls bool `protobuf:"varint,4,opt,name=include_tolls,json=includeTolls,proto3" json:"include_tolls,omitempty"`
290}
291
292func (x *RouteObjective_RateCard) Reset() {
293	*x = RouteObjective_RateCard{}
294	if protoimpl.UnsafeEnabled {
295		mi := &file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[2]
296		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
297		ms.StoreMessageInfo(mi)
298	}
299}
300
301func (x *RouteObjective_RateCard) String() string {
302	return protoimpl.X.MessageStringOf(x)
303}
304
305func (*RouteObjective_RateCard) ProtoMessage() {}
306
307func (x *RouteObjective_RateCard) ProtoReflect() protoreflect.Message {
308	mi := &file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[2]
309	if protoimpl.UnsafeEnabled && x != nil {
310		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
311		if ms.LoadMessageInfo() == nil {
312			ms.StoreMessageInfo(mi)
313		}
314		return ms
315	}
316	return mi.MessageOf(x)
317}
318
319// Deprecated: Use RouteObjective_RateCard.ProtoReflect.Descriptor instead.
320func (*RouteObjective_RateCard) Descriptor() ([]byte, []int) {
321	return file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescGZIP(), []int{1, 0}
322}
323
324func (x *RouteObjective_RateCard) GetCostPerMinute() *RouteObjective_RateCard_MonetaryCost {
325	if x != nil {
326		return x.CostPerMinute
327	}
328	return nil
329}
330
331func (x *RouteObjective_RateCard) GetCostPerKm() *RouteObjective_RateCard_MonetaryCost {
332	if x != nil {
333		return x.CostPerKm
334	}
335	return nil
336}
337
338func (x *RouteObjective_RateCard) GetIncludeTolls() bool {
339	if x != nil {
340		return x.IncludeTolls
341	}
342	return false
343}
344
345// Encapsulates the cost used in the rate card.
346type RouteObjective_RateCard_MonetaryCost struct {
347	state         protoimpl.MessageState
348	sizeCache     protoimpl.SizeCache
349	unknownFields protoimpl.UnknownFields
350
351	// Required. The cost value in local currency inferred from the request.
352	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
353}
354
355func (x *RouteObjective_RateCard_MonetaryCost) Reset() {
356	*x = RouteObjective_RateCard_MonetaryCost{}
357	if protoimpl.UnsafeEnabled {
358		mi := &file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[3]
359		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
360		ms.StoreMessageInfo(mi)
361	}
362}
363
364func (x *RouteObjective_RateCard_MonetaryCost) String() string {
365	return protoimpl.X.MessageStringOf(x)
366}
367
368func (*RouteObjective_RateCard_MonetaryCost) ProtoMessage() {}
369
370func (x *RouteObjective_RateCard_MonetaryCost) ProtoReflect() protoreflect.Message {
371	mi := &file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[3]
372	if protoimpl.UnsafeEnabled && x != nil {
373		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
374		if ms.LoadMessageInfo() == nil {
375			ms.StoreMessageInfo(mi)
376		}
377		return ms
378	}
379	return mi.MessageOf(x)
380}
381
382// Deprecated: Use RouteObjective_RateCard_MonetaryCost.ProtoReflect.Descriptor instead.
383func (*RouteObjective_RateCard_MonetaryCost) Descriptor() ([]byte, []int) {
384	return file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescGZIP(), []int{1, 0, 0}
385}
386
387func (x *RouteObjective_RateCard_MonetaryCost) GetValue() float64 {
388	if x != nil {
389		return x.Value
390	}
391	return 0
392}
393
394var File_google_maps_routes_v1_compute_custom_routes_request_proto protoreflect.FileDescriptor
395
396var file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDesc = []byte{
397	0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f,
398	0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f,
399	0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65,
400	0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f,
401	0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e,
402	0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66,
403	0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72,
404	0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73,
405	0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75,
406	0x74, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
407	0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
408	0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70,
409	0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67,
410	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65,
411	0x73, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x61, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72,
412	0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
413	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
414	0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x07, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
415	0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
416	0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20,
417	0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70,
418	0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x79, 0x70,
419	0x6f, 0x69, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69,
420	0x6e, 0x12, 0x46, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
421	0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
422	0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x57,
423	0x61, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x65,
424	0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x0d, 0x69, 0x6e, 0x74,
425	0x65, 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
426	0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72,
427	0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x79, 0x70, 0x6f, 0x69, 0x6e,
428	0x74, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64,
429	0x69, 0x61, 0x74, 0x65, 0x73, 0x12, 0x4c, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x5f,
430	0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f,
431	0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e,
432	0x76, 0x31, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x4d, 0x6f,
433	0x64, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x74, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x4d,
434	0x6f, 0x64, 0x65, 0x12, 0x5c, 0x0a, 0x12, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70,
435	0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,
436	0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f,
437	0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x50,
438	0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x11,
439	0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
440	0x65, 0x12, 0x56, 0x0a, 0x10, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x71, 0x75,
441	0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f,
442	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73,
443	0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x51, 0x75, 0x61, 0x6c,
444	0x69, 0x74, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69,
445	0x6e, 0x65, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x59, 0x0a, 0x11, 0x70, 0x6f, 0x6c,
446	0x79, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x0d,
447	0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61,
448	0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,
449	0x79, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x03, 0xe0,
450	0x41, 0x01, 0x52, 0x10, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x6e, 0x63, 0x6f,
451	0x64, 0x69, 0x6e, 0x67, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x75, 0x72,
452	0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
453	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
454	0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0d, 0x64,
455	0x65, 0x70, 0x61, 0x72, 0x74, 0x75, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x0f,
456	0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x18,
457	0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
458	0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f,
459	0x75, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x42, 0x03, 0xe0, 0x41,
460	0x01, 0x52, 0x0e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72,
461	0x73, 0x12, 0x53, 0x0a, 0x0f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63,
462	0x74, 0x69, 0x76, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f,
463	0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e,
464	0x76, 0x31, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x76,
465	0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x62, 0x6a,
466	0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61,
467	0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
468	0x41, 0x01, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65,
469	0x12, 0x37, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32,
470	0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f,
471	0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x42, 0x03, 0xe0,
472	0x41, 0x01, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x22, 0x9a, 0x03, 0x0a, 0x0e, 0x52, 0x6f,
473	0x75, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x4d, 0x0a, 0x09,
474	0x72, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
475	0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f,
476	0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x62, 0x6a,
477	0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x64, 0x48,
478	0x00, 0x52, 0x08, 0x72, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x64, 0x1a, 0xab, 0x02, 0x0a, 0x08,
479	0x52, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x64, 0x12, 0x68, 0x0a, 0x0f, 0x63, 0x6f, 0x73, 0x74,
480	0x5f, 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
481	0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e,
482	0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f,
483	0x62, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72,
484	0x64, 0x2e, 0x4d, 0x6f, 0x6e, 0x65, 0x74, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x73, 0x74, 0x42, 0x03,
485	0xe0, 0x41, 0x01, 0x52, 0x0d, 0x63, 0x6f, 0x73, 0x74, 0x50, 0x65, 0x72, 0x4d, 0x69, 0x6e, 0x75,
486	0x74, 0x65, 0x12, 0x60, 0x0a, 0x0b, 0x63, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x6b,
487	0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
488	0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e,
489	0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x52,
490	0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x64, 0x2e, 0x4d, 0x6f, 0x6e, 0x65, 0x74, 0x61, 0x72, 0x79,
491	0x43, 0x6f, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x63, 0x6f, 0x73, 0x74, 0x50,
492	0x65, 0x72, 0x4b, 0x6d, 0x12, 0x28, 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f,
493	0x74, 0x6f, 0x6c, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01,
494	0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x6f, 0x6c, 0x6c, 0x73, 0x1a, 0x29,
495	0x0a, 0x0c, 0x4d, 0x6f, 0x6e, 0x65, 0x74, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x73, 0x74, 0x12, 0x19,
496	0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0,
497	0x41, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x6f, 0x62, 0x6a,
498	0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x42, 0xb5, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
499	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
500	0x73, 0x2e, 0x76, 0x31, 0x42, 0x1f, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x43, 0x75, 0x73,
501	0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
502	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
503	0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
504	0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d,
505	0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x6f,
506	0x75, 0x74, 0x65, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x4d, 0x52, 0x53, 0xaa, 0x02,
507	0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x52, 0x6f, 0x75,
508	0x74, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
509	0x4d, 0x61, 0x70, 0x73, 0x5c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06,
510	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
511}
512
513var (
514	file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescOnce sync.Once
515	file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescData = file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDesc
516)
517
518func file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescGZIP() []byte {
519	file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescOnce.Do(func() {
520		file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescData)
521	})
522	return file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDescData
523}
524
525var file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
526var file_google_maps_routes_v1_compute_custom_routes_request_proto_goTypes = []interface{}{
527	(*ComputeCustomRoutesRequest)(nil),           // 0: google.maps.routes.v1.ComputeCustomRoutesRequest
528	(*RouteObjective)(nil),                       // 1: google.maps.routes.v1.RouteObjective
529	(*RouteObjective_RateCard)(nil),              // 2: google.maps.routes.v1.RouteObjective.RateCard
530	(*RouteObjective_RateCard_MonetaryCost)(nil), // 3: google.maps.routes.v1.RouteObjective.RateCard.MonetaryCost
531	(*Waypoint)(nil),                             // 4: google.maps.routes.v1.Waypoint
532	(RouteTravelMode)(0),                         // 5: google.maps.routes.v1.RouteTravelMode
533	(RoutingPreference)(0),                       // 6: google.maps.routes.v1.RoutingPreference
534	(PolylineQuality)(0),                         // 7: google.maps.routes.v1.PolylineQuality
535	(PolylineEncoding)(0),                        // 8: google.maps.routes.v1.PolylineEncoding
536	(*timestamppb.Timestamp)(nil),                // 9: google.protobuf.Timestamp
537	(*RouteModifiers)(nil),                       // 10: google.maps.routes.v1.RouteModifiers
538	(Units)(0),                                   // 11: google.maps.routes.v1.Units
539}
540var file_google_maps_routes_v1_compute_custom_routes_request_proto_depIdxs = []int32{
541	4,  // 0: google.maps.routes.v1.ComputeCustomRoutesRequest.origin:type_name -> google.maps.routes.v1.Waypoint
542	4,  // 1: google.maps.routes.v1.ComputeCustomRoutesRequest.destination:type_name -> google.maps.routes.v1.Waypoint
543	4,  // 2: google.maps.routes.v1.ComputeCustomRoutesRequest.intermediates:type_name -> google.maps.routes.v1.Waypoint
544	5,  // 3: google.maps.routes.v1.ComputeCustomRoutesRequest.travel_mode:type_name -> google.maps.routes.v1.RouteTravelMode
545	6,  // 4: google.maps.routes.v1.ComputeCustomRoutesRequest.routing_preference:type_name -> google.maps.routes.v1.RoutingPreference
546	7,  // 5: google.maps.routes.v1.ComputeCustomRoutesRequest.polyline_quality:type_name -> google.maps.routes.v1.PolylineQuality
547	8,  // 6: google.maps.routes.v1.ComputeCustomRoutesRequest.polyline_encoding:type_name -> google.maps.routes.v1.PolylineEncoding
548	9,  // 7: google.maps.routes.v1.ComputeCustomRoutesRequest.departure_time:type_name -> google.protobuf.Timestamp
549	10, // 8: google.maps.routes.v1.ComputeCustomRoutesRequest.route_modifiers:type_name -> google.maps.routes.v1.RouteModifiers
550	1,  // 9: google.maps.routes.v1.ComputeCustomRoutesRequest.route_objective:type_name -> google.maps.routes.v1.RouteObjective
551	11, // 10: google.maps.routes.v1.ComputeCustomRoutesRequest.units:type_name -> google.maps.routes.v1.Units
552	2,  // 11: google.maps.routes.v1.RouteObjective.rate_card:type_name -> google.maps.routes.v1.RouteObjective.RateCard
553	3,  // 12: google.maps.routes.v1.RouteObjective.RateCard.cost_per_minute:type_name -> google.maps.routes.v1.RouteObjective.RateCard.MonetaryCost
554	3,  // 13: google.maps.routes.v1.RouteObjective.RateCard.cost_per_km:type_name -> google.maps.routes.v1.RouteObjective.RateCard.MonetaryCost
555	14, // [14:14] is the sub-list for method output_type
556	14, // [14:14] is the sub-list for method input_type
557	14, // [14:14] is the sub-list for extension type_name
558	14, // [14:14] is the sub-list for extension extendee
559	0,  // [0:14] is the sub-list for field type_name
560}
561
562func init() { file_google_maps_routes_v1_compute_custom_routes_request_proto_init() }
563func file_google_maps_routes_v1_compute_custom_routes_request_proto_init() {
564	if File_google_maps_routes_v1_compute_custom_routes_request_proto != nil {
565		return
566	}
567	file_google_maps_routes_v1_compute_routes_request_proto_init()
568	file_google_maps_routes_v1_polyline_proto_init()
569	file_google_maps_routes_v1_waypoint_proto_init()
570	if !protoimpl.UnsafeEnabled {
571		file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
572			switch v := v.(*ComputeCustomRoutesRequest); i {
573			case 0:
574				return &v.state
575			case 1:
576				return &v.sizeCache
577			case 2:
578				return &v.unknownFields
579			default:
580				return nil
581			}
582		}
583		file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
584			switch v := v.(*RouteObjective); i {
585			case 0:
586				return &v.state
587			case 1:
588				return &v.sizeCache
589			case 2:
590				return &v.unknownFields
591			default:
592				return nil
593			}
594		}
595		file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
596			switch v := v.(*RouteObjective_RateCard); i {
597			case 0:
598				return &v.state
599			case 1:
600				return &v.sizeCache
601			case 2:
602				return &v.unknownFields
603			default:
604				return nil
605			}
606		}
607		file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
608			switch v := v.(*RouteObjective_RateCard_MonetaryCost); i {
609			case 0:
610				return &v.state
611			case 1:
612				return &v.sizeCache
613			case 2:
614				return &v.unknownFields
615			default:
616				return nil
617			}
618		}
619	}
620	file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes[1].OneofWrappers = []interface{}{
621		(*RouteObjective_RateCard_)(nil),
622	}
623	type x struct{}
624	out := protoimpl.TypeBuilder{
625		File: protoimpl.DescBuilder{
626			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
627			RawDescriptor: file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDesc,
628			NumEnums:      0,
629			NumMessages:   4,
630			NumExtensions: 0,
631			NumServices:   0,
632		},
633		GoTypes:           file_google_maps_routes_v1_compute_custom_routes_request_proto_goTypes,
634		DependencyIndexes: file_google_maps_routes_v1_compute_custom_routes_request_proto_depIdxs,
635		MessageInfos:      file_google_maps_routes_v1_compute_custom_routes_request_proto_msgTypes,
636	}.Build()
637	File_google_maps_routes_v1_compute_custom_routes_request_proto = out.File
638	file_google_maps_routes_v1_compute_custom_routes_request_proto_rawDesc = nil
639	file_google_maps_routes_v1_compute_custom_routes_request_proto_goTypes = nil
640	file_google_maps_routes_v1_compute_custom_routes_request_proto_depIdxs = nil
641}
642