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