blob: a111eea0bfcbc36d8d233f411aa9b4ec3be878cb [file] [log] [blame]
Serge Bazanski4b6f33a2018-10-05 22:28:01 +01001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: config.proto
3
4/*
5Package config is a generated protocol buffer package.
6
7It is generated from these files:
8 config.proto
9
10It has these top-level messages:
11 Config
12 Switch
13 SwitchPort
14*/
15package config
16
17import proto "github.com/golang/protobuf/proto"
18import fmt "fmt"
19import math "math"
20
21// Reference imports to suppress errors if they are not otherwise used.
22var _ = proto.Marshal
23var _ = fmt.Errorf
24var _ = math.Inf
25
26// This is a compile-time assertion to ensure that this generated file
27// is compatible with the proto package it is being compiled against.
28// A compilation error at this line likely means your copy of the
29// proto package needs to be updated.
30const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
31
32type Switch_Connector int32
33
34const (
35 Switch_CONNECTOR_INVALID Switch_Connector = 0
36 Switch_CONNECTOR_M6220 Switch_Connector = 1
37 Switch_CONNECTOR_ARISTA Switch_Connector = 2
38)
39
40var Switch_Connector_name = map[int32]string{
41 0: "CONNECTOR_INVALID",
42 1: "CONNECTOR_M6220",
43 2: "CONNECTOR_ARISTA",
44}
45var Switch_Connector_value = map[string]int32{
46 "CONNECTOR_INVALID": 0,
47 "CONNECTOR_M6220": 1,
48 "CONNECTOR_ARISTA": 2,
49}
50
51func (x Switch_Connector) String() string {
52 return proto.EnumName(Switch_Connector_name, int32(x))
53}
54func (Switch_Connector) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
55
56type Config struct {
57 Switch []*Switch `protobuf:"bytes,1,rep,name=switch" json:"switch,omitempty"`
58}
59
60func (m *Config) Reset() { *m = Config{} }
61func (m *Config) String() string { return proto.CompactTextString(m) }
62func (*Config) ProtoMessage() {}
63func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
64
65func (m *Config) GetSwitch() []*Switch {
66 if m != nil {
67 return m.Switch
68 }
69 return nil
70}
71
72type Switch struct {
73 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
74 Connector Switch_Connector `protobuf:"varint,2,opt,name=connector,enum=Switch_Connector" json:"connector,omitempty"`
75 Address string `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"`
76 ManagedPort []*SwitchPort `protobuf:"bytes,4,rep,name=managed_port,json=managedPort" json:"managed_port,omitempty"`
77}
78
79func (m *Switch) Reset() { *m = Switch{} }
80func (m *Switch) String() string { return proto.CompactTextString(m) }
81func (*Switch) ProtoMessage() {}
82func (*Switch) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
83
84func (m *Switch) GetName() string {
85 if m != nil {
86 return m.Name
87 }
88 return ""
89}
90
91func (m *Switch) GetConnector() Switch_Connector {
92 if m != nil {
93 return m.Connector
94 }
95 return Switch_CONNECTOR_INVALID
96}
97
98func (m *Switch) GetAddress() string {
99 if m != nil {
100 return m.Address
101 }
102 return ""
103}
104
105func (m *Switch) GetManagedPort() []*SwitchPort {
106 if m != nil {
107 return m.ManagedPort
108 }
109 return nil
110}
111
112type SwitchPort struct {
113 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
114}
115
116func (m *SwitchPort) Reset() { *m = SwitchPort{} }
117func (m *SwitchPort) String() string { return proto.CompactTextString(m) }
118func (*SwitchPort) ProtoMessage() {}
119func (*SwitchPort) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
120
121func (m *SwitchPort) GetName() string {
122 if m != nil {
123 return m.Name
124 }
125 return ""
126}
127
128func init() {
129 proto.RegisterType((*Config)(nil), "Config")
130 proto.RegisterType((*Switch)(nil), "Switch")
131 proto.RegisterType((*SwitchPort)(nil), "SwitchPort")
132 proto.RegisterEnum("Switch_Connector", Switch_Connector_name, Switch_Connector_value)
133}
134
135func init() { proto.RegisterFile("config.proto", fileDescriptor0) }
136
137var fileDescriptor0 = []byte{
138 // 242 bytes of a gzipped FileDescriptorProto
139 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0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