-
-
Notifications
You must be signed in to change notification settings - Fork 398
/
Copy pathdebug.pb.go
384 lines (332 loc) · 12.3 KB
/
debug.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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: debug/debug.proto
package debug
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
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
// The top-level message sent by the client for the `Debug` method.
// Multiple `DebugReq` messages can be sent but the first message
// must contain a `DebugReq` message to initialize the debug session.
// All subsequent messages must contain bytes to be sent to the debug session
// and must not contain a `DebugReq` message.
type DebugReq struct {
// Provides information to the debug that specifies which is the target.
// The first `StreamingOpenReq` message must contain a `DebugReq`
// message.
DebugReq *DebugConfigReq `protobuf:"bytes,1,opt,name=debugReq,proto3" json:"debugReq,omitempty"`
// The data to be sent to the target being monitored.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebugReq) Reset() { *m = DebugReq{} }
func (m *DebugReq) String() string { return proto.CompactTextString(m) }
func (*DebugReq) ProtoMessage() {}
func (*DebugReq) Descriptor() ([]byte, []int) {
return fileDescriptor_5ae24eab94cb53d5, []int{0}
}
func (m *DebugReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DebugReq.Unmarshal(m, b)
}
func (m *DebugReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DebugReq.Marshal(b, m, deterministic)
}
func (m *DebugReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebugReq.Merge(m, src)
}
func (m *DebugReq) XXX_Size() int {
return xxx_messageInfo_DebugReq.Size(m)
}
func (m *DebugReq) XXX_DiscardUnknown() {
xxx_messageInfo_DebugReq.DiscardUnknown(m)
}
var xxx_messageInfo_DebugReq proto.InternalMessageInfo
func (m *DebugReq) GetDebugReq() *DebugConfigReq {
if m != nil {
return m.DebugReq
}
return nil
}
func (m *DebugReq) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type DebugConfigReq struct {
Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"`
SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"`
Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
Verbose bool `protobuf:"varint,5,opt,name=verbose,proto3" json:"verbose,omitempty"`
ImportFile string `protobuf:"bytes,7,opt,name=import_file,json=importFile,proto3" json:"import_file,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebugConfigReq) Reset() { *m = DebugConfigReq{} }
func (m *DebugConfigReq) String() string { return proto.CompactTextString(m) }
func (*DebugConfigReq) ProtoMessage() {}
func (*DebugConfigReq) Descriptor() ([]byte, []int) {
return fileDescriptor_5ae24eab94cb53d5, []int{1}
}
func (m *DebugConfigReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DebugConfigReq.Unmarshal(m, b)
}
func (m *DebugConfigReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DebugConfigReq.Marshal(b, m, deterministic)
}
func (m *DebugConfigReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebugConfigReq.Merge(m, src)
}
func (m *DebugConfigReq) XXX_Size() int {
return xxx_messageInfo_DebugConfigReq.Size(m)
}
func (m *DebugConfigReq) XXX_DiscardUnknown() {
xxx_messageInfo_DebugConfigReq.DiscardUnknown(m)
}
var xxx_messageInfo_DebugConfigReq proto.InternalMessageInfo
func (m *DebugConfigReq) GetInstance() *Instance {
if m != nil {
return m.Instance
}
return nil
}
func (m *DebugConfigReq) GetFqbn() string {
if m != nil {
return m.Fqbn
}
return ""
}
func (m *DebugConfigReq) GetSketchPath() string {
if m != nil {
return m.SketchPath
}
return ""
}
func (m *DebugConfigReq) GetPort() string {
if m != nil {
return m.Port
}
return ""
}
func (m *DebugConfigReq) GetVerbose() bool {
if m != nil {
return m.Verbose
}
return false
}
func (m *DebugConfigReq) GetImportFile() string {
if m != nil {
return m.ImportFile
}
return ""
}
//
type DebugResp struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebugResp) Reset() { *m = DebugResp{} }
func (m *DebugResp) String() string { return proto.CompactTextString(m) }
func (*DebugResp) ProtoMessage() {}
func (*DebugResp) Descriptor() ([]byte, []int) {
return fileDescriptor_5ae24eab94cb53d5, []int{2}
}
func (m *DebugResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DebugResp.Unmarshal(m, b)
}
func (m *DebugResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DebugResp.Marshal(b, m, deterministic)
}
func (m *DebugResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebugResp.Merge(m, src)
}
func (m *DebugResp) XXX_Size() int {
return xxx_messageInfo_DebugResp.Size(m)
}
func (m *DebugResp) XXX_DiscardUnknown() {
xxx_messageInfo_DebugResp.DiscardUnknown(m)
}
var xxx_messageInfo_DebugResp proto.InternalMessageInfo
func (m *DebugResp) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *DebugResp) GetError() string {
if m != nil {
return m.Error
}
return ""
}
// TODO remove this in next proto refactoring because is a duplicate from commands/common.proto
type Instance struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Instance) Reset() { *m = Instance{} }
func (m *Instance) String() string { return proto.CompactTextString(m) }
func (*Instance) ProtoMessage() {}
func (*Instance) Descriptor() ([]byte, []int) {
return fileDescriptor_5ae24eab94cb53d5, []int{3}
}
func (m *Instance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Instance.Unmarshal(m, b)
}
func (m *Instance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Instance.Marshal(b, m, deterministic)
}
func (m *Instance) XXX_Merge(src proto.Message) {
xxx_messageInfo_Instance.Merge(m, src)
}
func (m *Instance) XXX_Size() int {
return xxx_messageInfo_Instance.Size(m)
}
func (m *Instance) XXX_DiscardUnknown() {
xxx_messageInfo_Instance.DiscardUnknown(m)
}
var xxx_messageInfo_Instance proto.InternalMessageInfo
func (m *Instance) GetId() int32 {
if m != nil {
return m.Id
}
return 0
}
func init() {
proto.RegisterType((*DebugReq)(nil), "cc.arduino.cli.debug.DebugReq")
proto.RegisterType((*DebugConfigReq)(nil), "cc.arduino.cli.debug.DebugConfigReq")
proto.RegisterType((*DebugResp)(nil), "cc.arduino.cli.debug.DebugResp")
proto.RegisterType((*Instance)(nil), "cc.arduino.cli.debug.Instance")
}
func init() { proto.RegisterFile("debug/debug.proto", fileDescriptor_5ae24eab94cb53d5) }
var fileDescriptor_5ae24eab94cb53d5 = []byte{
// 332 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0x41, 0x4b, 0xf3, 0x40,
0x10, 0xfd, 0xb6, 0x5f, 0x63, 0xd3, 0xa9, 0x14, 0x5c, 0x7a, 0x58, 0x7a, 0x68, 0x4b, 0xf0, 0x10,
0x04, 0xb7, 0x52, 0xf1, 0xe2, 0x49, 0x54, 0x04, 0x2f, 0x22, 0x7b, 0x11, 0xbc, 0xd4, 0x64, 0xb3,
0x6d, 0x16, 0xd3, 0x6c, 0xba, 0xd9, 0xfa, 0x3b, 0xfd, 0x49, 0xb2, 0x9b, 0x4d, 0x45, 0x28, 0xbd,
0x24, 0x6f, 0x66, 0xde, 0x9b, 0xb7, 0x33, 0x0c, 0x9c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0x08, 0x1d, 0x99, 0x39, 0x4d, 0xc0, 0x3a, 0x32, 0x5b, 0xbc, 0x41, 0xe0, 0x5a, 0xe2,
0x97, 0x16, 0x4c, 0x8e, 0xec, 0x9e, 0x89, 0xed, 0x78, 0x7a, 0xb4, 0x5e, 0x57, 0xd1, 0xbf, 0x18,
0x5d, 0xa1, 0xfb, 0x8b, 0xf7, 0x78, 0x2d, 0x4d, 0xbe, 0x4b, 0x29, 0x57, 0x9b, 0xb9, 0xe7, 0xb7,
0xff, 0x4b, 0x5e, 0xc8, 0xb9, 0xae, 0x78, 0x73, 0x28, 0xe9, 0x89, 0xbb, 0x94, 0xeb, 0x9f, 0x00,
0x00, 0x00, 0xff, 0xff, 0xfc, 0x58, 0x74, 0x88, 0x3e, 0x02, 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
// DebugClient is the client API for Debug service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DebugClient interface {
Debug(ctx context.Context, opts ...grpc.CallOption) (Debug_DebugClient, error)
}
type debugClient struct {
cc *grpc.ClientConn
}
func NewDebugClient(cc *grpc.ClientConn) DebugClient {
return &debugClient{cc}
}
func (c *debugClient) Debug(ctx context.Context, opts ...grpc.CallOption) (Debug_DebugClient, error) {
stream, err := c.cc.NewStream(ctx, &_Debug_serviceDesc.Streams[0], "/cc.arduino.cli.debug.Debug/Debug", opts...)
if err != nil {
return nil, err
}
x := &debugDebugClient{stream}
return x, nil
}
type Debug_DebugClient interface {
Send(*DebugReq) error
Recv() (*DebugResp, error)
grpc.ClientStream
}
type debugDebugClient struct {
grpc.ClientStream
}
func (x *debugDebugClient) Send(m *DebugReq) error {
return x.ClientStream.SendMsg(m)
}
func (x *debugDebugClient) Recv() (*DebugResp, error) {
m := new(DebugResp)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// DebugServer is the server API for Debug service.
type DebugServer interface {
Debug(Debug_DebugServer) error
}
func RegisterDebugServer(s *grpc.Server, srv DebugServer) {
s.RegisterService(&_Debug_serviceDesc, srv)
}
func _Debug_Debug_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(DebugServer).Debug(&debugDebugServer{stream})
}
type Debug_DebugServer interface {
Send(*DebugResp) error
Recv() (*DebugReq, error)
grpc.ServerStream
}
type debugDebugServer struct {
grpc.ServerStream
}
func (x *debugDebugServer) Send(m *DebugResp) error {
return x.ServerStream.SendMsg(m)
}
func (x *debugDebugServer) Recv() (*DebugReq, error) {
m := new(DebugReq)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _Debug_serviceDesc = grpc.ServiceDesc{
ServiceName: "cc.arduino.cli.debug.Debug",
HandlerType: (*DebugServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "Debug",
Handler: _Debug_Debug_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "debug/debug.proto",
}