-
Notifications
You must be signed in to change notification settings - Fork 302
/
packetbrokeragent.pb.go
140 lines (121 loc) · 5.61 KB
/
packetbrokeragent.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: lorawan-stack/api/packetbrokeragent.proto
package ttnpb
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
golang_proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() {
proto.RegisterFile("lorawan-stack/api/packetbrokeragent.proto", fileDescriptor_1a44242dc5cd678e)
}
func init() {
golang_proto.RegisterFile("lorawan-stack/api/packetbrokeragent.proto", fileDescriptor_1a44242dc5cd678e)
}
var fileDescriptor_1a44242dc5cd678e = []byte{
// 309 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xa1, 0x4f, 0xc3, 0x40,
0x14, 0x87, 0xdf, 0x13, 0x20, 0x96, 0x80, 0x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 0x41, 0x7b, 0x0b, 0x1e, 0x3b, 0xf0, 0xc4, 0x81, 0xa6, 0x0e, 0x3c, 0x73, 0xa0, 0xb9, 0x03,
0x2d, 0x1c, 0x68, 0xe9, 0xc0, 0x2b, 0x07, 0x5e, 0x3b, 0xd0, 0xc6, 0x81, 0xb7, 0x0e, 0xb4, 0x73,
0xe0, 0xbd, 0x03, 0x8d, 0x3d, 0x68, 0xe2, 0xc1, 0xef, 0x1e, 0xf4, 0xe1, 0xc1, 0x9f, 0x1e, 0x34,
0xf5, 0xa0, 0x99, 0x07, 0xcf, 0x3d, 0x78, 0xe1, 0xc1, 0x2f, 0xb7, 0x91, 0x16, 0xa6, 0xa7, 0x4c,
0x2f, 0xce, 0xa2, 0x52, 0x64, 0xca, 0x0c, 0x75, 0x91, 0x04, 0xc7, 0x5f, 0xc8, 0x93, 0x28, 0x30,
0x26, 0xcb, 0xc3, 0xf0, 0xf4, 0x70, 0x74, 0xf3, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x8f, 0x3a,
0xc2, 0x7f, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// 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.SupportPackageIsVersion4
// GsPbaClient is the client API for GsPba service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type GsPbaClient interface {
PublishUplink(ctx context.Context, in *GatewayUplinkMessage, opts ...grpc.CallOption) (*types.Empty, error)
}
type gsPbaClient struct {
cc *grpc.ClientConn
}
func NewGsPbaClient(cc *grpc.ClientConn) GsPbaClient {
return &gsPbaClient{cc}
}
func (c *gsPbaClient) PublishUplink(ctx context.Context, in *GatewayUplinkMessage, opts ...grpc.CallOption) (*types.Empty, error) {
out := new(types.Empty)
err := c.cc.Invoke(ctx, "/ttn.lorawan.v3.GsPba/PublishUplink", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// GsPbaServer is the server API for GsPba service.
type GsPbaServer interface {
PublishUplink(context.Context, *GatewayUplinkMessage) (*types.Empty, error)
}
// UnimplementedGsPbaServer can be embedded to have forward compatible implementations.
type UnimplementedGsPbaServer struct {
}
func (*UnimplementedGsPbaServer) PublishUplink(ctx context.Context, req *GatewayUplinkMessage) (*types.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method PublishUplink not implemented")
}
func RegisterGsPbaServer(s *grpc.Server, srv GsPbaServer) {
s.RegisterService(&_GsPba_serviceDesc, srv)
}
func _GsPba_PublishUplink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GatewayUplinkMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GsPbaServer).PublishUplink(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ttn.lorawan.v3.GsPba/PublishUplink",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GsPbaServer).PublishUplink(ctx, req.(*GatewayUplinkMessage))
}
return interceptor(ctx, in, info, handler)
}
var _GsPba_serviceDesc = grpc.ServiceDesc{
ServiceName: "ttn.lorawan.v3.GsPba",
HandlerType: (*GsPbaServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "PublishUplink",
Handler: _GsPba_PublishUplink_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "lorawan-stack/api/packetbrokeragent.proto",
}