This repository has been archived by the owner on Aug 3, 2020. It is now read-only.
forked from ligato/vpp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.pb.go
138 lines (120 loc) · 5.02 KB
/
interface.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: interface.proto
package mock_interfaces
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
// 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type Interface_Type int32
const (
Interface_UNDEFINED_TYPE Interface_Type = 0
Interface_LOOPBACK Interface_Type = 1
Interface_TAP Interface_Type = 2
)
var Interface_Type_name = map[int32]string{
0: "UNDEFINED_TYPE",
1: "LOOPBACK",
2: "TAP",
}
var Interface_Type_value = map[string]int32{
"UNDEFINED_TYPE": 0,
"LOOPBACK": 1,
"TAP": 2,
}
func (x Interface_Type) String() string {
return proto.EnumName(Interface_Type_name, int32(x))
}
func (Interface_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_interface_738d4faf54ea8597, []int{0, 0}
}
type Interface struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type Interface_Type `protobuf:"varint,2,opt,name=type,proto3,enum=mock.interfaces.Interface_Type" json:"type,omitempty"`
Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
PhysAddress string `protobuf:"bytes,4,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Interface) Reset() { *m = Interface{} }
func (m *Interface) String() string { return proto.CompactTextString(m) }
func (*Interface) ProtoMessage() {}
func (*Interface) Descriptor() ([]byte, []int) {
return fileDescriptor_interface_738d4faf54ea8597, []int{0}
}
func (m *Interface) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Interface.Unmarshal(m, b)
}
func (m *Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Interface.Marshal(b, m, deterministic)
}
func (dst *Interface) XXX_Merge(src proto.Message) {
xxx_messageInfo_Interface.Merge(dst, src)
}
func (m *Interface) XXX_Size() int {
return xxx_messageInfo_Interface.Size(m)
}
func (m *Interface) XXX_DiscardUnknown() {
xxx_messageInfo_Interface.DiscardUnknown(m)
}
var xxx_messageInfo_Interface proto.InternalMessageInfo
func (m *Interface) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Interface) GetType() Interface_Type {
if m != nil {
return m.Type
}
return Interface_UNDEFINED_TYPE
}
func (m *Interface) GetEnabled() bool {
if m != nil {
return m.Enabled
}
return false
}
func (m *Interface) GetPhysAddress() string {
if m != nil {
return m.PhysAddress
}
return ""
}
func (*Interface) XXX_MessageName() string {
return "mock.interfaces.Interface"
}
func init() {
proto.RegisterType((*Interface)(nil), "mock.interfaces.Interface")
proto.RegisterEnum("mock.interfaces.Interface_Type", Interface_Type_name, Interface_Type_value)
}
func init() { proto.RegisterFile("interface.proto", fileDescriptor_interface_738d4faf54ea8597) }
var fileDescriptor_interface_738d4faf54ea8597 = []byte{
// 243 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcf, 0xcc, 0x2b, 0x49,
0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xcf, 0xcd, 0x4f,
0xce, 0xd6, 0x83, 0x8b, 0x16, 0x4b, 0xe9, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7,
0xe7, 0xea, 0xa7, 0xe7, 0xa7, 0xe7, 0xeb, 0x83, 0xd5, 0x25, 0x95, 0xa6, 0x81, 0x79, 0x60, 0x0e,
0x98, 0x05, 0xd1, 0xaf, 0x74, 0x84, 0x91, 0x8b, 0xd3, 0x13, 0xa6, 0x5b, 0x48, 0x88, 0x8b, 0x25,
0x2f, 0x31, 0x37, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x16, 0x32, 0xe6, 0x62,
0x29, 0xa9, 0x2c, 0x48, 0x95, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, 0x92, 0xd7, 0x43, 0xb3, 0x50,
0x0f, 0xae, 0x5b, 0x2f, 0xa4, 0xb2, 0x20, 0x35, 0x08, 0xac, 0x58, 0x48, 0x82, 0x8b, 0x3d, 0x35,
0x2f, 0x31, 0x29, 0x27, 0x35, 0x45, 0x82, 0x59, 0x81, 0x51, 0x83, 0x23, 0x08, 0xc6, 0x15, 0x52,
0xe4, 0xe2, 0x29, 0xc8, 0xa8, 0x2c, 0x8e, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60,
0x01, 0x5b, 0xc5, 0x0d, 0x12, 0x73, 0x84, 0x08, 0x29, 0x19, 0x72, 0xb1, 0x80, 0x8c, 0x12, 0x12,
0xe2, 0xe2, 0x0b, 0xf5, 0x73, 0x71, 0x75, 0xf3, 0xf4, 0x73, 0x75, 0x89, 0x0f, 0x89, 0x0c, 0x70,
0x15, 0x60, 0x10, 0xe2, 0xe1, 0xe2, 0xf0, 0xf1, 0xf7, 0x0f, 0x70, 0x72, 0x74, 0xf6, 0x16, 0x60,
0x14, 0x62, 0xe7, 0x62, 0x0e, 0x71, 0x0c, 0x10, 0x60, 0x72, 0x62, 0x39, 0xf1, 0x58, 0x8e, 0x31,
0x89, 0x0d, 0xec, 0x27, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4a, 0x86, 0xcd, 0x46, 0x26,
0x01, 0x00, 0x00,
}