/
kvms.pb.go
319 lines (282 loc) · 10.7 KB
/
kvms.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/machine-db/api/crimson/v1/kvms.proto
package crimson
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
v1 "github.com/TriggerMail/luci-go/machine-db/api/common/v1"
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.ProtoPackageIsVersion2 // please upgrade the proto package
// A KVM in the database.
type KVM struct {
// The name of this KVM on the network. Uniquely identifies this KVM.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The VLAN this KVM belongs to.
Vlan int64 `protobuf:"varint,2,opt,name=vlan,proto3" json:"vlan,omitempty"`
// The type of platform this KVM is.
Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
// The datacenter this KVM belongs to.
Datacenter string `protobuf:"bytes,4,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
// The rack this KVM belongs to.
Rack string `protobuf:"bytes,5,opt,name=rack,proto3" json:"rack,omitempty"`
// A description of this KVM.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// The MAC address associated with this KVM.
MacAddress string `protobuf:"bytes,7,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
// The IPv4 address associated with this KVM.
Ipv4 string `protobuf:"bytes,8,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
// The state of this KVM.
State v1.State `protobuf:"varint,9,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KVM) Reset() { *m = KVM{} }
func (m *KVM) String() string { return proto.CompactTextString(m) }
func (*KVM) ProtoMessage() {}
func (*KVM) Descriptor() ([]byte, []int) {
return fileDescriptor_1ff02130521e1400, []int{0}
}
func (m *KVM) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KVM.Unmarshal(m, b)
}
func (m *KVM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KVM.Marshal(b, m, deterministic)
}
func (m *KVM) XXX_Merge(src proto.Message) {
xxx_messageInfo_KVM.Merge(m, src)
}
func (m *KVM) XXX_Size() int {
return xxx_messageInfo_KVM.Size(m)
}
func (m *KVM) XXX_DiscardUnknown() {
xxx_messageInfo_KVM.DiscardUnknown(m)
}
var xxx_messageInfo_KVM proto.InternalMessageInfo
func (m *KVM) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *KVM) GetVlan() int64 {
if m != nil {
return m.Vlan
}
return 0
}
func (m *KVM) GetPlatform() string {
if m != nil {
return m.Platform
}
return ""
}
func (m *KVM) GetDatacenter() string {
if m != nil {
return m.Datacenter
}
return ""
}
func (m *KVM) GetRack() string {
if m != nil {
return m.Rack
}
return ""
}
func (m *KVM) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *KVM) GetMacAddress() string {
if m != nil {
return m.MacAddress
}
return ""
}
func (m *KVM) GetIpv4() string {
if m != nil {
return m.Ipv4
}
return ""
}
func (m *KVM) GetState() v1.State {
if m != nil {
return m.State
}
return v1.State_STATE_UNSPECIFIED
}
// A request to list KVMs in the database.
type ListKVMsRequest struct {
// The names of KVMs to retrieve.
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
// The VLANs to filter retrieved KVMs on.
Vlans []int64 `protobuf:"varint,2,rep,packed,name=vlans,proto3" json:"vlans,omitempty"`
// The platforms to filter retrieved KVMs on.
Platforms []string `protobuf:"bytes,3,rep,name=platforms,proto3" json:"platforms,omitempty"`
// The datacenters to filter retrieved KVMs on.
Datacenters []string `protobuf:"bytes,4,rep,name=datacenters,proto3" json:"datacenters,omitempty"`
// The racks to filter retrieved KVMs on.
Racks []string `protobuf:"bytes,5,rep,name=racks,proto3" json:"racks,omitempty"`
// The MAC addresses to filter retrieved KVMs on.
MacAddresses []string `protobuf:"bytes,6,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
// The IPv4 addresses to filter retrieved KVMs on.
Ipv4S []string `protobuf:"bytes,7,rep,name=ipv4s,proto3" json:"ipv4s,omitempty"`
// The states to filter retrieved KVMs on.
States []v1.State `protobuf:"varint,8,rep,packed,name=states,proto3,enum=common.State" json:"states,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListKVMsRequest) Reset() { *m = ListKVMsRequest{} }
func (m *ListKVMsRequest) String() string { return proto.CompactTextString(m) }
func (*ListKVMsRequest) ProtoMessage() {}
func (*ListKVMsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1ff02130521e1400, []int{1}
}
func (m *ListKVMsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListKVMsRequest.Unmarshal(m, b)
}
func (m *ListKVMsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListKVMsRequest.Marshal(b, m, deterministic)
}
func (m *ListKVMsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListKVMsRequest.Merge(m, src)
}
func (m *ListKVMsRequest) XXX_Size() int {
return xxx_messageInfo_ListKVMsRequest.Size(m)
}
func (m *ListKVMsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListKVMsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListKVMsRequest proto.InternalMessageInfo
func (m *ListKVMsRequest) GetNames() []string {
if m != nil {
return m.Names
}
return nil
}
func (m *ListKVMsRequest) GetVlans() []int64 {
if m != nil {
return m.Vlans
}
return nil
}
func (m *ListKVMsRequest) GetPlatforms() []string {
if m != nil {
return m.Platforms
}
return nil
}
func (m *ListKVMsRequest) GetDatacenters() []string {
if m != nil {
return m.Datacenters
}
return nil
}
func (m *ListKVMsRequest) GetRacks() []string {
if m != nil {
return m.Racks
}
return nil
}
func (m *ListKVMsRequest) GetMacAddresses() []string {
if m != nil {
return m.MacAddresses
}
return nil
}
func (m *ListKVMsRequest) GetIpv4S() []string {
if m != nil {
return m.Ipv4S
}
return nil
}
func (m *ListKVMsRequest) GetStates() []v1.State {
if m != nil {
return m.States
}
return nil
}
// A response containing a list of KVMs in the database.
type ListKVMsResponse struct {
// The KVMs matching the request.
Kvms []*KVM `protobuf:"bytes,1,rep,name=kvms,proto3" json:"kvms,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListKVMsResponse) Reset() { *m = ListKVMsResponse{} }
func (m *ListKVMsResponse) String() string { return proto.CompactTextString(m) }
func (*ListKVMsResponse) ProtoMessage() {}
func (*ListKVMsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1ff02130521e1400, []int{2}
}
func (m *ListKVMsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListKVMsResponse.Unmarshal(m, b)
}
func (m *ListKVMsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListKVMsResponse.Marshal(b, m, deterministic)
}
func (m *ListKVMsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListKVMsResponse.Merge(m, src)
}
func (m *ListKVMsResponse) XXX_Size() int {
return xxx_messageInfo_ListKVMsResponse.Size(m)
}
func (m *ListKVMsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListKVMsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListKVMsResponse proto.InternalMessageInfo
func (m *ListKVMsResponse) GetKvms() []*KVM {
if m != nil {
return m.Kvms
}
return nil
}
func init() {
proto.RegisterType((*KVM)(nil), "crimson.KVM")
proto.RegisterType((*ListKVMsRequest)(nil), "crimson.ListKVMsRequest")
proto.RegisterType((*ListKVMsResponse)(nil), "crimson.ListKVMsResponse")
}
func init() {
proto.RegisterFile("github.com/TriggerMail/luci-go/machine-db/api/crimson/v1/kvms.proto", fileDescriptor_1ff02130521e1400)
}
var fileDescriptor_1ff02130521e1400 = []byte{
// 398 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x6f, 0x13, 0x31,
0x10, 0x85, 0xb5, 0xdd, 0x24, 0x4d, 0x26, 0x2d, 0x20, 0x8b, 0xc3, 0xa8, 0x42, 0x60, 0xa5, 0x42,
0xda, 0x0b, 0xbb, 0xa2, 0xf4, 0x02, 0x37, 0xce, 0x21, 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