From ead34d430e88a64b6d2f2b1e416d4817d3e99192 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 3 Jun 2021 08:41:43 +0100 Subject: [PATCH] fix location proto --- location/proto/location.pb.go | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/location/proto/location.pb.go b/location/proto/location.pb.go index 5ff4414..780c2fe 100644 --- a/location/proto/location.pb.go +++ b/location/proto/location.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.25.0 -// protoc v3.15.5 +// protoc-gen-go v1.26.0 +// protoc v3.15.6 // source: proto/location.proto // The location service stores GPS points for tracking purposes @@ -10,7 +10,6 @@ package location import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -24,10 +23,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // A point is a GPS coordinate. type Point struct { state protoimpl.MessageState @@ -155,11 +150,13 @@ func (x *Entity) GetLocation() *Point { return nil } +// Read an entity by its ID type ReadRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // the entity id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } @@ -249,6 +246,7 @@ func (x *ReadResponse) GetEntity() *Entity { return nil } +// Save an entity's current position type SaveRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -334,16 +332,20 @@ func (*SaveResponse) Descriptor() ([]byte, []int) { return file_proto_location_proto_rawDescGZIP(), []int{5} } +// Search for entities in a given radius type SearchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // Central position to search from Center *Point `protobuf:"bytes,1,opt,name=center,proto3" json:"center,omitempty"` - // in meters - Radius float64 `protobuf:"fixed64,2,opt,name=radius,proto3" json:"radius,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - NumEntities int64 `protobuf:"varint,4,opt,name=numEntities,proto3" json:"numEntities,omitempty"` + // radius in meters + Radius float64 `protobuf:"fixed64,2,opt,name=radius,proto3" json:"radius,omitempty"` + // type of entities to filter + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + // number of entities to return + NumEntities int64 `protobuf:"varint,4,opt,name=numEntities,proto3" json:"numEntities,omitempty"` } func (x *SearchRequest) Reset() { @@ -504,8 +506,9 @@ var file_proto_location_proto_rawDesc = []byte{ 0x12, 0x17, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x12, 0x5a, 0x10, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x3b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var (