-
-
Notifications
You must be signed in to change notification settings - Fork 398
/
Copy pathcommon.pb.go
224 lines (196 loc) · 7.65 KB
/
common.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: commands/common.proto
package commands
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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 Instance struct {
// The ID of the instance.
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_0b273be58978a133, []int{0}
}
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
}
type DownloadProgress struct {
// URL of the download.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// The file being downloaded.
File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
// Total size of the file being downloaded.
TotalSize int64 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
// Size of the downloaded portion of the file.
Downloaded int64 `protobuf:"varint,4,opt,name=downloaded,proto3" json:"downloaded,omitempty"`
// Whether the download is complete.
Completed bool `protobuf:"varint,5,opt,name=completed,proto3" json:"completed,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DownloadProgress) Reset() { *m = DownloadProgress{} }
func (m *DownloadProgress) String() string { return proto.CompactTextString(m) }
func (*DownloadProgress) ProtoMessage() {}
func (*DownloadProgress) Descriptor() ([]byte, []int) {
return fileDescriptor_0b273be58978a133, []int{1}
}
func (m *DownloadProgress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DownloadProgress.Unmarshal(m, b)
}
func (m *DownloadProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DownloadProgress.Marshal(b, m, deterministic)
}
func (m *DownloadProgress) XXX_Merge(src proto.Message) {
xxx_messageInfo_DownloadProgress.Merge(m, src)
}
func (m *DownloadProgress) XXX_Size() int {
return xxx_messageInfo_DownloadProgress.Size(m)
}
func (m *DownloadProgress) XXX_DiscardUnknown() {
xxx_messageInfo_DownloadProgress.DiscardUnknown(m)
}
var xxx_messageInfo_DownloadProgress proto.InternalMessageInfo
func (m *DownloadProgress) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *DownloadProgress) GetFile() string {
if m != nil {
return m.File
}
return ""
}
func (m *DownloadProgress) GetTotalSize() int64 {
if m != nil {
return m.TotalSize
}
return 0
}
func (m *DownloadProgress) GetDownloaded() int64 {
if m != nil {
return m.Downloaded
}
return 0
}
func (m *DownloadProgress) GetCompleted() bool {
if m != nil {
return m.Completed
}
return false
}
type TaskProgress struct {
// Description of the task.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Additional information about the task.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// Whether the task is complete.
Completed bool `protobuf:"varint,3,opt,name=completed,proto3" json:"completed,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskProgress) Reset() { *m = TaskProgress{} }
func (m *TaskProgress) String() string { return proto.CompactTextString(m) }
func (*TaskProgress) ProtoMessage() {}
func (*TaskProgress) Descriptor() ([]byte, []int) {
return fileDescriptor_0b273be58978a133, []int{2}
}
func (m *TaskProgress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskProgress.Unmarshal(m, b)
}
func (m *TaskProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskProgress.Marshal(b, m, deterministic)
}
func (m *TaskProgress) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskProgress.Merge(m, src)
}
func (m *TaskProgress) XXX_Size() int {
return xxx_messageInfo_TaskProgress.Size(m)
}
func (m *TaskProgress) XXX_DiscardUnknown() {
xxx_messageInfo_TaskProgress.DiscardUnknown(m)
}
var xxx_messageInfo_TaskProgress proto.InternalMessageInfo
func (m *TaskProgress) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *TaskProgress) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *TaskProgress) GetCompleted() bool {
if m != nil {
return m.Completed
}
return false
}
func init() {
proto.RegisterType((*Instance)(nil), "cc.arduino.cli.commands.Instance")
proto.RegisterType((*DownloadProgress)(nil), "cc.arduino.cli.commands.DownloadProgress")
proto.RegisterType((*TaskProgress)(nil), "cc.arduino.cli.commands.TaskProgress")
}
func init() { proto.RegisterFile("commands/common.proto", fileDescriptor_0b273be58978a133) }
var fileDescriptor_0b273be58978a133 = []byte{
// 263 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xcd, 0x4a, 0xc4, 0x30,
0x14, 0x85, 0xe9, 0xcf, 0xe8, 0xf4, 0x22, 0x32, 0x04, 0xc4, 0x20, 0x2a, 0xa5, 0xab, 0x82, 0x4c,
0xbb, 0xf0, 0x0d, 0xc4, 0x8d, 0x3b, 0xa9, 0xae, 0x66, 0x23, 0x99, 0x24, 0xd6, 0x60, 0x9a, 0x5b,
0x92, 0x14, 0x61, 0xde, 0xc3, 0xf7, 0x95, 0x86, 0xc6, 0xbf, 0x55, 0x4e, 0xce, 0x3d, 0x1c, 0x0e,
0x1f, 0x9c, 0x71, 0x1c, 0x06, 0x66, 0x84, 0x6b, 0x67, 0x81, 0xa6, 0x19, 0x2d, 0x7a, 0x24, 0xe7,
0x9c, 0x37, 0xcc, 0x8a, 0x49, 0x19, 0x6c, 0xb8, 0x56, 0x4d, 0x4c, 0x55, 0x17, 0xb0, 0x7e, 0x30,
0xce, 0x33, 0xc3, 0x25, 0x39, 0x85, 0x54, 0x09, 0x9a, 0x94, 0x49, 0xbd, 0xea, 0x52, 0x25, 0xaa,
0xcf, 0x04, 0x36, 0xf7, 0xf8, 0x61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