Debian Codegraph @

maps/places/apiv1/placespb/geometry.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/geometry.proto
20
21 package placespb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 latlng "google.golang.org/genproto/googleapis/type/latlng"
26 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
27 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // Circle with a LatLng as center and radius.
40 type Circle struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // Required. Center latitude and longitude.
46 //
47 // The range of latitude must be within [-90.0, 90.0]. The range of the
48 // longitude must be within [-180.0, 180.0].
49 Center *latlng.LatLng `protobuf:"bytes,1,opt,name=center,proto3" json:"center,omitempty"`
50 // Required. Radius measured in meters. The radius must be within [0.0,
51 // 50000.0].
52 Radius float64 `protobuf:"fixed64,2,opt,name=radius,proto3" json:"radius,omitempty"`
53 }
54
55 func (x *Circle) Reset() {
56 *x = Circle{}
57 mi := &file_google_maps_places_v1_geometry_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61
62 func (x *Circle) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*Circle) ProtoMessage() {}
67
68 func (x *Circle) ProtoReflect() protoreflect.Message {
69 mi := &file_google_maps_places_v1_geometry_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 Circle.ProtoReflect.Descriptor instead.
81 func (*Circle) Descriptor() ([]byte, []int) {
82 return file_google_maps_places_v1_geometry_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *Circle) GetCenter() *latlng.LatLng {
86 if x != nil {
87 return x.Center
88 }
89 return nil
90 }
91
92 func (x *Circle) GetRadius() float64 {
93 if x != nil {
94 return x.Radius
95 }
96 return 0
97 }
98
99 var File_google_maps_places_v1_geometry_proto protoreflect.FileDescriptor
100
101 var file_google_maps_places_v1_geometry_proto_rawDesc = []byte{
102 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
103 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79,
104 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
105 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67,
106 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
107 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18,
108 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c, 0x61, 0x74, 0x6c,
109 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x06, 0x43, 0x69, 0x72, 0x63,
110 0x6c, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
111 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65,
112 0x2e, 0x4c, 0x61, 0x74, 0x4c, 0x6e, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x63, 0x65,
113 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x06, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x18, 0x02,
114 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x72, 0x61, 0x64, 0x69, 0x75,
115 0x73, 0x42, 0x9e, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
116 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42,
117 0x0d, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
118 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
119 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65,
120 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62,
121 0x3b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47, 0x4d, 0x50, 0x53,
122 0x56, 0x31, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73,
123 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f,
124 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x5c,
125 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
126 }
127
128 var (
129 file_google_maps_places_v1_geometry_proto_rawDescOnce sync.Once
130 file_google_maps_places_v1_geometry_proto_rawDescData = file_google_maps_places_v1_geometry_proto_rawDesc
131 )
132
133 func file_google_maps_places_v1_geometry_proto_rawDescGZIP() []byte {
134 file_google_maps_places_v1_geometry_proto_rawDescOnce.Do(func() {
135 file_google_maps_places_v1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_geometry_proto_rawDescData)
136 })
137 return file_google_maps_places_v1_geometry_proto_rawDescData
138 }
139
140 var file_google_maps_places_v1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
141 var file_google_maps_places_v1_geometry_proto_goTypes = []any{
142 (*Circle)(nil), // 0: google.maps.places.v1.Circle
143 (*latlng.LatLng)(nil), // 1: google.type.LatLng
144 }
145 var file_google_maps_places_v1_geometry_proto_depIdxs = []int32{
146 1, // 0: google.maps.places.v1.Circle.center:type_name -> google.type.LatLng
147 1, // [1:1] is the sub-list for method output_type
148 1, // [1:1] is the sub-list for method input_type
149 1, // [1:1] is the sub-list for extension type_name
150 1, // [1:1] is the sub-list for extension extendee
151 0, // [0:1] is the sub-list for field type_name
152 }
153
154 func init() { file_google_maps_places_v1_geometry_proto_init() }
155 func file_google_maps_places_v1_geometry_proto_init() {
156 if File_google_maps_places_v1_geometry_proto != nil {
157 return
158 }
159 type x struct{}
160 out := protoimpl.TypeBuilder{
161 File: protoimpl.DescBuilder{
162 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
163 RawDescriptor: file_google_maps_places_v1_geometry_proto_rawDesc,
164 NumEnums: 0,
165 NumMessages: 1,
166 NumExtensions: 0,
167 NumServices: 0,
168 },
169 GoTypes: file_google_maps_places_v1_geometry_proto_goTypes,
170 DependencyIndexes: file_google_maps_places_v1_geometry_proto_depIdxs,
171 MessageInfos: file_google_maps_places_v1_geometry_proto_msgTypes,
172 }.Build()
173 File_google_maps_places_v1_geometry_proto = out.File
174 file_google_maps_places_v1_geometry_proto_rawDesc = nil
175 file_google_maps_places_v1_geometry_proto_goTypes = nil
176 file_google_maps_places_v1_geometry_proto_depIdxs = nil
177 }