blob: e5ef9a34b27cef339e964530bc25a9214fefd8cb [file] [log] [blame]
Serge Bazanski0d3a6cc2018-10-05 16:34:36 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: config.proto
3
4package config
5
6import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 math "math"
10)
11
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = math.Inf
16
17// This is a compile-time assertion to ensure that this generated file
18// is compatible with the proto package it is being compiled against.
19// A compilation error at this line likely means your copy of the
20// proto package needs to be updated.
21const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
22
Serge Bazanski0d3a6cc2018-10-05 16:34:36 -070023type Switch_Segment_Type int32
24
25const (
26 Switch_Segment_TYPE_INVALID Switch_Segment_Type = 0
27 Switch_Segment_TYPE_VLAN Switch_Segment_Type = 1
28)
29
30var Switch_Segment_Type_name = map[int32]string{
31 0: "TYPE_INVALID",
32 1: "TYPE_VLAN",
33}
34
35var Switch_Segment_Type_value = map[string]int32{
36 "TYPE_INVALID": 0,
37 "TYPE_VLAN": 1,
38}
39
40func (x Switch_Segment_Type) String() string {
41 return proto.EnumName(Switch_Segment_Type_name, int32(x))
42}
43
44func (Switch_Segment_Type) EnumDescriptor() ([]byte, []int) {
45 return fileDescriptor_3eaf2c85e69e9ea4, []int{1, 1, 0}
46}
47
48type Config struct {
49 Switch []*Switch `protobuf:"bytes,1,rep,name=switch,proto3" json:"switch,omitempty"`
50 Machine []*Machine `protobuf:"bytes,2,rep,name=machine,proto3" json:"machine,omitempty"`
51 XXX_NoUnkeyedLiteral struct{} `json:"-"`
52 XXX_unrecognized []byte `json:"-"`
53 XXX_sizecache int32 `json:"-"`
54}
55
56func (m *Config) Reset() { *m = Config{} }
57func (m *Config) String() string { return proto.CompactTextString(m) }
58func (*Config) ProtoMessage() {}
59func (*Config) Descriptor() ([]byte, []int) {
60 return fileDescriptor_3eaf2c85e69e9ea4, []int{0}
61}
62
63func (m *Config) XXX_Unmarshal(b []byte) error {
64 return xxx_messageInfo_Config.Unmarshal(m, b)
65}
66func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
67 return xxx_messageInfo_Config.Marshal(b, m, deterministic)
68}
69func (m *Config) XXX_Merge(src proto.Message) {
70 xxx_messageInfo_Config.Merge(m, src)
71}
72func (m *Config) XXX_Size() int {
73 return xxx_messageInfo_Config.Size(m)
74}
75func (m *Config) XXX_DiscardUnknown() {
76 xxx_messageInfo_Config.DiscardUnknown(m)
77}
78
79var xxx_messageInfo_Config proto.InternalMessageInfo
80
81func (m *Config) GetSwitch() []*Switch {
82 if m != nil {
83 return m.Switch
84 }
85 return nil
86}
87
88func (m *Config) GetMachine() []*Machine {
89 if m != nil {
90 return m.Machine
91 }
92 return nil
93}
94
95type Switch struct {
96 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Serge Bazanski16e4ba22018-10-07 00:22:52 +010097 ControlAddress string `protobuf:"bytes,2,opt,name=control_address,json=controlAddress,proto3" json:"control_address,omitempty"`
98 ManagedPort []*Switch_SwitchPort `protobuf:"bytes,3,rep,name=managed_port,json=managedPort,proto3" json:"managed_port,omitempty"`
99 AvailableSegment []*Switch_Segment `protobuf:"bytes,4,rep,name=available_segment,json=availableSegment,proto3" json:"available_segment,omitempty"`
Serge Bazanski0d3a6cc2018-10-05 16:34:36 -0700100 XXX_NoUnkeyedLiteral struct{} `json:"-"`
101 XXX_unrecognized []byte `json:"-"`
102 XXX_sizecache int32 `json:"-"`
103}
104
105func (m *Switch) Reset() { *m = Switch{} }
106func (m *Switch) String() string { return proto.CompactTextString(m) }
107func (*Switch) ProtoMessage() {}
108func (*Switch) Descriptor() ([]byte, []int) {
109 return fileDescriptor_3eaf2c85e69e9ea4, []int{1}
110}
111
112func (m *Switch) XXX_Unmarshal(b []byte) error {
113 return xxx_messageInfo_Switch.Unmarshal(m, b)
114}
115func (m *Switch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
116 return xxx_messageInfo_Switch.Marshal(b, m, deterministic)
117}
118func (m *Switch) XXX_Merge(src proto.Message) {
119 xxx_messageInfo_Switch.Merge(m, src)
120}
121func (m *Switch) XXX_Size() int {
122 return xxx_messageInfo_Switch.Size(m)
123}
124func (m *Switch) XXX_DiscardUnknown() {
125 xxx_messageInfo_Switch.DiscardUnknown(m)
126}
127
128var xxx_messageInfo_Switch proto.InternalMessageInfo
129
130func (m *Switch) GetName() string {
131 if m != nil {
132 return m.Name
133 }
134 return ""
135}
136
Serge Bazanski16e4ba22018-10-07 00:22:52 +0100137func (m *Switch) GetControlAddress() string {
Serge Bazanski0d3a6cc2018-10-05 16:34:36 -0700138 if m != nil {
Serge Bazanski16e4ba22018-10-07 00:22:52 +0100139 return m.ControlAddress
Serge Bazanski0d3a6cc2018-10-05 16:34:36 -0700140 }
141 return ""
142}
143
144func (m *Switch) GetManagedPort() []*Switch_SwitchPort {
145 if m != nil {
146 return m.ManagedPort
147 }
148 return nil
149}
150
151func (m *Switch) GetAvailableSegment() []*Switch_Segment {
152 if m != nil {
153 return m.AvailableSegment
154 }
155 return nil
156}
157
158type Switch_SwitchPort struct {
159 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
160 XXX_NoUnkeyedLiteral struct{} `json:"-"`
161 XXX_unrecognized []byte `json:"-"`
162 XXX_sizecache int32 `json:"-"`
163}
164
165func (m *Switch_SwitchPort) Reset() { *m = Switch_SwitchPort{} }
166func (m *Switch_SwitchPort) String() string { return proto.CompactTextString(m) }
167func (*Switch_SwitchPort) ProtoMessage() {}
168func (*Switch_SwitchPort) Descriptor() ([]byte, []int) {
169 return fileDescriptor_3eaf2c85e69e9ea4, []int{1, 0}
170}
171
172func (m *Switch_SwitchPort) XXX_Unmarshal(b []byte) error {
173 return xxx_messageInfo_Switch_SwitchPort.Unmarshal(m, b)
174}
175func (m *Switch_SwitchPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
176 return xxx_messageInfo_Switch_SwitchPort.Marshal(b, m, deterministic)
177}
178func (m *Switch_SwitchPort) XXX_Merge(src proto.Message) {
179 xxx_messageInfo_Switch_SwitchPort.Merge(m, src)
180}
181func (m *Switch_SwitchPort) XXX_Size() int {
182 return xxx_messageInfo_Switch_SwitchPort.Size(m)
183}
184func (m *Switch_SwitchPort) XXX_DiscardUnknown() {
185 xxx_messageInfo_Switch_SwitchPort.DiscardUnknown(m)
186}
187
188var xxx_messageInfo_Switch_SwitchPort proto.InternalMessageInfo
189
190func (m *Switch_SwitchPort) GetName() string {
191 if m != nil {
192 return m.Name
193 }
194 return ""
195}
196
197type Switch_Segment struct {
198 SegmentType Switch_Segment_Type `protobuf:"varint,1,opt,name=segment_type,json=segmentType,proto3,enum=Switch_Segment_Type" json:"segment_type,omitempty"`
199 VlanId int32 `protobuf:"varint,2,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"`
200 XXX_NoUnkeyedLiteral struct{} `json:"-"`
201 XXX_unrecognized []byte `json:"-"`
202 XXX_sizecache int32 `json:"-"`
203}
204
205func (m *Switch_Segment) Reset() { *m = Switch_Segment{} }
206func (m *Switch_Segment) String() string { return proto.CompactTextString(m) }
207func (*Switch_Segment) ProtoMessage() {}
208func (*Switch_Segment) Descriptor() ([]byte, []int) {
209 return fileDescriptor_3eaf2c85e69e9ea4, []int{1, 1}
210}
211
212func (m *Switch_Segment) XXX_Unmarshal(b []byte) error {
213 return xxx_messageInfo_Switch_Segment.Unmarshal(m, b)
214}
215func (m *Switch_Segment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
216 return xxx_messageInfo_Switch_Segment.Marshal(b, m, deterministic)
217}
218func (m *Switch_Segment) XXX_Merge(src proto.Message) {
219 xxx_messageInfo_Switch_Segment.Merge(m, src)
220}
221func (m *Switch_Segment) XXX_Size() int {
222 return xxx_messageInfo_Switch_Segment.Size(m)
223}
224func (m *Switch_Segment) XXX_DiscardUnknown() {
225 xxx_messageInfo_Switch_Segment.DiscardUnknown(m)
226}
227
228var xxx_messageInfo_Switch_Segment proto.InternalMessageInfo
229
230func (m *Switch_Segment) GetSegmentType() Switch_Segment_Type {
231 if m != nil {
232 return m.SegmentType
233 }
234 return Switch_Segment_TYPE_INVALID
235}
236
237func (m *Switch_Segment) GetVlanId() int32 {
238 if m != nil {
239 return m.VlanId
240 }
241 return 0
242}
243
244type Machine struct {
245 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
246 ManagedPort []*Machine_Port `protobuf:"bytes,2,rep,name=managed_port,json=managedPort,proto3" json:"managed_port,omitempty"`
247 XXX_NoUnkeyedLiteral struct{} `json:"-"`
248 XXX_unrecognized []byte `json:"-"`
249 XXX_sizecache int32 `json:"-"`
250}
251
252func (m *Machine) Reset() { *m = Machine{} }
253func (m *Machine) String() string { return proto.CompactTextString(m) }
254func (*Machine) ProtoMessage() {}
255func (*Machine) Descriptor() ([]byte, []int) {
256 return fileDescriptor_3eaf2c85e69e9ea4, []int{2}
257}
258
259func (m *Machine) XXX_Unmarshal(b []byte) error {
260 return xxx_messageInfo_Machine.Unmarshal(m, b)
261}
262func (m *Machine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
263 return xxx_messageInfo_Machine.Marshal(b, m, deterministic)
264}
265func (m *Machine) XXX_Merge(src proto.Message) {
266 xxx_messageInfo_Machine.Merge(m, src)
267}
268func (m *Machine) XXX_Size() int {
269 return xxx_messageInfo_Machine.Size(m)
270}
271func (m *Machine) XXX_DiscardUnknown() {
272 xxx_messageInfo_Machine.DiscardUnknown(m)
273}
274
275var xxx_messageInfo_Machine proto.InternalMessageInfo
276
277func (m *Machine) GetName() string {
278 if m != nil {
279 return m.Name
280 }
281 return ""
282}
283
284func (m *Machine) GetManagedPort() []*Machine_Port {
285 if m != nil {
286 return m.ManagedPort
287 }
288 return nil
289}
290
291type Machine_Port struct {
292 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
293 XXX_NoUnkeyedLiteral struct{} `json:"-"`
294 XXX_unrecognized []byte `json:"-"`
295 XXX_sizecache int32 `json:"-"`
296}
297
298func (m *Machine_Port) Reset() { *m = Machine_Port{} }
299func (m *Machine_Port) String() string { return proto.CompactTextString(m) }
300func (*Machine_Port) ProtoMessage() {}
301func (*Machine_Port) Descriptor() ([]byte, []int) {
302 return fileDescriptor_3eaf2c85e69e9ea4, []int{2, 0}
303}
304
305func (m *Machine_Port) XXX_Unmarshal(b []byte) error {
306 return xxx_messageInfo_Machine_Port.Unmarshal(m, b)
307}
308func (m *Machine_Port) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
309 return xxx_messageInfo_Machine_Port.Marshal(b, m, deterministic)
310}
311func (m *Machine_Port) XXX_Merge(src proto.Message) {
312 xxx_messageInfo_Machine_Port.Merge(m, src)
313}
314func (m *Machine_Port) XXX_Size() int {
315 return xxx_messageInfo_Machine_Port.Size(m)
316}
317func (m *Machine_Port) XXX_DiscardUnknown() {
318 xxx_messageInfo_Machine_Port.DiscardUnknown(m)
319}
320
321var xxx_messageInfo_Machine_Port proto.InternalMessageInfo
322
323func (m *Machine_Port) GetName() string {
324 if m != nil {
325 return m.Name
326 }
327 return ""
328}
329
330func init() {
Serge Bazanski0d3a6cc2018-10-05 16:34:36 -0700331 proto.RegisterEnum("Switch_Segment_Type", Switch_Segment_Type_name, Switch_Segment_Type_value)
332 proto.RegisterType((*Config)(nil), "Config")
333 proto.RegisterType((*Switch)(nil), "Switch")
334 proto.RegisterType((*Switch_SwitchPort)(nil), "Switch.SwitchPort")
335 proto.RegisterType((*Switch_Segment)(nil), "Switch.Segment")
336 proto.RegisterType((*Machine)(nil), "Machine")
337 proto.RegisterType((*Machine_Port)(nil), "Machine.Port")
338}
339
340func init() { proto.RegisterFile("config.proto", fileDescriptor_3eaf2c85e69e9ea4) }
341
342var fileDescriptor_3eaf2c85e69e9ea4 = []byte{
Serge Bazanski16e4ba22018-10-07 00:22:52 +0100343 // 335 bytes of a gzipped FileDescriptorProto
344 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0x41, 0x4f, 0xc2, 0x30,
345 0x14, 0x76, 0x30, 0x37, 0x79, 0x0c, 0x98, 0x8d, 0x89, 0xcb, 0x2e, 0x92, 0x5d, 0xe0, 0xb4, 0x18,
346 0x8c, 0xf1, 0xe2, 0x85, 0xa8, 0x07, 0x12, 0x20, 0xa4, 0x12, 0x12, 0x4f, 0x4b, 0xd9, 0x2a, 0x2c,
347 0x6e, 0xed, 0xb2, 0x35, 0x18, 0xee, 0xfe, 0x53, 0xff, 0x88, 0xa1, 0x2d, 0x98, 0x20, 0x9e, 0xda,
348 0xef, 0x7b, 0xdf, 0xeb, 0x7b, 0xef, 0x7b, 0x05, 0x27, 0xe6, 0xec, 0x3d, 0x5d, 0x85, 0x45, 0xc9,
349 0x05, 0x0f, 0x26, 0x60, 0x3d, 0x49, 0x8c, 0x6e, 0xc0, 0xaa, 0x3e, 0x53, 0x11, 0xaf, 0x3d, 0xa3,
350 0x5b, 0xef, 0x37, 0x07, 0x76, 0xf8, 0x2a, 0x21, 0xd6, 0x34, 0x0a, 0xc0, 0xce, 0x49, 0xbc, 0x4e,
351 0x19, 0xf5, 0x6a, 0x52, 0x71, 0x11, 0x4e, 0x14, 0xc6, 0xfb, 0x40, 0xf0, 0x5d, 0x03, 0x4b, 0xa5,
352 0x21, 0x04, 0x26, 0x23, 0x39, 0xf5, 0x8c, 0xae, 0xd1, 0x6f, 0x60, 0x79, 0x47, 0x3d, 0xe8, 0xc4,
353 0x9c, 0x89, 0x92, 0x67, 0x11, 0x49, 0x92, 0x92, 0x56, 0x95, 0x57, 0x93, 0xe1, 0xb6, 0xa6, 0x87,
354 0x8a, 0x45, 0xf7, 0xe0, 0xe4, 0x84, 0x91, 0x15, 0x4d, 0xa2, 0x82, 0x97, 0xc2, 0xab, 0xcb, 0x82,
355 0x48, 0xb7, 0xa4, 0x8f, 0x19, 0x2f, 0x05, 0x6e, 0x6a, 0xdd, 0x0e, 0xa0, 0x47, 0xb8, 0x24, 0x1b,
356 0x92, 0x66, 0x64, 0x99, 0xd1, 0xa8, 0xa2, 0xab, 0x9c, 0x32, 0xe1, 0x99, 0x32, 0xb7, 0x73, 0xc8,
357 0x55, 0x34, 0x76, 0x0f, 0x4a, 0xcd, 0xf8, 0x5d, 0x80, 0xdf, 0x87, 0x4f, 0xf5, 0xef, 0x7f, 0x19,
358 0x60, 0x6b, 0x35, 0x7a, 0x00, 0x47, 0x57, 0x88, 0xc4, 0xb6, 0x50, 0xba, 0xf6, 0xe0, 0xea, 0xa8,
359 0x4c, 0x38, 0xdf, 0x16, 0x14, 0x37, 0xb5, 0x72, 0x07, 0xd0, 0x35, 0xd8, 0x9b, 0x8c, 0xb0, 0x28,
360 0x4d, 0xe4, 0xf0, 0xe7, 0xd8, 0xda, 0xc1, 0x51, 0x12, 0xf4, 0xc0, 0x94, 0x02, 0x17, 0x9c, 0xf9,
361 0xdb, 0xec, 0x25, 0x1a, 0x4d, 0x17, 0xc3, 0xf1, 0xe8, 0xd9, 0x3d, 0x43, 0x2d, 0x68, 0x48, 0x66,
362 0x31, 0x1e, 0x4e, 0x5d, 0x23, 0xf8, 0x00, 0x5b, 0x3b, 0x7f, 0xd2, 0xe5, 0xdb, 0x23, 0xf3, 0xd4,
363 0xb6, 0x5a, 0xfb, 0x6d, 0x85, 0x7f, 0x7c, 0xf3, 0x7d, 0x30, 0xff, 0x9b, 0x79, 0x69, 0xc9, 0x8f,
364 0x72, 0xf7, 0x13, 0x00, 0x00, 0xff, 0xff, 0x58, 0xe3, 0x1a, 0xb1, 0x38, 0x02, 0x00, 0x00,
Serge Bazanski0d3a6cc2018-10-05 16:34:36 -0700365}