Debian Codegraph @

maps/places/apiv1/placespb/polyline.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/polyline.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 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // A route polyline. Only supports an [encoded
38 // polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm),
39 // which can be passed as a string and includes compression with minimal
40 // lossiness. This is the Routes API default output.
41 type Polyline struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46 // Encapsulates the type of polyline. Routes API output defaults to
47 // `encoded_polyline`.
48 //
49 // Types that are assignable to PolylineType:
50 //
51 // *Polyline_EncodedPolyline
52 PolylineType isPolyline_PolylineType `protobuf_oneof:"polyline_type"`
53 }
54
55 func (x *Polyline) Reset() {
56 *x = Polyline{}
57 mi := &file_google_maps_places_v1_polyline_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61
62 func (x *Polyline) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*Polyline) ProtoMessage() {}
67
68 func (x *Polyline) ProtoReflect() protoreflect.Message {
69 mi := &file_google_maps_places_v1_polyline_proto_msgTypes[0]
70 if x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80 // Deprecated: Use Polyline.ProtoReflect.Descriptor instead.
81 func (*Polyline) Descriptor() ([]byte, []int) {
82 return file_google_maps_places_v1_polyline_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (m *Polyline) GetPolylineType() isPolyline_PolylineType {
86 if m != nil {
87 return m.PolylineType
88 }
89 return nil
90 }
91
92 func (x *Polyline) GetEncodedPolyline() string {
93 if x, ok := x.GetPolylineType().(*Polyline_EncodedPolyline); ok {
94 return x.EncodedPolyline
95 }
96 return ""
97 }
98
99 type isPolyline_PolylineType interface {
100 isPolyline_PolylineType()
101 }
102
103 type Polyline_EncodedPolyline struct {
104 // An [encoded
105 // polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm),
106 // as returned by the [Routes API by
107 // default](https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding).
108 // See the
109 // [encoder](https://developers.google.com/maps/documentation/utilities/polylineutility)
110 // and
111 // [decoder](https://developers.google.com/maps/documentation/routes/polylinedecoder)
112 // tools.
113 EncodedPolyline string `protobuf:"bytes,1,opt,name=encoded_polyline,json=encodedPolyline,proto3,oneof"`
114 }
115
116 func (*Polyline_EncodedPolyline) isPolyline_PolylineType() {}
117
118 var File_google_maps_places_v1_polyline_proto protoreflect.FileDescriptor
119
120 var file_google_maps_places_v1_polyline_proto_rawDesc = []byte{
121 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
122 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65,
123 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
124 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x48, 0x0a,
125 0x08, 0x50, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x2b, 0x0a, 0x10, 0x65, 0x6e, 0x63,
126 0x6f, 0x64, 0x65, 0x64, 0x5f, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20,
127 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x50, 0x6f,
128 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69,
129 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x9e, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e,
130 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63,
131 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x50, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x50,
132 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
133 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x70, 0x73,
134 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x6c,
135 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0x3b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0xa2,
136 0x02, 0x06, 0x47, 0x4d, 0x50, 0x53, 0x56, 0x31, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
137 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31,
138 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x50,
139 0x6c, 0x61, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
140 }
141
142 var (
143 file_google_maps_places_v1_polyline_proto_rawDescOnce sync.Once
144 file_google_maps_places_v1_polyline_proto_rawDescData = file_google_maps_places_v1_polyline_proto_rawDesc
145 )
146
147 func file_google_maps_places_v1_polyline_proto_rawDescGZIP() []byte {
148 file_google_maps_places_v1_polyline_proto_rawDescOnce.Do(func() {
149 file_google_maps_places_v1_polyline_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_polyline_proto_rawDescData)
150 })
151 return file_google_maps_places_v1_polyline_proto_rawDescData
152 }
153
154 var file_google_maps_places_v1_polyline_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
155 var file_google_maps_places_v1_polyline_proto_goTypes = []any{
156 (*Polyline)(nil), // 0: google.maps.places.v1.Polyline
157 }
158 var file_google_maps_places_v1_polyline_proto_depIdxs = []int32{
159 0, // [0:0] is the sub-list for method output_type
160 0, // [0:0] is the sub-list for method input_type
161 0, // [0:0] is the sub-list for extension type_name
162 0, // [0:0] is the sub-list for extension extendee
163 0, // [0:0] is the sub-list for field type_name
164 }
165
166 func init() { file_google_maps_places_v1_polyline_proto_init() }
167 func file_google_maps_places_v1_polyline_proto_init() {
168 if File_google_maps_places_v1_polyline_proto != nil {
169 return
170 }
171 file_google_maps_places_v1_polyline_proto_msgTypes[0].OneofWrappers = []any{
172 (*Polyline_EncodedPolyline)(nil),
173 }
174 type x struct{}
175 out := protoimpl.TypeBuilder{
176 File: protoimpl.DescBuilder{
177 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
178 RawDescriptor: file_google_maps_places_v1_polyline_proto_rawDesc,
179 NumEnums: 0,
180 NumMessages: 1,
181 NumExtensions: 0,
182 NumServices: 0,
183 },
184 GoTypes: file_google_maps_places_v1_polyline_proto_goTypes,
185 DependencyIndexes: file_google_maps_places_v1_polyline_proto_depIdxs,
186 MessageInfos: file_google_maps_places_v1_polyline_proto_msgTypes,
187 }.Build()
188 File_google_maps_places_v1_polyline_proto = out.File
189 file_google_maps_places_v1_polyline_proto_rawDesc = nil
190 file_google_maps_places_v1_polyline_proto_goTypes = nil
191 file_google_maps_places_v1_polyline_proto_depIdxs = nil
192 }