1// Copyright 2020 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.25.0 18// protoc v3.13.0 19// source: google/type/latlng.proto 20 21package latlng 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30) 31 32const ( 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// This is a compile-time assertion that a sufficiently up-to-date version 40// of the legacy proto package is being used. 41const _ = proto.ProtoPackageIsVersion4 42 43// An object that represents a latitude/longitude pair. This is expressed as a 44// pair of doubles to represent degrees latitude and degrees longitude. Unless 45// specified otherwise, this must conform to the 46// <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 47// standard</a>. Values must be within normalized ranges. 48type LatLng struct { 49 state protoimpl.MessageState 50 sizeCache protoimpl.SizeCache 51 unknownFields protoimpl.UnknownFields 52 53 // The latitude in degrees. It must be in the range [-90.0, +90.0]. 54 Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"` 55 // The longitude in degrees. It must be in the range [-180.0, +180.0]. 56 Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"` 57} 58 59func (x *LatLng) Reset() { 60 *x = LatLng{} 61 if protoimpl.UnsafeEnabled { 62 mi := &file_google_type_latlng_proto_msgTypes[0] 63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 64 ms.StoreMessageInfo(mi) 65 } 66} 67 68func (x *LatLng) String() string { 69 return protoimpl.X.MessageStringOf(x) 70} 71 72func (*LatLng) ProtoMessage() {} 73 74func (x *LatLng) ProtoReflect() protoreflect.Message { 75 mi := &file_google_type_latlng_proto_msgTypes[0] 76 if protoimpl.UnsafeEnabled && x != nil { 77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 78 if ms.LoadMessageInfo() == nil { 79 ms.StoreMessageInfo(mi) 80 } 81 return ms 82 } 83 return mi.MessageOf(x) 84} 85 86// Deprecated: Use LatLng.ProtoReflect.Descriptor instead. 87func (*LatLng) Descriptor() ([]byte, []int) { 88 return file_google_type_latlng_proto_rawDescGZIP(), []int{0} 89} 90 91func (x *LatLng) GetLatitude() float64 { 92 if x != nil { 93 return x.Latitude 94 } 95 return 0 96} 97 98func (x *LatLng) GetLongitude() float64 { 99 if x != nil { 100 return x.Longitude 101 } 102 return 0 103} 104 105var File_google_type_latlng_proto protoreflect.FileDescriptor 106 107var file_google_type_latlng_proto_rawDesc = []byte{ 108 0x0a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c, 0x61, 109 0x74, 0x6c, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f, 0x6f, 0x67, 110 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x42, 0x0a, 0x06, 0x4c, 0x61, 0x74, 0x4c, 0x6e, 111 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 112 0x01, 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 113 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 114 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x42, 0x63, 0x0a, 0x0f, 0x63, 115 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0b, 116 0x4c, 0x61, 0x74, 0x4c, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x67, 117 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 118 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 119 0x61, 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c, 0x61, 0x74, 0x6c, 0x6e, 0x67, 120 0x3b, 0x6c, 0x61, 0x74, 0x6c, 0x6e, 0x67, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x54, 0x50, 121 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 122} 123 124var ( 125 file_google_type_latlng_proto_rawDescOnce sync.Once 126 file_google_type_latlng_proto_rawDescData = file_google_type_latlng_proto_rawDesc 127) 128 129func file_google_type_latlng_proto_rawDescGZIP() []byte { 130 file_google_type_latlng_proto_rawDescOnce.Do(func() { 131 file_google_type_latlng_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_latlng_proto_rawDescData) 132 }) 133 return file_google_type_latlng_proto_rawDescData 134} 135 136var file_google_type_latlng_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 137var file_google_type_latlng_proto_goTypes = []interface{}{ 138 (*LatLng)(nil), // 0: google.type.LatLng 139} 140var file_google_type_latlng_proto_depIdxs = []int32{ 141 0, // [0:0] is the sub-list for method output_type 142 0, // [0:0] is the sub-list for method input_type 143 0, // [0:0] is the sub-list for extension type_name 144 0, // [0:0] is the sub-list for extension extendee 145 0, // [0:0] is the sub-list for field type_name 146} 147 148func init() { file_google_type_latlng_proto_init() } 149func file_google_type_latlng_proto_init() { 150 if File_google_type_latlng_proto != nil { 151 return 152 } 153 if !protoimpl.UnsafeEnabled { 154 file_google_type_latlng_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 155 switch v := v.(*LatLng); i { 156 case 0: 157 return &v.state 158 case 1: 159 return &v.sizeCache 160 case 2: 161 return &v.unknownFields 162 default: 163 return nil 164 } 165 } 166 } 167 type x struct{} 168 out := protoimpl.TypeBuilder{ 169 File: protoimpl.DescBuilder{ 170 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 171 RawDescriptor: file_google_type_latlng_proto_rawDesc, 172 NumEnums: 0, 173 NumMessages: 1, 174 NumExtensions: 0, 175 NumServices: 0, 176 }, 177 GoTypes: file_google_type_latlng_proto_goTypes, 178 DependencyIndexes: file_google_type_latlng_proto_depIdxs, 179 MessageInfos: file_google_type_latlng_proto_msgTypes, 180 }.Build() 181 File_google_type_latlng_proto = out.File 182 file_google_type_latlng_proto_rawDesc = nil 183 file_google_type_latlng_proto_goTypes = nil 184 file_google_type_latlng_proto_depIdxs = nil 185} 186