1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package latlng
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
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39
40
41
42
43 type LatLng struct {
44 state protoimpl.MessageState
45 sizeCache protoimpl.SizeCache
46 unknownFields protoimpl.UnknownFields
47
48
49 Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
50
51 Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
52 }
53
54 func (x *LatLng) Reset() {
55 *x = LatLng{}
56 if protoimpl.UnsafeEnabled {
57 mi := &file_google_type_latlng_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61 }
62
63 func (x *LatLng) String() string {
64 return protoimpl.X.MessageStringOf(x)
65 }
66
67 func (*LatLng) ProtoMessage() {}
68
69 func (x *LatLng) ProtoReflect() protoreflect.Message {
70 mi := &file_google_type_latlng_proto_msgTypes[0]
71 if protoimpl.UnsafeEnabled && x != nil {
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 if ms.LoadMessageInfo() == nil {
74 ms.StoreMessageInfo(mi)
75 }
76 return ms
77 }
78 return mi.MessageOf(x)
79 }
80
81
82 func (*LatLng) Descriptor() ([]byte, []int) {
83 return file_google_type_latlng_proto_rawDescGZIP(), []int{0}
84 }
85
86 func (x *LatLng) GetLatitude() float64 {
87 if x != nil {
88 return x.Latitude
89 }
90 return 0
91 }
92
93 func (x *LatLng) GetLongitude() float64 {
94 if x != nil {
95 return x.Longitude
96 }
97 return 0
98 }
99
100 var File_google_type_latlng_proto protoreflect.FileDescriptor
101
102 var file_google_type_latlng_proto_rawDesc = []byte{
103 0x0a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c, 0x61,
104 0x74, 0x6c, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f, 0x6f, 0x67,
105 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x42, 0x0a, 0x06, 0x4c, 0x61, 0x74, 0x4c, 0x6e,
106 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20,
107 0x01, 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a,
108 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01,
109 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x42, 0x63, 0x0a, 0x0f, 0x63,
110 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0b,
111 0x4c, 0x61, 0x74, 0x4c, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x67,
112 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
113 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
114 0x61, 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c, 0x61, 0x74, 0x6c, 0x6e, 0x67,
115 0x3b, 0x6c, 0x61, 0x74, 0x6c, 0x6e, 0x67, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x54, 0x50,
116 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
117 }
118
119 var (
120 file_google_type_latlng_proto_rawDescOnce sync.Once
121 file_google_type_latlng_proto_rawDescData = file_google_type_latlng_proto_rawDesc
122 )
123
124 func file_google_type_latlng_proto_rawDescGZIP() []byte {
125 file_google_type_latlng_proto_rawDescOnce.Do(func() {
126 file_google_type_latlng_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_latlng_proto_rawDescData)
127 })
128 return file_google_type_latlng_proto_rawDescData
129 }
130
131 var file_google_type_latlng_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
132 var file_google_type_latlng_proto_goTypes = []interface{}{
133 (*LatLng)(nil),
134 }
135 var file_google_type_latlng_proto_depIdxs = []int32{
136 0,
137 0,
138 0,
139 0,
140 0,
141 }
142
143 func init() { file_google_type_latlng_proto_init() }
144 func file_google_type_latlng_proto_init() {
145 if File_google_type_latlng_proto != nil {
146 return
147 }
148 if !protoimpl.UnsafeEnabled {
149 file_google_type_latlng_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
150 switch v := v.(*LatLng); i {
151 case 0:
152 return &v.state
153 case 1:
154 return &v.sizeCache
155 case 2:
156 return &v.unknownFields
157 default:
158 return nil
159 }
160 }
161 }
162 type x struct{}
163 out := protoimpl.TypeBuilder{
164 File: protoimpl.DescBuilder{
165 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
166 RawDescriptor: file_google_type_latlng_proto_rawDesc,
167 NumEnums: 0,
168 NumMessages: 1,
169 NumExtensions: 0,
170 NumServices: 0,
171 },
172 GoTypes: file_google_type_latlng_proto_goTypes,
173 DependencyIndexes: file_google_type_latlng_proto_depIdxs,
174 MessageInfos: file_google_type_latlng_proto_msgTypes,
175 }.Build()
176 File_google_type_latlng_proto = out.File
177 file_google_type_latlng_proto_rawDesc = nil
178 file_google_type_latlng_proto_goTypes = nil
179 file_google_type_latlng_proto_depIdxs = nil
180 }
181
View as plain text