mirrored from https://chromium.googlesource.com/infra/luci/luci-go
-
Notifications
You must be signed in to change notification settings - Fork 43
/
nics.pb.go
429 lines (379 loc) · 14.9 KB
/
nics.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
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/machine-db/api/crimson/v1/nics.proto
package crimson
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
field_mask "google.golang.org/genproto/protobuf/field_mask"
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
// A network interface in the database.
type NIC struct {
// The name of this NIC. With machine, uniquely identifies this NIC.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The machine this NIC belongs to. With name, uniquely identifies this NIC.
Machine string `protobuf:"bytes,2,opt,name=machine,proto3" json:"machine,omitempty"`
// The MAC address associated with this NIC.
MacAddress string `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
// The switch this NIC is connected to.
Switch string `protobuf:"bytes,4,opt,name=switch,proto3" json:"switch,omitempty"`
// The switchport this NIC is connected to.
Switchport int32 `protobuf:"varint,5,opt,name=switchport,proto3" json:"switchport,omitempty"`
// The name of this NIC on the network.
Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"`
// The IPv4 address associated with this NIC.
Ipv4 string `protobuf:"bytes,7,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NIC) Reset() { *m = NIC{} }
func (m *NIC) String() string { return proto.CompactTextString(m) }
func (*NIC) ProtoMessage() {}
func (*NIC) Descriptor() ([]byte, []int) {
return fileDescriptor_04c10592cdcb6ab3, []int{0}
}
func (m *NIC) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NIC.Unmarshal(m, b)
}
func (m *NIC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NIC.Marshal(b, m, deterministic)
}
func (m *NIC) XXX_Merge(src proto.Message) {
xxx_messageInfo_NIC.Merge(m, src)
}
func (m *NIC) XXX_Size() int {
return xxx_messageInfo_NIC.Size(m)
}
func (m *NIC) XXX_DiscardUnknown() {
xxx_messageInfo_NIC.DiscardUnknown(m)
}
var xxx_messageInfo_NIC proto.InternalMessageInfo
func (m *NIC) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *NIC) GetMachine() string {
if m != nil {
return m.Machine
}
return ""
}
func (m *NIC) GetMacAddress() string {
if m != nil {
return m.MacAddress
}
return ""
}
func (m *NIC) GetSwitch() string {
if m != nil {
return m.Switch
}
return ""
}
func (m *NIC) GetSwitchport() int32 {
if m != nil {
return m.Switchport
}
return 0
}
func (m *NIC) GetHostname() string {
if m != nil {
return m.Hostname
}
return ""
}
func (m *NIC) GetIpv4() string {
if m != nil {
return m.Ipv4
}
return ""
}
// A request to create a new NIC in the database.
type CreateNICRequest struct {
// The NIC to create in the database.
Nic *NIC `protobuf:"bytes,1,opt,name=nic,proto3" json:"nic,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateNICRequest) Reset() { *m = CreateNICRequest{} }
func (m *CreateNICRequest) String() string { return proto.CompactTextString(m) }
func (*CreateNICRequest) ProtoMessage() {}
func (*CreateNICRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_04c10592cdcb6ab3, []int{1}
}
func (m *CreateNICRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateNICRequest.Unmarshal(m, b)
}
func (m *CreateNICRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateNICRequest.Marshal(b, m, deterministic)
}
func (m *CreateNICRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateNICRequest.Merge(m, src)
}
func (m *CreateNICRequest) XXX_Size() int {
return xxx_messageInfo_CreateNICRequest.Size(m)
}
func (m *CreateNICRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateNICRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateNICRequest proto.InternalMessageInfo
func (m *CreateNICRequest) GetNic() *NIC {
if m != nil {
return m.Nic
}
return nil
}
// A request to delete a NIC from the database.
type DeleteNICRequest struct {
// The name of the NIC to delete.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The machine the NIC belongs to.
Machine string `protobuf:"bytes,2,opt,name=machine,proto3" json:"machine,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteNICRequest) Reset() { *m = DeleteNICRequest{} }
func (m *DeleteNICRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteNICRequest) ProtoMessage() {}
func (*DeleteNICRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_04c10592cdcb6ab3, []int{2}
}
func (m *DeleteNICRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteNICRequest.Unmarshal(m, b)
}
func (m *DeleteNICRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteNICRequest.Marshal(b, m, deterministic)
}
func (m *DeleteNICRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteNICRequest.Merge(m, src)
}
func (m *DeleteNICRequest) XXX_Size() int {
return xxx_messageInfo_DeleteNICRequest.Size(m)
}
func (m *DeleteNICRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteNICRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteNICRequest proto.InternalMessageInfo
func (m *DeleteNICRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *DeleteNICRequest) GetMachine() string {
if m != nil {
return m.Machine
}
return ""
}
// A request to list NICs in the database.
type ListNICsRequest struct {
// The names of NICs to filter retrieved NICs on.
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
// The machines to filter retrieved NICs on.
Machines []string `protobuf:"bytes,2,rep,name=machines,proto3" json:"machines,omitempty"`
// The MAC addresses to filter retrieved NICs on.
MacAddresses []string `protobuf:"bytes,3,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
// The switches to filter retrieved NICs on.
Switches []string `protobuf:"bytes,4,rep,name=switches,proto3" json:"switches,omitempty"`
// The hostnames of NICs to filter retrieved NICs on.
Hostnames []string `protobuf:"bytes,5,rep,name=hostnames,proto3" json:"hostnames,omitempty"`
// The IPv4 addresses of NICs to filter retrieved NICs on.
Ipv4S []string `protobuf:"bytes,6,rep,name=ipv4s,proto3" json:"ipv4s,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNICsRequest) Reset() { *m = ListNICsRequest{} }
func (m *ListNICsRequest) String() string { return proto.CompactTextString(m) }
func (*ListNICsRequest) ProtoMessage() {}
func (*ListNICsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_04c10592cdcb6ab3, []int{3}
}
func (m *ListNICsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNICsRequest.Unmarshal(m, b)
}
func (m *ListNICsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNICsRequest.Marshal(b, m, deterministic)
}
func (m *ListNICsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNICsRequest.Merge(m, src)
}
func (m *ListNICsRequest) XXX_Size() int {
return xxx_messageInfo_ListNICsRequest.Size(m)
}
func (m *ListNICsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListNICsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListNICsRequest proto.InternalMessageInfo
func (m *ListNICsRequest) GetNames() []string {
if m != nil {
return m.Names
}
return nil
}
func (m *ListNICsRequest) GetMachines() []string {
if m != nil {
return m.Machines
}
return nil
}
func (m *ListNICsRequest) GetMacAddresses() []string {
if m != nil {
return m.MacAddresses
}
return nil
}
func (m *ListNICsRequest) GetSwitches() []string {
if m != nil {
return m.Switches
}
return nil
}
func (m *ListNICsRequest) GetHostnames() []string {
if m != nil {
return m.Hostnames
}
return nil
}
func (m *ListNICsRequest) GetIpv4S() []string {
if m != nil {
return m.Ipv4S
}
return nil
}
// A response containing a list of NICs in the database.
type ListNICsResponse struct {
// The NICs matching this request.
Nics []*NIC `protobuf:"bytes,1,rep,name=nics,proto3" json:"nics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNICsResponse) Reset() { *m = ListNICsResponse{} }
func (m *ListNICsResponse) String() string { return proto.CompactTextString(m) }
func (*ListNICsResponse) ProtoMessage() {}
func (*ListNICsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_04c10592cdcb6ab3, []int{4}
}
func (m *ListNICsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNICsResponse.Unmarshal(m, b)
}
func (m *ListNICsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNICsResponse.Marshal(b, m, deterministic)
}
func (m *ListNICsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNICsResponse.Merge(m, src)
}
func (m *ListNICsResponse) XXX_Size() int {
return xxx_messageInfo_ListNICsResponse.Size(m)
}
func (m *ListNICsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListNICsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListNICsResponse proto.InternalMessageInfo
func (m *ListNICsResponse) GetNics() []*NIC {
if m != nil {
return m.Nics
}
return nil
}
// A request to update a NIC in the database.
type UpdateNICRequest struct {
// The NIC to update in the database.
Nic *NIC `protobuf:"bytes,1,opt,name=nic,proto3" json:"nic,omitempty"`
// The fields to update in the NIC.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateNICRequest) Reset() { *m = UpdateNICRequest{} }
func (m *UpdateNICRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateNICRequest) ProtoMessage() {}
func (*UpdateNICRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_04c10592cdcb6ab3, []int{5}
}
func (m *UpdateNICRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateNICRequest.Unmarshal(m, b)
}
func (m *UpdateNICRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateNICRequest.Marshal(b, m, deterministic)
}
func (m *UpdateNICRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateNICRequest.Merge(m, src)
}
func (m *UpdateNICRequest) XXX_Size() int {
return xxx_messageInfo_UpdateNICRequest.Size(m)
}
func (m *UpdateNICRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateNICRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateNICRequest proto.InternalMessageInfo
func (m *UpdateNICRequest) GetNic() *NIC {
if m != nil {
return m.Nic
}
return nil
}
func (m *UpdateNICRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
func init() {
proto.RegisterType((*NIC)(nil), "crimson.NIC")
proto.RegisterType((*CreateNICRequest)(nil), "crimson.CreateNICRequest")
proto.RegisterType((*DeleteNICRequest)(nil), "crimson.DeleteNICRequest")
proto.RegisterType((*ListNICsRequest)(nil), "crimson.ListNICsRequest")
proto.RegisterType((*ListNICsResponse)(nil), "crimson.ListNICsResponse")
proto.RegisterType((*UpdateNICRequest)(nil), "crimson.UpdateNICRequest")
}
func init() {
proto.RegisterFile("go.chromium.org/luci/machine-db/api/crimson/v1/nics.proto", fileDescriptor_04c10592cdcb6ab3)
}
var fileDescriptor_04c10592cdcb6ab3 = []byte{
// 420 bytes of a gzipped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