Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: control.proto |
| 3 | |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 4 | package connector |
| 5 | |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 6 | import ( |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 9 | context "golang.org/x/net/context" |
| 10 | grpc "google.golang.org/grpc" |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 11 | math "math" |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | // Reference imports to suppress errors if they are not otherwise used. |
| 15 | var _ = proto.Marshal |
| 16 | var _ = fmt.Errorf |
| 17 | var _ = math.Inf |
| 18 | |
| 19 | // This is a compile-time assertion to ensure that this generated file |
| 20 | // is compatible with the proto package it is being compiled against. |
| 21 | // A compilation error at this line likely means your copy of the |
| 22 | // proto package needs to be updated. |
| 23 | const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| 24 | |
| 25 | type SwitchPort_Speed int32 |
| 26 | |
| 27 | const ( |
| 28 | SwitchPort_SPEED_INVALID SwitchPort_Speed = 0 |
| 29 | SwitchPort_SPEED_100M SwitchPort_Speed = 1 |
| 30 | SwitchPort_SPEED_1G SwitchPort_Speed = 2 |
| 31 | SwitchPort_SPEED_10G SwitchPort_Speed = 3 |
| 32 | ) |
| 33 | |
| 34 | var SwitchPort_Speed_name = map[int32]string{ |
| 35 | 0: "SPEED_INVALID", |
| 36 | 1: "SPEED_100M", |
| 37 | 2: "SPEED_1G", |
| 38 | 3: "SPEED_10G", |
| 39 | } |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 40 | |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 41 | var SwitchPort_Speed_value = map[string]int32{ |
| 42 | "SPEED_INVALID": 0, |
| 43 | "SPEED_100M": 1, |
| 44 | "SPEED_1G": 2, |
| 45 | "SPEED_10G": 3, |
| 46 | } |
| 47 | |
| 48 | func (x SwitchPort_Speed) String() string { |
| 49 | return proto.EnumName(SwitchPort_Speed_name, int32(x)) |
| 50 | } |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 51 | |
| 52 | func (SwitchPort_Speed) EnumDescriptor() ([]byte, []int) { |
| 53 | return fileDescriptor_0c5120591600887d, []int{1, 0} |
| 54 | } |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 55 | |
| 56 | type SwitchPort_LinkState int32 |
| 57 | |
| 58 | const ( |
| 59 | SwitchPort_LINKSTATE_INVALID SwitchPort_LinkState = 0 |
| 60 | SwitchPort_LINKSTATE_DOWN SwitchPort_LinkState = 1 |
| 61 | SwitchPort_LINKSTATE_UP SwitchPort_LinkState = 2 |
| 62 | ) |
| 63 | |
| 64 | var SwitchPort_LinkState_name = map[int32]string{ |
| 65 | 0: "LINKSTATE_INVALID", |
| 66 | 1: "LINKSTATE_DOWN", |
| 67 | 2: "LINKSTATE_UP", |
| 68 | } |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 69 | |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 70 | var SwitchPort_LinkState_value = map[string]int32{ |
| 71 | "LINKSTATE_INVALID": 0, |
| 72 | "LINKSTATE_DOWN": 1, |
| 73 | "LINKSTATE_UP": 2, |
| 74 | } |
| 75 | |
| 76 | func (x SwitchPort_LinkState) String() string { |
| 77 | return proto.EnumName(SwitchPort_LinkState_name, int32(x)) |
| 78 | } |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 79 | |
| 80 | func (SwitchPort_LinkState) EnumDescriptor() ([]byte, []int) { |
| 81 | return fileDescriptor_0c5120591600887d, []int{1, 1} |
| 82 | } |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 83 | |
| 84 | type SwitchPort_PortMode int32 |
| 85 | |
| 86 | const ( |
| 87 | SwitchPort_PORTMODE_INVALID SwitchPort_PortMode = 0 |
| 88 | // Interface is bridged to a VLAN, untagged. |
| 89 | SwitchPort_PORTMODE_SWITCHPORT_UNTAGGED SwitchPort_PortMode = 1 |
| 90 | // Interfaces is bridged to several tagged 802.1q VLANs. |
| 91 | SwitchPort_PORTMODE_SWITCHPORT_TAGGED SwitchPort_PortMode = 2 |
| 92 | // Interface is in 'generic', both tagged 802.1q and untagged mode. |
| 93 | SwitchPort_PORTMODE_SWITCHPORT_GENERIC SwitchPort_PortMode = 3 |
| 94 | // Interface is routed, ie routes packets from a separate L3 network |
| 95 | // and the Switch is the default gateway for machines in this network. |
| 96 | SwitchPort_PORTMODE_ROUTED SwitchPort_PortMode = 4 |
| 97 | // Interface is in a configuration state that cannot be clearly stated |
| 98 | // in terms of this enum, and should be reconfigured. |
| 99 | SwitchPort_PORTMODE_MANGLED SwitchPort_PortMode = 5 |
| 100 | ) |
| 101 | |
| 102 | var SwitchPort_PortMode_name = map[int32]string{ |
| 103 | 0: "PORTMODE_INVALID", |
| 104 | 1: "PORTMODE_SWITCHPORT_UNTAGGED", |
| 105 | 2: "PORTMODE_SWITCHPORT_TAGGED", |
| 106 | 3: "PORTMODE_SWITCHPORT_GENERIC", |
| 107 | 4: "PORTMODE_ROUTED", |
| 108 | 5: "PORTMODE_MANGLED", |
| 109 | } |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 110 | |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 111 | var SwitchPort_PortMode_value = map[string]int32{ |
| 112 | "PORTMODE_INVALID": 0, |
| 113 | "PORTMODE_SWITCHPORT_UNTAGGED": 1, |
| 114 | "PORTMODE_SWITCHPORT_TAGGED": 2, |
| 115 | "PORTMODE_SWITCHPORT_GENERIC": 3, |
| 116 | "PORTMODE_ROUTED": 4, |
| 117 | "PORTMODE_MANGLED": 5, |
| 118 | } |
| 119 | |
| 120 | func (x SwitchPort_PortMode) String() string { |
| 121 | return proto.EnumName(SwitchPort_PortMode_name, int32(x)) |
| 122 | } |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 123 | |
| 124 | func (SwitchPort_PortMode) EnumDescriptor() ([]byte, []int) { |
| 125 | return fileDescriptor_0c5120591600887d, []int{1, 2} |
| 126 | } |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 127 | |
| 128 | type SwitchPort_SpanningTreeMode int32 |
| 129 | |
| 130 | const ( |
| 131 | SwitchPort_SPANNING_TREE_MODE_INVALID SwitchPort_SpanningTreeMode = 0 |
| 132 | // Send STP BPDU, on timeout switch to Forwarding. |
| 133 | SwitchPort_SPANNING_TREE_MODE_AUTO_PORTFAST SwitchPort_SpanningTreeMode = 1 |
| 134 | // Switch to Forwarding immediately on link up. |
| 135 | SwitchPort_SPANNING_TREE_MODE_PORTFAST SwitchPort_SpanningTreeMode = 2 |
| 136 | ) |
| 137 | |
| 138 | var SwitchPort_SpanningTreeMode_name = map[int32]string{ |
| 139 | 0: "SPANNING_TREE_MODE_INVALID", |
| 140 | 1: "SPANNING_TREE_MODE_AUTO_PORTFAST", |
| 141 | 2: "SPANNING_TREE_MODE_PORTFAST", |
| 142 | } |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 143 | |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 144 | var SwitchPort_SpanningTreeMode_value = map[string]int32{ |
| 145 | "SPANNING_TREE_MODE_INVALID": 0, |
| 146 | "SPANNING_TREE_MODE_AUTO_PORTFAST": 1, |
| 147 | "SPANNING_TREE_MODE_PORTFAST": 2, |
| 148 | } |
| 149 | |
| 150 | func (x SwitchPort_SpanningTreeMode) String() string { |
| 151 | return proto.EnumName(SwitchPort_SpanningTreeMode_name, int32(x)) |
| 152 | } |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 153 | |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 154 | func (SwitchPort_SpanningTreeMode) EnumDescriptor() ([]byte, []int) { |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 155 | return fileDescriptor_0c5120591600887d, []int{1, 3} |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 156 | } |
| 157 | |
| 158 | type GetPortsRequest struct { |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 159 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 160 | XXX_unrecognized []byte `json:"-"` |
| 161 | XXX_sizecache int32 `json:"-"` |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 162 | } |
| 163 | |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 164 | func (m *GetPortsRequest) Reset() { *m = GetPortsRequest{} } |
| 165 | func (m *GetPortsRequest) String() string { return proto.CompactTextString(m) } |
| 166 | func (*GetPortsRequest) ProtoMessage() {} |
| 167 | func (*GetPortsRequest) Descriptor() ([]byte, []int) { |
| 168 | return fileDescriptor_0c5120591600887d, []int{0} |
| 169 | } |
| 170 | |
| 171 | func (m *GetPortsRequest) XXX_Unmarshal(b []byte) error { |
| 172 | return xxx_messageInfo_GetPortsRequest.Unmarshal(m, b) |
| 173 | } |
| 174 | func (m *GetPortsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 175 | return xxx_messageInfo_GetPortsRequest.Marshal(b, m, deterministic) |
| 176 | } |
| 177 | func (m *GetPortsRequest) XXX_Merge(src proto.Message) { |
| 178 | xxx_messageInfo_GetPortsRequest.Merge(m, src) |
| 179 | } |
| 180 | func (m *GetPortsRequest) XXX_Size() int { |
| 181 | return xxx_messageInfo_GetPortsRequest.Size(m) |
| 182 | } |
| 183 | func (m *GetPortsRequest) XXX_DiscardUnknown() { |
| 184 | xxx_messageInfo_GetPortsRequest.DiscardUnknown(m) |
| 185 | } |
| 186 | |
| 187 | var xxx_messageInfo_GetPortsRequest proto.InternalMessageInfo |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 188 | |
| 189 | type SwitchPort struct { |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 190 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 191 | Speed SwitchPort_Speed `protobuf:"varint,2,opt,name=speed,proto3,enum=connector.SwitchPort_Speed" json:"speed,omitempty"` |
| 192 | LinkState SwitchPort_LinkState `protobuf:"varint,3,opt,name=link_state,json=linkState,proto3,enum=connector.SwitchPort_LinkState" json:"link_state,omitempty"` |
| 193 | PortMode SwitchPort_PortMode `protobuf:"varint,4,opt,name=port_mode,json=portMode,proto3,enum=connector.SwitchPort_PortMode" json:"port_mode,omitempty"` |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 194 | // For PORTMODE_SWITCHPORT_UNTAGGED and PORTMODE_SWITCHPORT_GENERIC, the |
| 195 | // VLAN ID that this interface is natively bridged to. |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 196 | VlanNative int32 `protobuf:"varint,5,opt,name=vlan_native,json=vlanNative,proto3" json:"vlan_native,omitempty"` |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 197 | // For PORTMODE_SWITCHPORT_TAGGED and PORTMODE_SWITCHPORT_GENERIC, the VLAN |
| 198 | // IDs that the interface is bridged to using 802.1q tags. |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 199 | VlanTagged []int32 `protobuf:"varint,6,rep,packed,name=vlan_tagged,json=vlanTagged,proto3" json:"vlan_tagged,omitempty"` |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 200 | // For PORTMODE_ROUTED |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 201 | Prefixes []string `protobuf:"bytes,7,rep,name=prefixes,proto3" json:"prefixes,omitempty"` |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 202 | // Interface MTU |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 203 | Mtu int32 `protobuf:"varint,8,opt,name=mtu,proto3" json:"mtu,omitempty"` |
| 204 | SpanningTreeMode SwitchPort_SpanningTreeMode `protobuf:"varint,9,opt,name=spanning_tree_mode,json=spanningTreeMode,proto3,enum=connector.SwitchPort_SpanningTreeMode" json:"spanning_tree_mode,omitempty"` |
| 205 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 206 | XXX_unrecognized []byte `json:"-"` |
| 207 | XXX_sizecache int32 `json:"-"` |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 208 | } |
| 209 | |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 210 | func (m *SwitchPort) Reset() { *m = SwitchPort{} } |
| 211 | func (m *SwitchPort) String() string { return proto.CompactTextString(m) } |
| 212 | func (*SwitchPort) ProtoMessage() {} |
| 213 | func (*SwitchPort) Descriptor() ([]byte, []int) { |
| 214 | return fileDescriptor_0c5120591600887d, []int{1} |
| 215 | } |
| 216 | |
| 217 | func (m *SwitchPort) XXX_Unmarshal(b []byte) error { |
| 218 | return xxx_messageInfo_SwitchPort.Unmarshal(m, b) |
| 219 | } |
| 220 | func (m *SwitchPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 221 | return xxx_messageInfo_SwitchPort.Marshal(b, m, deterministic) |
| 222 | } |
| 223 | func (m *SwitchPort) XXX_Merge(src proto.Message) { |
| 224 | xxx_messageInfo_SwitchPort.Merge(m, src) |
| 225 | } |
| 226 | func (m *SwitchPort) XXX_Size() int { |
| 227 | return xxx_messageInfo_SwitchPort.Size(m) |
| 228 | } |
| 229 | func (m *SwitchPort) XXX_DiscardUnknown() { |
| 230 | xxx_messageInfo_SwitchPort.DiscardUnknown(m) |
| 231 | } |
| 232 | |
| 233 | var xxx_messageInfo_SwitchPort proto.InternalMessageInfo |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 234 | |
| 235 | func (m *SwitchPort) GetName() string { |
| 236 | if m != nil { |
| 237 | return m.Name |
| 238 | } |
| 239 | return "" |
| 240 | } |
| 241 | |
| 242 | func (m *SwitchPort) GetSpeed() SwitchPort_Speed { |
| 243 | if m != nil { |
| 244 | return m.Speed |
| 245 | } |
| 246 | return SwitchPort_SPEED_INVALID |
| 247 | } |
| 248 | |
| 249 | func (m *SwitchPort) GetLinkState() SwitchPort_LinkState { |
| 250 | if m != nil { |
| 251 | return m.LinkState |
| 252 | } |
| 253 | return SwitchPort_LINKSTATE_INVALID |
| 254 | } |
| 255 | |
| 256 | func (m *SwitchPort) GetPortMode() SwitchPort_PortMode { |
| 257 | if m != nil { |
| 258 | return m.PortMode |
| 259 | } |
| 260 | return SwitchPort_PORTMODE_INVALID |
| 261 | } |
| 262 | |
| 263 | func (m *SwitchPort) GetVlanNative() int32 { |
| 264 | if m != nil { |
| 265 | return m.VlanNative |
| 266 | } |
| 267 | return 0 |
| 268 | } |
| 269 | |
| 270 | func (m *SwitchPort) GetVlanTagged() []int32 { |
| 271 | if m != nil { |
| 272 | return m.VlanTagged |
| 273 | } |
| 274 | return nil |
| 275 | } |
| 276 | |
| 277 | func (m *SwitchPort) GetPrefixes() []string { |
| 278 | if m != nil { |
| 279 | return m.Prefixes |
| 280 | } |
| 281 | return nil |
| 282 | } |
| 283 | |
| 284 | func (m *SwitchPort) GetMtu() int32 { |
| 285 | if m != nil { |
| 286 | return m.Mtu |
| 287 | } |
| 288 | return 0 |
| 289 | } |
| 290 | |
| 291 | func (m *SwitchPort) GetSpanningTreeMode() SwitchPort_SpanningTreeMode { |
| 292 | if m != nil { |
| 293 | return m.SpanningTreeMode |
| 294 | } |
| 295 | return SwitchPort_SPANNING_TREE_MODE_INVALID |
| 296 | } |
| 297 | |
| 298 | type GetPortsResponse struct { |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 299 | Ports []*SwitchPort `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"` |
| 300 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 301 | XXX_unrecognized []byte `json:"-"` |
| 302 | XXX_sizecache int32 `json:"-"` |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 303 | } |
| 304 | |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 305 | func (m *GetPortsResponse) Reset() { *m = GetPortsResponse{} } |
| 306 | func (m *GetPortsResponse) String() string { return proto.CompactTextString(m) } |
| 307 | func (*GetPortsResponse) ProtoMessage() {} |
| 308 | func (*GetPortsResponse) Descriptor() ([]byte, []int) { |
| 309 | return fileDescriptor_0c5120591600887d, []int{2} |
| 310 | } |
| 311 | |
| 312 | func (m *GetPortsResponse) XXX_Unmarshal(b []byte) error { |
| 313 | return xxx_messageInfo_GetPortsResponse.Unmarshal(m, b) |
| 314 | } |
| 315 | func (m *GetPortsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 316 | return xxx_messageInfo_GetPortsResponse.Marshal(b, m, deterministic) |
| 317 | } |
| 318 | func (m *GetPortsResponse) XXX_Merge(src proto.Message) { |
| 319 | xxx_messageInfo_GetPortsResponse.Merge(m, src) |
| 320 | } |
| 321 | func (m *GetPortsResponse) XXX_Size() int { |
| 322 | return xxx_messageInfo_GetPortsResponse.Size(m) |
| 323 | } |
| 324 | func (m *GetPortsResponse) XXX_DiscardUnknown() { |
| 325 | xxx_messageInfo_GetPortsResponse.DiscardUnknown(m) |
| 326 | } |
| 327 | |
| 328 | var xxx_messageInfo_GetPortsResponse proto.InternalMessageInfo |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 329 | |
| 330 | func (m *GetPortsResponse) GetPorts() []*SwitchPort { |
| 331 | if m != nil { |
| 332 | return m.Ports |
| 333 | } |
| 334 | return nil |
| 335 | } |
| 336 | |
| 337 | func init() { |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 338 | proto.RegisterEnum("connector.SwitchPort_Speed", SwitchPort_Speed_name, SwitchPort_Speed_value) |
| 339 | proto.RegisterEnum("connector.SwitchPort_LinkState", SwitchPort_LinkState_name, SwitchPort_LinkState_value) |
| 340 | proto.RegisterEnum("connector.SwitchPort_PortMode", SwitchPort_PortMode_name, SwitchPort_PortMode_value) |
| 341 | proto.RegisterEnum("connector.SwitchPort_SpanningTreeMode", SwitchPort_SpanningTreeMode_name, SwitchPort_SpanningTreeMode_value) |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 342 | proto.RegisterType((*GetPortsRequest)(nil), "connector.GetPortsRequest") |
| 343 | proto.RegisterType((*SwitchPort)(nil), "connector.SwitchPort") |
| 344 | proto.RegisterType((*GetPortsResponse)(nil), "connector.GetPortsResponse") |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 345 | } |
| 346 | |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 347 | func init() { proto.RegisterFile("control.proto", fileDescriptor_0c5120591600887d) } |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 348 | |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 349 | var fileDescriptor_0c5120591600887d = []byte{ |
Serge Bazanski | 4b6f33a | 2018-10-05 22:28:01 +0100 | [diff] [blame] | 350 | // 561 bytes of a gzipped FileDescriptorProto |
| 351 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x54, 0xd1, 0x6e, 0x9b, 0x4a, |
| 352 | 0x10, 0xbd, 0x98, 0x38, 0x17, 0x26, 0x71, 0xb2, 0x99, 0x36, 0x12, 0x72, 0xaa, 0x04, 0xa1, 0xaa, |
| 353 | 0xb2, 0x54, 0xc9, 0x4a, 0xd2, 0xc7, 0x4a, 0xad, 0x90, 0xa1, 0x04, 0xd5, 0xc6, 0xd6, 0xb2, 0x6e, |
| 354 | 0x1e, 0x11, 0xb5, 0xb7, 0x29, 0x8a, 0xb3, 0x50, 0xd8, 0xa4, 0xed, 0x4f, 0xf5, 0x6f, 0xfa, 0x3f, |
| 355 | 0x15, 0x10, 0xe3, 0xd4, 0xa2, 0x2f, 0x68, 0xe6, 0xcc, 0x39, 0xb3, 0x87, 0xd1, 0xce, 0x42, 0x6f, |
| 356 | 0x91, 0x0a, 0x99, 0xa7, 0xab, 0x61, 0x96, 0xa7, 0x32, 0x45, 0x7d, 0x91, 0x0a, 0xc1, 0x17, 0x32, |
| 357 | 0xcd, 0xad, 0x23, 0x38, 0xf4, 0xb8, 0x9c, 0xa5, 0xb9, 0x2c, 0x28, 0xff, 0x76, 0xcf, 0x0b, 0x69, |
| 358 | 0xfd, 0xde, 0x05, 0x08, 0xbf, 0x27, 0x72, 0xf1, 0xb5, 0x84, 0x11, 0x61, 0x47, 0xc4, 0x77, 0xdc, |
| 359 | 0x50, 0x4c, 0x65, 0xa0, 0xd3, 0x2a, 0xc6, 0x0b, 0xe8, 0x16, 0x19, 0xe7, 0x4b, 0xa3, 0x63, 0x2a, |
| 360 | 0x83, 0x83, 0xcb, 0x93, 0x61, 0xd3, 0x70, 0xb8, 0x51, 0x0e, 0xc3, 0x92, 0x42, 0x6b, 0x26, 0xbe, |
| 361 | 0x03, 0x58, 0x25, 0xe2, 0x36, 0x2a, 0x64, 0x2c, 0xb9, 0xa1, 0x56, 0xba, 0xb3, 0x76, 0xdd, 0x38, |
| 362 | 0x11, 0xb7, 0x61, 0x49, 0xa3, 0xfa, 0x6a, 0x1d, 0xe2, 0x5b, 0xd0, 0xb3, 0x34, 0x97, 0xd1, 0x5d, |
| 363 | 0xba, 0xe4, 0xc6, 0x4e, 0x25, 0x3f, 0x6d, 0x97, 0x97, 0x9f, 0x49, 0xba, 0xe4, 0x54, 0xcb, 0x1e, |
| 364 | 0x23, 0x3c, 0x83, 0xbd, 0x87, 0x55, 0x2c, 0x22, 0x11, 0xcb, 0xe4, 0x81, 0x1b, 0x5d, 0x53, 0x19, |
| 365 | 0x74, 0x29, 0x94, 0x50, 0x50, 0x21, 0x0d, 0x41, 0xc6, 0x37, 0x37, 0x7c, 0x69, 0xec, 0x9a, 0xea, |
| 366 | 0x9a, 0xc0, 0x2a, 0x04, 0xfb, 0xa0, 0x65, 0x39, 0xff, 0x92, 0xfc, 0xe0, 0x85, 0xf1, 0xbf, 0xa9, |
| 367 | 0x0e, 0x74, 0xda, 0xe4, 0x48, 0x40, 0xbd, 0x93, 0xf7, 0x86, 0x56, 0x75, 0x2d, 0x43, 0x64, 0x80, |
| 368 | 0x45, 0x16, 0x0b, 0x91, 0x88, 0x9b, 0x48, 0xe6, 0x9c, 0xd7, 0xae, 0xf5, 0xca, 0xf5, 0xab, 0x7f, |
| 369 | 0x0d, 0xab, 0xe6, 0xb3, 0x9c, 0xf3, 0xca, 0x3d, 0x29, 0xb6, 0x10, 0xcb, 0x83, 0x6e, 0x35, 0x52, |
| 370 | 0x3c, 0x82, 0x5e, 0x38, 0x73, 0x5d, 0x27, 0xf2, 0x83, 0x4f, 0xf6, 0xd8, 0x77, 0xc8, 0x7f, 0x78, |
| 371 | 0x00, 0x50, 0x43, 0x17, 0xe7, 0xe7, 0x13, 0xa2, 0xe0, 0x3e, 0x68, 0x8f, 0xb9, 0x47, 0x3a, 0xd8, |
| 372 | 0x03, 0x7d, 0x5d, 0xf5, 0x88, 0x6a, 0x5d, 0x81, 0xde, 0xcc, 0x18, 0x8f, 0xe1, 0x68, 0xec, 0x07, |
| 373 | 0x1f, 0x43, 0x66, 0x33, 0xf7, 0x49, 0x43, 0x84, 0x83, 0x0d, 0xec, 0x4c, 0xaf, 0x03, 0xa2, 0x20, |
| 374 | 0x81, 0xfd, 0x0d, 0x36, 0x9f, 0x91, 0x8e, 0xf5, 0x4b, 0x01, 0x6d, 0x3d, 0x6f, 0x7c, 0x0e, 0x64, |
| 375 | 0x36, 0xa5, 0x6c, 0x32, 0x75, 0x9e, 0x36, 0x32, 0xe1, 0x45, 0x83, 0x86, 0xd7, 0x3e, 0x1b, 0x5d, |
| 376 | 0x95, 0x69, 0x34, 0x0f, 0x98, 0xed, 0x79, 0xae, 0x43, 0x14, 0x3c, 0x85, 0x7e, 0x1b, 0xe3, 0xb1, |
| 377 | 0xde, 0xc1, 0x33, 0x38, 0x69, 0xab, 0x7b, 0x6e, 0xe0, 0x52, 0x7f, 0x44, 0x54, 0x7c, 0x06, 0x87, |
| 378 | 0x0d, 0x81, 0x4e, 0xe7, 0xcc, 0x75, 0xc8, 0xce, 0x5f, 0x6e, 0x26, 0x76, 0xe0, 0x8d, 0x5d, 0x87, |
| 379 | 0x74, 0xad, 0x9f, 0x40, 0xb6, 0x27, 0x5d, 0x9e, 0x1f, 0xce, 0xec, 0x20, 0xf0, 0x03, 0x2f, 0x62, |
| 380 | 0xd4, 0x75, 0xa3, 0xad, 0x3f, 0x78, 0x09, 0x66, 0x4b, 0xdd, 0x9e, 0xb3, 0x69, 0x54, 0x9e, 0xf0, |
| 381 | 0xc1, 0x0e, 0x19, 0x51, 0x4a, 0x97, 0x2d, 0xac, 0x86, 0xd0, 0xb1, 0xde, 0x03, 0xd9, 0xac, 0x5a, |
| 382 | 0x91, 0xa5, 0xa2, 0xe0, 0xf8, 0x1a, 0xba, 0xe5, 0x25, 0x2d, 0x0c, 0xc5, 0x54, 0x07, 0x7b, 0x97, |
| 383 | 0xc7, 0xad, 0x77, 0x83, 0xd6, 0x9c, 0x4b, 0x06, 0xbd, 0x1a, 0x1c, 0xd5, 0xdb, 0x8c, 0x23, 0xd0, |
| 384 | 0xd6, 0x1d, 0xb1, 0xff, 0x44, 0xba, 0xb5, 0xd1, 0xfd, 0x93, 0xd6, 0x5a, 0x6d, 0xe1, 0xf3, 0x6e, |
| 385 | 0xf5, 0x26, 0xbc, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, 0xae, 0x71, 0xa0, 0x75, 0x24, 0x04, 0x00, |
| 386 | 0x00, |
| 387 | } |
Serge Bazanski | 0d3a6cc | 2018-10-05 16:34:36 -0700 | [diff] [blame] | 388 | |
| 389 | // Reference imports to suppress errors if they are not otherwise used. |
| 390 | var _ context.Context |
| 391 | var _ grpc.ClientConn |
| 392 | |
| 393 | // This is a compile-time assertion to ensure that this generated file |
| 394 | // is compatible with the grpc package it is being compiled against. |
| 395 | const _ = grpc.SupportPackageIsVersion4 |
| 396 | |
| 397 | // SwitchControlClient is the client API for SwitchControl service. |
| 398 | // |
| 399 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 400 | type SwitchControlClient interface { |
| 401 | GetPorts(ctx context.Context, in *GetPortsRequest, opts ...grpc.CallOption) (*GetPortsResponse, error) |
| 402 | } |
| 403 | |
| 404 | type switchControlClient struct { |
| 405 | cc *grpc.ClientConn |
| 406 | } |
| 407 | |
| 408 | func NewSwitchControlClient(cc *grpc.ClientConn) SwitchControlClient { |
| 409 | return &switchControlClient{cc} |
| 410 | } |
| 411 | |
| 412 | func (c *switchControlClient) GetPorts(ctx context.Context, in *GetPortsRequest, opts ...grpc.CallOption) (*GetPortsResponse, error) { |
| 413 | out := new(GetPortsResponse) |
| 414 | err := c.cc.Invoke(ctx, "/connector.SwitchControl/GetPorts", in, out, opts...) |
| 415 | if err != nil { |
| 416 | return nil, err |
| 417 | } |
| 418 | return out, nil |
| 419 | } |
| 420 | |
| 421 | // SwitchControlServer is the server API for SwitchControl service. |
| 422 | type SwitchControlServer interface { |
| 423 | GetPorts(context.Context, *GetPortsRequest) (*GetPortsResponse, error) |
| 424 | } |
| 425 | |
| 426 | func RegisterSwitchControlServer(s *grpc.Server, srv SwitchControlServer) { |
| 427 | s.RegisterService(&_SwitchControl_serviceDesc, srv) |
| 428 | } |
| 429 | |
| 430 | func _SwitchControl_GetPorts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 431 | in := new(GetPortsRequest) |
| 432 | if err := dec(in); err != nil { |
| 433 | return nil, err |
| 434 | } |
| 435 | if interceptor == nil { |
| 436 | return srv.(SwitchControlServer).GetPorts(ctx, in) |
| 437 | } |
| 438 | info := &grpc.UnaryServerInfo{ |
| 439 | Server: srv, |
| 440 | FullMethod: "/connector.SwitchControl/GetPorts", |
| 441 | } |
| 442 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 443 | return srv.(SwitchControlServer).GetPorts(ctx, req.(*GetPortsRequest)) |
| 444 | } |
| 445 | return interceptor(ctx, in, info, handler) |
| 446 | } |
| 447 | |
| 448 | var _SwitchControl_serviceDesc = grpc.ServiceDesc{ |
| 449 | ServiceName: "connector.SwitchControl", |
| 450 | HandlerType: (*SwitchControlServer)(nil), |
| 451 | Methods: []grpc.MethodDesc{ |
| 452 | { |
| 453 | MethodName: "GetPorts", |
| 454 | Handler: _SwitchControl_GetPorts_Handler, |
| 455 | }, |
| 456 | }, |
| 457 | Streams: []grpc.StreamDesc{}, |
| 458 | Metadata: "control.proto", |
| 459 | } |