-
Notifications
You must be signed in to change notification settings - Fork 302
/
packetbrokeragent.pb.go
216 lines (187 loc) · 8.31 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// 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{
// 343 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0xd0, 0xa1, 0x6f, 0x22, 0x41,
0x14, 0x06, 0xf0, 0xf7, 0x04, 0x27, 0x36, 0xb9, 0xbb, 0x04, 0x71, 0x82, 0x4b, 0xde, 0x9d, 0x38,
0x73, 0xe2, 0x66, 0x12, 0xf8, 0x0f, 0x2e, 0x6d, 0x48, 0x9a, 0xd0, 0x90, 0x34, 0xad, 0xa8, 0x9b,
0x25, 0xd3, 0x65, 0xb3, 0xcb, 0xcc, 0x66, 0x77, 0x60, 0x83, 0x43, 0x22, 0x2b, 0x2b, 0x6b, 0x9a,
0x20, 0x91, 0x48, 0x24, 0x12, 0x89, 0x64, 0x67, 0x0c, 0x12, 0x89, 0x6c, 0xba, 0x0b, 0x82, 0x56,
0x54, 0x7f, 0x5f, 0x7e, 0xdf, 0xcb, 0xf3, 0xfe, 0xc6, 0x3a, 0x15, 0xb9, 0x50, 0xff, 0x32, 0x23,
0x7a, 0x11, 0x17, 0x49, 0xc8, 0x13, 0xd1, 0x8b, 0xa4, 0xf1, 0x53, 0x1d, 0xc9, 0x54, 0x04, 0x52,
0x19, 0x96, 0xa4, 0xda, 0xe8, 0xfa, 0x37, 0x63, 0x14, 0x3b, 0xd6, 0xd9, 0xa8, 0xd5, 0xf8, 0x19,
0x68, 0x1d, 0xc4, 0x92, 0x97, 0xa9, 0x3f, 0x7c, 0xe0, 0x72, 0x90, 0x98, 0x71, 0x55, 0x6e, 0xfc,
0xfe, 0xe8, 0x0e, 0x64, 0x96, 0x89, 0x40, 0x66, 0x55, 0xa3, 0x79, 0xe7, 0xd5, 0xda, 0x59, 0xd7,
0x17, 0xf5, 0x8e, 0xf7, 0xb5, 0x3b, 0xf4, 0xe3, 0x30, 0xeb, 0xdf, 0x26, 0x71, 0xa8, 0xa2, 0xfa,
0x1f, 0x76, 0xbe, 0xc4, 0xda, 0xc2, 0xc8, 0x5c, 0x8c, 0xab, 0xb8, 0x53, 0x31, 0x8d, 0x1f, 0xac,
0xda, 0x67, 0xa7, 0x7d, 0x76, 0xf9, 0xb6, 0xdf, 0xbc, 0xf1, 0x6a, 0xd7, 0xa5, 0x7b, 0xe5, 0x7d,
0x3f, 0xba, 0x17, 0x3a, 0x57, 0xa5, 0xfc, 0xeb, 0xbd, 0x7c, 0x4a, 0x3e, 0x41, 0xff, 0xbf, 0xe0,
0xaa, 0x20, 0x5c, 0x17, 0x84, 0x9b, 0x82, 0x60, 0x5b, 0x10, 0xec, 0x0a, 0x82, 0x7d, 0x41, 0x70,
0x28, 0x08, 0x27, 0x96, 0x70, 0x6a, 0x09, 0x66, 0x96, 0x70, 0x6e, 0x09, 0x16, 0x96, 0x60, 0x69,
0x09, 0x56, 0x96, 0x70, 0x6d, 0x09, 0x37, 0x96, 0x60, 0x6b, 0x09, 0x77, 0x96, 0x60, 0x6f, 0x09,
0x0f, 0x96, 0x60, 0xe2, 0x08, 0xa6, 0x8e, 0xf0, 0xd1, 0x11, 0x3c, 0x39, 0xc2, 0x67, 0x47, 0x30,
0x73, 0x04, 0x73, 0x47, 0xb8, 0x70, 0x84, 0x4b, 0x47, 0x78, 0xcf, 0x03, 0xcd, 0x4c, 0x5f, 0x9a,
0x7e, 0xa8, 0x82, 0x8c, 0x29, 0x69, 0x72, 0x9d, 0x46, 0xfc, 0xfc, 0xb5, 0xa3, 0x16, 0x4f, 0xa2,
0x80, 0x1b, 0xa3, 0x12, 0xdf, 0xff, 0x52, 0xde, 0xdd, 0x7a, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xdc,
0xa8, 0x26, 0xba, 0xd7, 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",
}
// NsPbaClient is the client API for NsPba service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NsPbaClient interface {
// PublishDownlink instructs the Packet Broker Agent to publish a downlink message to Packet Broker Router.
PublishDownlink(ctx context.Context, in *DownlinkMessage, opts ...grpc.CallOption) (*types.Empty, error)
}
type nsPbaClient struct {
cc *grpc.ClientConn
}
func NewNsPbaClient(cc *grpc.ClientConn) NsPbaClient {
return &nsPbaClient{cc}
}
func (c *nsPbaClient) PublishDownlink(ctx context.Context, in *DownlinkMessage, opts ...grpc.CallOption) (*types.Empty, error) {
out := new(types.Empty)
err := c.cc.Invoke(ctx, "/ttn.lorawan.v3.NsPba/PublishDownlink", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NsPbaServer is the server API for NsPba service.
type NsPbaServer interface {
// PublishDownlink instructs the Packet Broker Agent to publish a downlink message to Packet Broker Router.
PublishDownlink(context.Context, *DownlinkMessage) (*types.Empty, error)
}
// UnimplementedNsPbaServer can be embedded to have forward compatible implementations.
type UnimplementedNsPbaServer struct {
}
func (*UnimplementedNsPbaServer) PublishDownlink(ctx context.Context, req *DownlinkMessage) (*types.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method PublishDownlink not implemented")
}
func RegisterNsPbaServer(s *grpc.Server, srv NsPbaServer) {
s.RegisterService(&_NsPba_serviceDesc, srv)
}
func _NsPba_PublishDownlink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DownlinkMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NsPbaServer).PublishDownlink(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ttn.lorawan.v3.NsPba/PublishDownlink",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NsPbaServer).PublishDownlink(ctx, req.(*DownlinkMessage))
}
return interceptor(ctx, in, info, handler)
}
var _NsPba_serviceDesc = grpc.ServiceDesc{
ServiceName: "ttn.lorawan.v3.NsPba",
HandlerType: (*NsPbaServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "PublishDownlink",
Handler: _NsPba_PublishDownlink_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "lorawan-stack/api/packetbrokeragent.proto",
}