Ai
2 Star 0 Fork 0

成都极趣科技/chirpstack-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
geo.pb.go 18.77 KB
一键复制 编辑 原始数据 按行查看 历史
Arya11111 提交于 2024-04-23 11:06 +08:00 . V1.0
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: geo/geo.proto
package geo
import (
context "context"
fmt "fmt"
common "gitee.com/dfrobotcd/chirpstack-api/go/common"
gw "gitee.com/dfrobotcd/chirpstack-api/go/gw"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ResolveResult struct {
// Resolved location.
Location *common.Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResolveResult) Reset() { *m = ResolveResult{} }
func (m *ResolveResult) String() string { return proto.CompactTextString(m) }
func (*ResolveResult) ProtoMessage() {}
func (*ResolveResult) Descriptor() ([]byte, []int) {
return fileDescriptor_d1967117b7b016d8, []int{0}
}
func (m *ResolveResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResolveResult.Unmarshal(m, b)
}
func (m *ResolveResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResolveResult.Marshal(b, m, deterministic)
}
func (m *ResolveResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResolveResult.Merge(m, src)
}
func (m *ResolveResult) XXX_Size() int {
return xxx_messageInfo_ResolveResult.Size(m)
}
func (m *ResolveResult) XXX_DiscardUnknown() {
xxx_messageInfo_ResolveResult.DiscardUnknown(m)
}
var xxx_messageInfo_ResolveResult proto.InternalMessageInfo
func (m *ResolveResult) GetLocation() *common.Location {
if m != nil {
return m.Location
}
return nil
}
type FrameRXInfo struct {
// Uplink Gateway meta-data.
RxInfo []*gw.UplinkRXInfo `protobuf:"bytes,1,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FrameRXInfo) Reset() { *m = FrameRXInfo{} }
func (m *FrameRXInfo) String() string { return proto.CompactTextString(m) }
func (*FrameRXInfo) ProtoMessage() {}
func (*FrameRXInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_d1967117b7b016d8, []int{1}
}
func (m *FrameRXInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FrameRXInfo.Unmarshal(m, b)
}
func (m *FrameRXInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FrameRXInfo.Marshal(b, m, deterministic)
}
func (m *FrameRXInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_FrameRXInfo.Merge(m, src)
}
func (m *FrameRXInfo) XXX_Size() int {
return xxx_messageInfo_FrameRXInfo.Size(m)
}
func (m *FrameRXInfo) XXX_DiscardUnknown() {
xxx_messageInfo_FrameRXInfo.DiscardUnknown(m)
}
var xxx_messageInfo_FrameRXInfo proto.InternalMessageInfo
func (m *FrameRXInfo) GetRxInfo() []*gw.UplinkRXInfo {
if m != nil {
return m.RxInfo
}
return nil
}
type ResolveTDOARequest struct {
// Device ID.
DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"`
// Frame meta-data.
FrameRxInfo *FrameRXInfo `protobuf:"bytes,2,opt,name=frame_rx_info,json=frameRXInfo,proto3" json:"frame_rx_info,omitempty"`
// Device reference altitude.
DeviceReferenceAltitude float64 `protobuf:"fixed64,3,opt,name=device_reference_altitude,json=deviceReferenceAltitude,proto3" json:"device_reference_altitude,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResolveTDOARequest) Reset() { *m = ResolveTDOARequest{} }
func (m *ResolveTDOARequest) String() string { return proto.CompactTextString(m) }
func (*ResolveTDOARequest) ProtoMessage() {}
func (*ResolveTDOARequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d1967117b7b016d8, []int{2}
}
func (m *ResolveTDOARequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResolveTDOARequest.Unmarshal(m, b)
}
func (m *ResolveTDOARequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResolveTDOARequest.Marshal(b, m, deterministic)
}
func (m *ResolveTDOARequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResolveTDOARequest.Merge(m, src)
}
func (m *ResolveTDOARequest) XXX_Size() int {
return xxx_messageInfo_ResolveTDOARequest.Size(m)
}
func (m *ResolveTDOARequest) XXX_DiscardUnknown() {
xxx_messageInfo_ResolveTDOARequest.DiscardUnknown(m)
}
var xxx_messageInfo_ResolveTDOARequest proto.InternalMessageInfo
func (m *ResolveTDOARequest) GetDevEui() []byte {
if m != nil {
return m.DevEui
}
return nil
}
func (m *ResolveTDOARequest) GetFrameRxInfo() *FrameRXInfo {
if m != nil {
return m.FrameRxInfo
}
return nil
}
func (m *ResolveTDOARequest) GetDeviceReferenceAltitude() float64 {
if m != nil {
return m.DeviceReferenceAltitude
}
return 0
}
type ResolveMultiFrameTDOARequest struct {
// Device ID.
DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"`
// Frames meta-data.
FrameRxInfoSet []*FrameRXInfo `protobuf:"bytes,2,rep,name=frame_rx_info_set,json=frameRXInfoSet,proto3" json:"frame_rx_info_set,omitempty"`
// Device reference altitude.
DeviceReferenceAltitude float64 `protobuf:"fixed64,3,opt,name=device_reference_altitude,json=deviceReferenceAltitude,proto3" json:"device_reference_altitude,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResolveMultiFrameTDOARequest) Reset() { *m = ResolveMultiFrameTDOARequest{} }
func (m *ResolveMultiFrameTDOARequest) String() string { return proto.CompactTextString(m) }
func (*ResolveMultiFrameTDOARequest) ProtoMessage() {}
func (*ResolveMultiFrameTDOARequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d1967117b7b016d8, []int{3}
}
func (m *ResolveMultiFrameTDOARequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResolveMultiFrameTDOARequest.Unmarshal(m, b)
}
func (m *ResolveMultiFrameTDOARequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResolveMultiFrameTDOARequest.Marshal(b, m, deterministic)
}
func (m *ResolveMultiFrameTDOARequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResolveMultiFrameTDOARequest.Merge(m, src)
}
func (m *ResolveMultiFrameTDOARequest) XXX_Size() int {
return xxx_messageInfo_ResolveMultiFrameTDOARequest.Size(m)
}
func (m *ResolveMultiFrameTDOARequest) XXX_DiscardUnknown() {
xxx_messageInfo_ResolveMultiFrameTDOARequest.DiscardUnknown(m)
}
var xxx_messageInfo_ResolveMultiFrameTDOARequest proto.InternalMessageInfo
func (m *ResolveMultiFrameTDOARequest) GetDevEui() []byte {
if m != nil {
return m.DevEui
}
return nil
}
func (m *ResolveMultiFrameTDOARequest) GetFrameRxInfoSet() []*FrameRXInfo {
if m != nil {
return m.FrameRxInfoSet
}
return nil
}
func (m *ResolveMultiFrameTDOARequest) GetDeviceReferenceAltitude() float64 {
if m != nil {
return m.DeviceReferenceAltitude
}
return 0
}
type ResolveTDOAResponse struct {
// Resolve result.
Result *ResolveResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResolveTDOAResponse) Reset() { *m = ResolveTDOAResponse{} }
func (m *ResolveTDOAResponse) String() string { return proto.CompactTextString(m) }
func (*ResolveTDOAResponse) ProtoMessage() {}
func (*ResolveTDOAResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d1967117b7b016d8, []int{4}
}
func (m *ResolveTDOAResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResolveTDOAResponse.Unmarshal(m, b)
}
func (m *ResolveTDOAResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResolveTDOAResponse.Marshal(b, m, deterministic)
}
func (m *ResolveTDOAResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResolveTDOAResponse.Merge(m, src)
}
func (m *ResolveTDOAResponse) XXX_Size() int {
return xxx_messageInfo_ResolveTDOAResponse.Size(m)
}
func (m *ResolveTDOAResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ResolveTDOAResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ResolveTDOAResponse proto.InternalMessageInfo
func (m *ResolveTDOAResponse) GetResult() *ResolveResult {
if m != nil {
return m.Result
}
return nil
}
type ResolveMultiFrameTDOAResponse struct {
// Resolve result.
Result *ResolveResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResolveMultiFrameTDOAResponse) Reset() { *m = ResolveMultiFrameTDOAResponse{} }
func (m *ResolveMultiFrameTDOAResponse) String() string { return proto.CompactTextString(m) }
func (*ResolveMultiFrameTDOAResponse) ProtoMessage() {}
func (*ResolveMultiFrameTDOAResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d1967117b7b016d8, []int{5}
}
func (m *ResolveMultiFrameTDOAResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResolveMultiFrameTDOAResponse.Unmarshal(m, b)
}
func (m *ResolveMultiFrameTDOAResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResolveMultiFrameTDOAResponse.Marshal(b, m, deterministic)
}
func (m *ResolveMultiFrameTDOAResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResolveMultiFrameTDOAResponse.Merge(m, src)
}
func (m *ResolveMultiFrameTDOAResponse) XXX_Size() int {
return xxx_messageInfo_ResolveMultiFrameTDOAResponse.Size(m)
}
func (m *ResolveMultiFrameTDOAResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ResolveMultiFrameTDOAResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ResolveMultiFrameTDOAResponse proto.InternalMessageInfo
func (m *ResolveMultiFrameTDOAResponse) GetResult() *ResolveResult {
if m != nil {
return m.Result
}
return nil
}
func init() {
proto.RegisterType((*ResolveResult)(nil), "geo.ResolveResult")
proto.RegisterType((*FrameRXInfo)(nil), "geo.FrameRXInfo")
proto.RegisterType((*ResolveTDOARequest)(nil), "geo.ResolveTDOARequest")
proto.RegisterType((*ResolveMultiFrameTDOARequest)(nil), "geo.ResolveMultiFrameTDOARequest")
proto.RegisterType((*ResolveTDOAResponse)(nil), "geo.ResolveTDOAResponse")
proto.RegisterType((*ResolveMultiFrameTDOAResponse)(nil), "geo.ResolveMultiFrameTDOAResponse")
}
func init() {
proto.RegisterFile("geo/geo.proto", fileDescriptor_d1967117b7b016d8)
}
var fileDescriptor_d1967117b7b016d8 = []byte{
// 444 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcf, 0x8a, 0xd4, 0x40,
0x10, 0xc6, 0xcd, 0x0e, 0xcc, 0x4a, 0xc5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a3, 0xd2, 0x45, 0x69, 0x62, 0x71, 0x1e, 0xc4, 0x85, 0x6a,
0x0a, 0xdf, 0x1f, 0x4a, 0x65, 0x10, 0x9b, 0xdd, 0x08, 0x93, 0x54, 0xd3, 0x19, 0x19, 0x91, 0x84,
0x3f, 0x74, 0xf7, 0xe2, 0x42, 0x85, 0xb2, 0xdd, 0xc8, 0xb3, 0x71, 0xbb, 0x6b, 0xf7, 0xbf, 0x05,
0x00, 0x00, 0xff, 0xff, 0xa0, 0x0b, 0x3d, 0x92, 0xa3, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// GeolocationServerServiceClient is the client API for GeolocationServerService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type GeolocationServerServiceClient interface {
// ResolveTDOA resolves the location based on TDOA.
ResolveTDOA(ctx context.Context, in *ResolveTDOARequest, opts ...grpc.CallOption) (*ResolveTDOAResponse, error)
// ResolveMultiFrameTDOA resolves the location using TDOA, based on
// multiple frames.
ResolveMultiFrameTDOA(ctx context.Context, in *ResolveMultiFrameTDOARequest, opts ...grpc.CallOption) (*ResolveMultiFrameTDOAResponse, error)
}
type geolocationServerServiceClient struct {
cc grpc.ClientConnInterface
}
func NewGeolocationServerServiceClient(cc grpc.ClientConnInterface) GeolocationServerServiceClient {
return &geolocationServerServiceClient{cc}
}
func (c *geolocationServerServiceClient) ResolveTDOA(ctx context.Context, in *ResolveTDOARequest, opts ...grpc.CallOption) (*ResolveTDOAResponse, error) {
out := new(ResolveTDOAResponse)
err := c.cc.Invoke(ctx, "/geo.GeolocationServerService/ResolveTDOA", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *geolocationServerServiceClient) ResolveMultiFrameTDOA(ctx context.Context, in *ResolveMultiFrameTDOARequest, opts ...grpc.CallOption) (*ResolveMultiFrameTDOAResponse, error) {
out := new(ResolveMultiFrameTDOAResponse)
err := c.cc.Invoke(ctx, "/geo.GeolocationServerService/ResolveMultiFrameTDOA", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// GeolocationServerServiceServer is the server API for GeolocationServerService service.
type GeolocationServerServiceServer interface {
// ResolveTDOA resolves the location based on TDOA.
ResolveTDOA(context.Context, *ResolveTDOARequest) (*ResolveTDOAResponse, error)
// ResolveMultiFrameTDOA resolves the location using TDOA, based on
// multiple frames.
ResolveMultiFrameTDOA(context.Context, *ResolveMultiFrameTDOARequest) (*ResolveMultiFrameTDOAResponse, error)
}
// UnimplementedGeolocationServerServiceServer can be embedded to have forward compatible implementations.
type UnimplementedGeolocationServerServiceServer struct {
}
func (*UnimplementedGeolocationServerServiceServer) ResolveTDOA(ctx context.Context, req *ResolveTDOARequest) (*ResolveTDOAResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ResolveTDOA not implemented")
}
func (*UnimplementedGeolocationServerServiceServer) ResolveMultiFrameTDOA(ctx context.Context, req *ResolveMultiFrameTDOARequest) (*ResolveMultiFrameTDOAResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ResolveMultiFrameTDOA not implemented")
}
func RegisterGeolocationServerServiceServer(s *grpc.Server, srv GeolocationServerServiceServer) {
s.RegisterService(&_GeolocationServerService_serviceDesc, srv)
}
func _GeolocationServerService_ResolveTDOA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ResolveTDOARequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GeolocationServerServiceServer).ResolveTDOA(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/geo.GeolocationServerService/ResolveTDOA",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GeolocationServerServiceServer).ResolveTDOA(ctx, req.(*ResolveTDOARequest))
}
return interceptor(ctx, in, info, handler)
}
func _GeolocationServerService_ResolveMultiFrameTDOA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ResolveMultiFrameTDOARequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GeolocationServerServiceServer).ResolveMultiFrameTDOA(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/geo.GeolocationServerService/ResolveMultiFrameTDOA",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GeolocationServerServiceServer).ResolveMultiFrameTDOA(ctx, req.(*ResolveMultiFrameTDOARequest))
}
return interceptor(ctx, in, info, handler)
}
var _GeolocationServerService_serviceDesc = grpc.ServiceDesc{
ServiceName: "geo.GeolocationServerService",
HandlerType: (*GeolocationServerServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ResolveTDOA",
Handler: _GeolocationServerService_ResolveTDOA_Handler,
},
{
MethodName: "ResolveMultiFrameTDOA",
Handler: _GeolocationServerService_ResolveMultiFrameTDOA_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "geo/geo.proto",
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dfrobotcd/chirpstack-api.git
git@gitee.com:dfrobotcd/chirpstack-api.git
dfrobotcd
chirpstack-api
chirpstack-api
d91e8b8d685d

搜索帮助