Debian Codegraph @

maps/places/apiv1/placespb/routing_summary.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/maps/places/v1/routing_summary.proto
20
21 package placespb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 durationpb "google.golang.org/protobuf/types/known/durationpb"
27 reflect "reflect"
28 sync "sync"
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 // The duration and distance from the routing origin to a place in the
39 // response, and a second leg from that place to the destination, if requested.
40 // **Note:** Adding `routingSummaries` in the field mask without also including
41 // either the `routingParameters.origin` parameter or the
42 // `searchAlongRouteParameters.polyline.encodedPolyline` parameter in the
43 // request causes an error.
44 type RoutingSummary struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // The legs of the trip.
50 //
51 // When you calculate travel duration and distance from a set origin, `legs`
52 // contains a single leg containing the duration and distance from the origin
53 // to the destination. When you do a search along route, `legs` contains two
54 // legs: one from the origin to place, and one from the place to the
55 // destination.
56 Legs []*RoutingSummary_Leg `protobuf:"bytes,1,rep,name=legs,proto3" json:"legs,omitempty"`
57 // A link to show directions on Google Maps using the waypoints from the given
58 // routing summary. The route generated by this link is not guaranteed to be
59 // the same as the route used to generate the routing summary.
60 // The link uses information provided in the request, from fields including
61 // `routingParameters` and `searchAlongRouteParameters` when applicable, to
62 // generate the directions link.
63 DirectionsUri string `protobuf:"bytes,2,opt,name=directions_uri,json=directionsUri,proto3" json:"directions_uri,omitempty"`
64 }
65
66 func (x *RoutingSummary) Reset() {
67 *x = RoutingSummary{}
68 mi := &file_google_maps_places_v1_routing_summary_proto_msgTypes[0]
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 ms.StoreMessageInfo(mi)
71 }
72
73 func (x *RoutingSummary) String() string {
74 return protoimpl.X.MessageStringOf(x)
75 }
76
77 func (*RoutingSummary) ProtoMessage() {}
78
79 func (x *RoutingSummary) ProtoReflect() protoreflect.Message {
80 mi := &file_google_maps_places_v1_routing_summary_proto_msgTypes[0]
81 if x != nil {
82 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
83 if ms.LoadMessageInfo() == nil {
84 ms.StoreMessageInfo(mi)
85 }
86 return ms
87 }
88 return mi.MessageOf(x)
89 }
90
91 // Deprecated: Use RoutingSummary.ProtoReflect.Descriptor instead.
92 func (*RoutingSummary) Descriptor() ([]byte, []int) {
93 return file_google_maps_places_v1_routing_summary_proto_rawDescGZIP(), []int{0}
94 }
95
96 func (x *RoutingSummary) GetLegs() []*RoutingSummary_Leg {
97 if x != nil {
98 return x.Legs
99 }
100 return nil
101 }
102
103 func (x *RoutingSummary) GetDirectionsUri() string {
104 if x != nil {
105 return x.DirectionsUri
106 }
107 return ""
108 }
109
110 // A leg is a single portion of a journey from one location to another.
111 type RoutingSummary_Leg struct {
112 state protoimpl.MessageState
113 sizeCache protoimpl.SizeCache
114 unknownFields protoimpl.UnknownFields
115
116 // The time it takes to complete this leg of the trip.
117 Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
118 // The distance of this leg of the trip.
119 DistanceMeters int32 `protobuf:"varint,2,opt,name=distance_meters,json=distanceMeters,proto3" json:"distance_meters,omitempty"`
120 }
121
122 func (x *RoutingSummary_Leg) Reset() {
123 *x = RoutingSummary_Leg{}
124 mi := &file_google_maps_places_v1_routing_summary_proto_msgTypes[1]
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 ms.StoreMessageInfo(mi)
127 }
128
129 func (x *RoutingSummary_Leg) String() string {
130 return protoimpl.X.MessageStringOf(x)
131 }
132
133 func (*RoutingSummary_Leg) ProtoMessage() {}
134
135 func (x *RoutingSummary_Leg) ProtoReflect() protoreflect.Message {
136 mi := &file_google_maps_places_v1_routing_summary_proto_msgTypes[1]
137 if x != nil {
138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
139 if ms.LoadMessageInfo() == nil {
140 ms.StoreMessageInfo(mi)
141 }
142 return ms
143 }
144 return mi.MessageOf(x)
145 }
146
147 // Deprecated: Use RoutingSummary_Leg.ProtoReflect.Descriptor instead.
148 func (*RoutingSummary_Leg) Descriptor() ([]byte, []int) {
149 return file_google_maps_places_v1_routing_summary_proto_rawDescGZIP(), []int{0, 0}
150 }
151
152 func (x *RoutingSummary_Leg) GetDuration() *durationpb.Duration {
153 if x != nil {
154 return x.Duration
155 }
156 return nil
157 }
158
159 func (x *RoutingSummary_Leg) GetDistanceMeters() int32 {
160 if x != nil {
161 return x.DistanceMeters
162 }
163 return 0
164 }
165
166 var File_google_maps_places_v1_routing_summary_proto protoreflect.FileDescriptor
167
168 var file_google_maps_places_v1_routing_summary_proto_rawDesc = []byte{
169 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
170 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f,
171 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67,
172 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65,
173 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
174 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70,
175 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x01, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67,
176 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x04, 0x6c, 0x65, 0x67, 0x73, 0x18,
177 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
178 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f,
179 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x2e, 0x4c, 0x65, 0x67,
180 0x52, 0x04, 0x6c, 0x65, 0x67, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
181 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
182 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x55, 0x72, 0x69, 0x1a, 0x65, 0x0a,
183 0x03, 0x4c, 0x65, 0x67, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
184 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
185 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
186 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x64,
187 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02,
188 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x65,
189 0x74, 0x65, 0x72, 0x73, 0x42, 0xa4, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
190 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e,
191 0x76, 0x31, 0x42, 0x13, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x75, 0x6d, 0x6d, 0x61,
192 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64,
193 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d,
194 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31,
195 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0x3b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73,
196 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47, 0x4d, 0x50, 0x53, 0x56, 0x31, 0xaa, 0x02, 0x15, 0x47, 0x6f,
197 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73,
198 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70,
199 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
200 0x74, 0x6f, 0x33,
201 }
202
203 var (
204 file_google_maps_places_v1_routing_summary_proto_rawDescOnce sync.Once
205 file_google_maps_places_v1_routing_summary_proto_rawDescData = file_google_maps_places_v1_routing_summary_proto_rawDesc
206 )
207
208 func file_google_maps_places_v1_routing_summary_proto_rawDescGZIP() []byte {
209 file_google_maps_places_v1_routing_summary_proto_rawDescOnce.Do(func() {
210 file_google_maps_places_v1_routing_summary_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_routing_summary_proto_rawDescData)
211 })
212 return file_google_maps_places_v1_routing_summary_proto_rawDescData
213 }
214
215 var file_google_maps_places_v1_routing_summary_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
216 var file_google_maps_places_v1_routing_summary_proto_goTypes = []any{
217 (*RoutingSummary)(nil), // 0: google.maps.places.v1.RoutingSummary
218 (*RoutingSummary_Leg)(nil), // 1: google.maps.places.v1.RoutingSummary.Leg
219 (*durationpb.Duration)(nil), // 2: google.protobuf.Duration
220 }
221 var file_google_maps_places_v1_routing_summary_proto_depIdxs = []int32{
222 1, // 0: google.maps.places.v1.RoutingSummary.legs:type_name -> google.maps.places.v1.RoutingSummary.Leg
223 2, // 1: google.maps.places.v1.RoutingSummary.Leg.duration:type_name -> google.protobuf.Duration
224 2, // [2:2] is the sub-list for method output_type
225 2, // [2:2] is the sub-list for method input_type
226 2, // [2:2] is the sub-list for extension type_name
227 2, // [2:2] is the sub-list for extension extendee
228 0, // [0:2] is the sub-list for field type_name
229 }
230
231 func init() { file_google_maps_places_v1_routing_summary_proto_init() }
232 func file_google_maps_places_v1_routing_summary_proto_init() {
233 if File_google_maps_places_v1_routing_summary_proto != nil {
234 return
235 }
236 type x struct{}
237 out := protoimpl.TypeBuilder{
238 File: protoimpl.DescBuilder{
239 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
240 RawDescriptor: file_google_maps_places_v1_routing_summary_proto_rawDesc,
241 NumEnums: 0,
242 NumMessages: 2,
243 NumExtensions: 0,
244 NumServices: 0,
245 },
246 GoTypes: file_google_maps_places_v1_routing_summary_proto_goTypes,
247 DependencyIndexes: file_google_maps_places_v1_routing_summary_proto_depIdxs,
248 MessageInfos: file_google_maps_places_v1_routing_summary_proto_msgTypes,
249 }.Build()
250 File_google_maps_places_v1_routing_summary_proto = out.File
251 file_google_maps_places_v1_routing_summary_proto_rawDesc = nil
252 file_google_maps_places_v1_routing_summary_proto_goTypes = nil
253 file_google_maps_places_v1_routing_summary_proto_depIdxs = nil
254 }