Debian Codegraph @

googleapis/maps/routes/v1/custom_route.pb.go

raw symbols SCIP
1 // Copyright 2022 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/custom_route.proto
20
21 package routes
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Encapsulates a custom route computed based on the route objective specified
39 // by the customer. CustomRoute contains a route and a route token, which can be
40 // passed to NavSDK to reconstruct the custom route for turn by turn navigation.
41 type CustomRoute struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46 // The route considered 'best' for the input route objective.
47 Route *Route `protobuf:"bytes,11,opt,name=route,proto3" json:"route,omitempty"`
48 // Web-safe base64 encoded route token that can be passed to NavSDK, which
49 // allows NavSDK to reconstruct the route during navigation, and in the event
50 // of rerouting honor the original intention when RoutesPreferred
51 // ComputeCustomRoutes is called. Customers should treat this token as an
52 // opaque blob.
53 Token string `protobuf:"bytes,12,opt,name=token,proto3" json:"token,omitempty"`
54 }
55
56 func (x *CustomRoute) Reset() {
57 *x = CustomRoute{}
58 if protoimpl.UnsafeEnabled {
59 mi := &file_google_maps_routes_v1_custom_route_proto_msgTypes[0]
60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
61 ms.StoreMessageInfo(mi)
62 }
63 }
64
65 func (x *CustomRoute) String() string {
66 return protoimpl.X.MessageStringOf(x)
67 }
68
69 func (*CustomRoute) ProtoMessage() {}
70
71 func (x *CustomRoute) ProtoReflect() protoreflect.Message {
72 mi := &file_google_maps_routes_v1_custom_route_proto_msgTypes[0]
73 if protoimpl.UnsafeEnabled && x != nil {
74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75 if ms.LoadMessageInfo() == nil {
76 ms.StoreMessageInfo(mi)
77 }
78 return ms
79 }
80 return mi.MessageOf(x)
81 }
82
83 // Deprecated: Use CustomRoute.ProtoReflect.Descriptor instead.
84 func (*CustomRoute) Descriptor() ([]byte, []int) {
85 return file_google_maps_routes_v1_custom_route_proto_rawDescGZIP(), []int{0}
86 }
87
88 func (x *CustomRoute) GetRoute() *Route {
89 if x != nil {
90 return x.Route
91 }
92 return nil
93 }
94
95 func (x *CustomRoute) GetToken() string {
96 if x != nil {
97 return x.Token
98 }
99 return ""
100 }
101
102 var File_google_maps_routes_v1_custom_route_proto protoreflect.FileDescriptor
103
104 var file_google_maps_routes_v1_custom_route_proto_rawDesc = []byte{
105 0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f,
106 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x72,
107 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67,
108 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76,
109 0x31, 0x1a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72,
110 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70,
111 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x0b, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f,
112 0x75, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01,
113 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73,
114 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65,
115 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
116 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0xa6, 0x01,
117 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70,
118 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x43, 0x75, 0x73,
119 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
120 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
121 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
122 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74,
123 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0xf8, 0x01, 0x01, 0xa2,
124 0x02, 0x04, 0x47, 0x4d, 0x52, 0x53, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
125 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02,
126 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x52, 0x6f, 0x75,
127 0x74, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
128 }
129
130 var (
131 file_google_maps_routes_v1_custom_route_proto_rawDescOnce sync.Once
132 file_google_maps_routes_v1_custom_route_proto_rawDescData = file_google_maps_routes_v1_custom_route_proto_rawDesc
133 )
134
135 func file_google_maps_routes_v1_custom_route_proto_rawDescGZIP() []byte {
136 file_google_maps_routes_v1_custom_route_proto_rawDescOnce.Do(func() {
137 file_google_maps_routes_v1_custom_route_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_routes_v1_custom_route_proto_rawDescData)
138 })
139 return file_google_maps_routes_v1_custom_route_proto_rawDescData
140 }
141
142 var file_google_maps_routes_v1_custom_route_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
143 var file_google_maps_routes_v1_custom_route_proto_goTypes = []interface{}{
144 (*CustomRoute)(nil), // 0: google.maps.routes.v1.CustomRoute
145 (*Route)(nil), // 1: google.maps.routes.v1.Route
146 }
147 var file_google_maps_routes_v1_custom_route_proto_depIdxs = []int32{
148 1, // 0: google.maps.routes.v1.CustomRoute.route:type_name -> google.maps.routes.v1.Route
149 1, // [1:1] is the sub-list for method output_type
150 1, // [1:1] is the sub-list for method input_type
151 1, // [1:1] is the sub-list for extension type_name
152 1, // [1:1] is the sub-list for extension extendee
153 0, // [0:1] is the sub-list for field type_name
154 }
155
156 func init() { file_google_maps_routes_v1_custom_route_proto_init() }
157 func file_google_maps_routes_v1_custom_route_proto_init() {
158 if File_google_maps_routes_v1_custom_route_proto != nil {
159 return
160 }
161 file_google_maps_routes_v1_route_proto_init()
162 if !protoimpl.UnsafeEnabled {
163 file_google_maps_routes_v1_custom_route_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
164 switch v := v.(*CustomRoute); i {
165 case 0:
166 return &v.state
167 case 1:
168 return &v.sizeCache
169 case 2:
170 return &v.unknownFields
171 default:
172 return nil
173 }
174 }
175 }
176 type x struct{}
177 out := protoimpl.TypeBuilder{
178 File: protoimpl.DescBuilder{
179 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
180 RawDescriptor: file_google_maps_routes_v1_custom_route_proto_rawDesc,
181 NumEnums: 0,
182 NumMessages: 1,
183 NumExtensions: 0,
184 NumServices: 0,
185 },
186 GoTypes: file_google_maps_routes_v1_custom_route_proto_goTypes,
187 DependencyIndexes: file_google_maps_routes_v1_custom_route_proto_depIdxs,
188 MessageInfos: file_google_maps_routes_v1_custom_route_proto_msgTypes,
189 }.Build()
190 File_google_maps_routes_v1_custom_route_proto = out.File
191 file_google_maps_routes_v1_custom_route_proto_rawDesc = nil
192 file_google_maps_routes_v1_custom_route_proto_goTypes = nil
193 file_google_maps_routes_v1_custom_route_proto_depIdxs = nil
194 }