...

Source file src/google.golang.org/genproto/googleapis/type/latlng/latlng.pb.go

Documentation: google.golang.org/genproto/googleapis/type/latlng

     1  // Copyright 2024 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.26.0
    18  // 	protoc        v4.24.4
    19  // source: google/type/latlng.proto
    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  	// 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  // An object that represents a latitude/longitude pair. This is expressed as a
    39  // pair of doubles to represent degrees latitude and degrees longitude. Unless
    40  // specified otherwise, this must conform to the
    41  // <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
    42  // standard</a>. Values must be within normalized ranges.
    43  type LatLng struct {
    44  	state         protoimpl.MessageState
    45  	sizeCache     protoimpl.SizeCache
    46  	unknownFields protoimpl.UnknownFields
    47  
    48  	// The latitude in degrees. It must be in the range [-90.0, +90.0].
    49  	Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
    50  	// The longitude in degrees. It must be in the range [-180.0, +180.0].
    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  // Deprecated: Use LatLng.ProtoReflect.Descriptor instead.
    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), // 0: google.type.LatLng
   134  }
   135  var file_google_type_latlng_proto_depIdxs = []int32{
   136  	0, // [0:0] is the sub-list for method output_type
   137  	0, // [0:0] is the sub-list for method input_type
   138  	0, // [0:0] is the sub-list for extension type_name
   139  	0, // [0:0] is the sub-list for extension extendee
   140  	0, // [0:0] is the sub-list for field type_name
   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