binapigen: fix union size
[govpp.git] / binapi / session / session.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // versions:
3 //  binapi-generator: v0.4.0-dev
4 //  VPP:              20.05-release
5 // source: /usr/share/vpp/api/core/session.api.json
6
7 // Package session contains generated bindings for API file session.api.
8 //
9 // Contents:
10 //   2 enums
11 //  22 messages
12 //
13 package session
14
15 import (
16         "strconv"
17
18         api "git.fd.io/govpp.git/api"
19         interface_types "git.fd.io/govpp.git/binapi/interface_types"
20         ip_types "git.fd.io/govpp.git/binapi/ip_types"
21         codec "git.fd.io/govpp.git/codec"
22 )
23
24 // This is a compile-time assertion to ensure that this generated file
25 // is compatible with the GoVPP api package it is being compiled against.
26 // A compilation error at this line likely means your copy of the
27 // GoVPP api package needs to be updated.
28 const _ = api.GoVppAPIPackageIsVersion2
29
30 const (
31         APIFile    = "session"
32         APIVersion = "3.2.0"
33         VersionCrc = 0x9aa0ebc0
34 )
35
36 // SessionRuleScope defines enum 'session_rule_scope'.
37 type SessionRuleScope uint32
38
39 const (
40         SESSION_RULE_SCOPE_API_GLOBAL SessionRuleScope = 0
41         SESSION_RULE_SCOPE_API_LOCAL  SessionRuleScope = 1
42         SESSION_RULE_SCOPE_API_BOTH   SessionRuleScope = 2
43 )
44
45 var (
46         SessionRuleScope_name = map[uint32]string{
47                 0: "SESSION_RULE_SCOPE_API_GLOBAL",
48                 1: "SESSION_RULE_SCOPE_API_LOCAL",
49                 2: "SESSION_RULE_SCOPE_API_BOTH",
50         }
51         SessionRuleScope_value = map[string]uint32{
52                 "SESSION_RULE_SCOPE_API_GLOBAL": 0,
53                 "SESSION_RULE_SCOPE_API_LOCAL":  1,
54                 "SESSION_RULE_SCOPE_API_BOTH":   2,
55         }
56 )
57
58 func (x SessionRuleScope) String() string {
59         s, ok := SessionRuleScope_name[uint32(x)]
60         if ok {
61                 return s
62         }
63         return "SessionRuleScope(" + strconv.Itoa(int(x)) + ")"
64 }
65
66 // TransportProto defines enum 'transport_proto'.
67 type TransportProto uint8
68
69 const (
70         TRANSPORT_PROTO_API_TCP  TransportProto = 1
71         TRANSPORT_PROTO_API_UDP  TransportProto = 2
72         TRANSPORT_PROTO_API_NONE TransportProto = 3
73         TRANSPORT_PROTO_API_TLS  TransportProto = 4
74         TRANSPORT_PROTO_API_QUIC TransportProto = 5
75 )
76
77 var (
78         TransportProto_name = map[uint8]string{
79                 1: "TRANSPORT_PROTO_API_TCP",
80                 2: "TRANSPORT_PROTO_API_UDP",
81                 3: "TRANSPORT_PROTO_API_NONE",
82                 4: "TRANSPORT_PROTO_API_TLS",
83                 5: "TRANSPORT_PROTO_API_QUIC",
84         }
85         TransportProto_value = map[string]uint8{
86                 "TRANSPORT_PROTO_API_TCP":  1,
87                 "TRANSPORT_PROTO_API_UDP":  2,
88                 "TRANSPORT_PROTO_API_NONE": 3,
89                 "TRANSPORT_PROTO_API_TLS":  4,
90                 "TRANSPORT_PROTO_API_QUIC": 5,
91         }
92 )
93
94 func (x TransportProto) String() string {
95         s, ok := TransportProto_name[uint8(x)]
96         if ok {
97                 return s
98         }
99         return "TransportProto(" + strconv.Itoa(int(x)) + ")"
100 }
101
102 // AppAddCertKeyPair defines message 'app_add_cert_key_pair'.
103 type AppAddCertKeyPair struct {
104         CertLen    uint16 `binapi:"u16,name=cert_len" json:"cert_len,omitempty"`
105         CertkeyLen uint16 `binapi:"u16,name=certkey_len" json:"-"`
106         Certkey    []byte `binapi:"u8[certkey_len],name=certkey" json:"certkey,omitempty"`
107 }
108
109 func (m *AppAddCertKeyPair) Reset()               { *m = AppAddCertKeyPair{} }
110 func (*AppAddCertKeyPair) GetMessageName() string { return "app_add_cert_key_pair" }
111 func (*AppAddCertKeyPair) GetCrcString() string   { return "02eb8016" }
112 func (*AppAddCertKeyPair) GetMessageType() api.MessageType {
113         return api.RequestMessage
114 }
115
116 func (m *AppAddCertKeyPair) Size() (size int) {
117         if m == nil {
118                 return 0
119         }
120         size += 2                  // m.CertLen
121         size += 2                  // m.CertkeyLen
122         size += 1 * len(m.Certkey) // m.Certkey
123         return size
124 }
125 func (m *AppAddCertKeyPair) Marshal(b []byte) ([]byte, error) {
126         if b == nil {
127                 b = make([]byte, m.Size())
128         }
129         buf := codec.NewBuffer(b)
130         buf.EncodeUint16(m.CertLen)
131         buf.EncodeUint16(uint16(len(m.Certkey)))
132         buf.EncodeBytes(m.Certkey, 0)
133         return buf.Bytes(), nil
134 }
135 func (m *AppAddCertKeyPair) Unmarshal(b []byte) error {
136         buf := codec.NewBuffer(b)
137         m.CertLen = buf.DecodeUint16()
138         m.CertkeyLen = buf.DecodeUint16()
139         m.Certkey = make([]byte, m.CertkeyLen)
140         copy(m.Certkey, buf.DecodeBytes(len(m.Certkey)))
141         return nil
142 }
143
144 // AppAddCertKeyPairReply defines message 'app_add_cert_key_pair_reply'.
145 type AppAddCertKeyPairReply struct {
146         Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
147         Index  uint32 `binapi:"u32,name=index" json:"index,omitempty"`
148 }
149
150 func (m *AppAddCertKeyPairReply) Reset()               { *m = AppAddCertKeyPairReply{} }
151 func (*AppAddCertKeyPairReply) GetMessageName() string { return "app_add_cert_key_pair_reply" }
152 func (*AppAddCertKeyPairReply) GetCrcString() string   { return "b42958d0" }
153 func (*AppAddCertKeyPairReply) GetMessageType() api.MessageType {
154         return api.ReplyMessage
155 }
156
157 func (m *AppAddCertKeyPairReply) Size() (size int) {
158         if m == nil {
159                 return 0
160         }
161         size += 4 // m.Retval
162         size += 4 // m.Index
163         return size
164 }
165 func (m *AppAddCertKeyPairReply) Marshal(b []byte) ([]byte, error) {
166         if b == nil {
167                 b = make([]byte, m.Size())
168         }
169         buf := codec.NewBuffer(b)
170         buf.EncodeInt32(m.Retval)
171         buf.EncodeUint32(m.Index)
172         return buf.Bytes(), nil
173 }
174 func (m *AppAddCertKeyPairReply) Unmarshal(b []byte) error {
175         buf := codec.NewBuffer(b)
176         m.Retval = buf.DecodeInt32()
177         m.Index = buf.DecodeUint32()
178         return nil
179 }
180
181 // AppAttach defines message 'app_attach'.
182 type AppAttach struct {
183         Options     []uint64 `binapi:"u64[18],name=options" json:"options,omitempty"`
184         NamespaceID string   `binapi:"string[],name=namespace_id" json:"namespace_id,omitempty"`
185 }
186
187 func (m *AppAttach) Reset()               { *m = AppAttach{} }
188 func (*AppAttach) GetMessageName() string { return "app_attach" }
189 func (*AppAttach) GetCrcString() string   { return "5f4a260d" }
190 func (*AppAttach) GetMessageType() api.MessageType {
191         return api.RequestMessage
192 }
193
194 func (m *AppAttach) Size() (size int) {
195         if m == nil {
196                 return 0
197         }
198         size += 8 * 18                 // m.Options
199         size += 4 + len(m.NamespaceID) // m.NamespaceID
200         return size
201 }
202 func (m *AppAttach) Marshal(b []byte) ([]byte, error) {
203         if b == nil {
204                 b = make([]byte, m.Size())
205         }
206         buf := codec.NewBuffer(b)
207         for i := 0; i < 18; i++ {
208                 var x uint64
209                 if i < len(m.Options) {
210                         x = uint64(m.Options[i])
211                 }
212                 buf.EncodeUint64(x)
213         }
214         buf.EncodeString(m.NamespaceID, 0)
215         return buf.Bytes(), nil
216 }
217 func (m *AppAttach) Unmarshal(b []byte) error {
218         buf := codec.NewBuffer(b)
219         m.Options = make([]uint64, 18)
220         for i := 0; i < len(m.Options); i++ {
221                 m.Options[i] = buf.DecodeUint64()
222         }
223         m.NamespaceID = buf.DecodeString(0)
224         return nil
225 }
226
227 // AppAttachReply defines message 'app_attach_reply'.
228 type AppAttachReply struct {
229         Retval          int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
230         AppMq           uint64 `binapi:"u64,name=app_mq" json:"app_mq,omitempty"`
231         VppCtrlMq       uint64 `binapi:"u64,name=vpp_ctrl_mq" json:"vpp_ctrl_mq,omitempty"`
232         VppCtrlMqThread uint8  `binapi:"u8,name=vpp_ctrl_mq_thread" json:"vpp_ctrl_mq_thread,omitempty"`
233         AppIndex        uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
234         NFds            uint8  `binapi:"u8,name=n_fds" json:"n_fds,omitempty"`
235         FdFlags         uint8  `binapi:"u8,name=fd_flags" json:"fd_flags,omitempty"`
236         SegmentSize     uint32 `binapi:"u32,name=segment_size" json:"segment_size,omitempty"`
237         SegmentHandle   uint64 `binapi:"u64,name=segment_handle" json:"segment_handle,omitempty"`
238         SegmentName     string `binapi:"string[],name=segment_name" json:"segment_name,omitempty"`
239 }
240
241 func (m *AppAttachReply) Reset()               { *m = AppAttachReply{} }
242 func (*AppAttachReply) GetMessageName() string { return "app_attach_reply" }
243 func (*AppAttachReply) GetCrcString() string   { return "5c89c3b0" }
244 func (*AppAttachReply) GetMessageType() api.MessageType {
245         return api.ReplyMessage
246 }
247
248 func (m *AppAttachReply) Size() (size int) {
249         if m == nil {
250                 return 0
251         }
252         size += 4                      // m.Retval
253         size += 8                      // m.AppMq
254         size += 8                      // m.VppCtrlMq
255         size += 1                      // m.VppCtrlMqThread
256         size += 4                      // m.AppIndex
257         size += 1                      // m.NFds
258         size += 1                      // m.FdFlags
259         size += 4                      // m.SegmentSize
260         size += 8                      // m.SegmentHandle
261         size += 4 + len(m.SegmentName) // m.SegmentName
262         return size
263 }
264 func (m *AppAttachReply) Marshal(b []byte) ([]byte, error) {
265         if b == nil {
266                 b = make([]byte, m.Size())
267         }
268         buf := codec.NewBuffer(b)
269         buf.EncodeInt32(m.Retval)
270         buf.EncodeUint64(m.AppMq)
271         buf.EncodeUint64(m.VppCtrlMq)
272         buf.EncodeUint8(m.VppCtrlMqThread)
273         buf.EncodeUint32(m.AppIndex)
274         buf.EncodeUint8(m.NFds)
275         buf.EncodeUint8(m.FdFlags)
276         buf.EncodeUint32(m.SegmentSize)
277         buf.EncodeUint64(m.SegmentHandle)
278         buf.EncodeString(m.SegmentName, 0)
279         return buf.Bytes(), nil
280 }
281 func (m *AppAttachReply) Unmarshal(b []byte) error {
282         buf := codec.NewBuffer(b)
283         m.Retval = buf.DecodeInt32()
284         m.AppMq = buf.DecodeUint64()
285         m.VppCtrlMq = buf.DecodeUint64()
286         m.VppCtrlMqThread = buf.DecodeUint8()
287         m.AppIndex = buf.DecodeUint32()
288         m.NFds = buf.DecodeUint8()
289         m.FdFlags = buf.DecodeUint8()
290         m.SegmentSize = buf.DecodeUint32()
291         m.SegmentHandle = buf.DecodeUint64()
292         m.SegmentName = buf.DecodeString(0)
293         return nil
294 }
295
296 // AppDelCertKeyPair defines message 'app_del_cert_key_pair'.
297 type AppDelCertKeyPair struct {
298         Index uint32 `binapi:"u32,name=index" json:"index,omitempty"`
299 }
300
301 func (m *AppDelCertKeyPair) Reset()               { *m = AppDelCertKeyPair{} }
302 func (*AppDelCertKeyPair) GetMessageName() string { return "app_del_cert_key_pair" }
303 func (*AppDelCertKeyPair) GetCrcString() string   { return "8ac76db6" }
304 func (*AppDelCertKeyPair) GetMessageType() api.MessageType {
305         return api.RequestMessage
306 }
307
308 func (m *AppDelCertKeyPair) Size() (size int) {
309         if m == nil {
310                 return 0
311         }
312         size += 4 // m.Index
313         return size
314 }
315 func (m *AppDelCertKeyPair) Marshal(b []byte) ([]byte, error) {
316         if b == nil {
317                 b = make([]byte, m.Size())
318         }
319         buf := codec.NewBuffer(b)
320         buf.EncodeUint32(m.Index)
321         return buf.Bytes(), nil
322 }
323 func (m *AppDelCertKeyPair) Unmarshal(b []byte) error {
324         buf := codec.NewBuffer(b)
325         m.Index = buf.DecodeUint32()
326         return nil
327 }
328
329 // AppDelCertKeyPairReply defines message 'app_del_cert_key_pair_reply'.
330 type AppDelCertKeyPairReply struct {
331         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
332 }
333
334 func (m *AppDelCertKeyPairReply) Reset()               { *m = AppDelCertKeyPairReply{} }
335 func (*AppDelCertKeyPairReply) GetMessageName() string { return "app_del_cert_key_pair_reply" }
336 func (*AppDelCertKeyPairReply) GetCrcString() string   { return "e8d4e804" }
337 func (*AppDelCertKeyPairReply) GetMessageType() api.MessageType {
338         return api.ReplyMessage
339 }
340
341 func (m *AppDelCertKeyPairReply) Size() (size int) {
342         if m == nil {
343                 return 0
344         }
345         size += 4 // m.Retval
346         return size
347 }
348 func (m *AppDelCertKeyPairReply) Marshal(b []byte) ([]byte, error) {
349         if b == nil {
350                 b = make([]byte, m.Size())
351         }
352         buf := codec.NewBuffer(b)
353         buf.EncodeInt32(m.Retval)
354         return buf.Bytes(), nil
355 }
356 func (m *AppDelCertKeyPairReply) Unmarshal(b []byte) error {
357         buf := codec.NewBuffer(b)
358         m.Retval = buf.DecodeInt32()
359         return nil
360 }
361
362 // AppNamespaceAddDel defines message 'app_namespace_add_del'.
363 type AppNamespaceAddDel struct {
364         Secret      uint64                         `binapi:"u64,name=secret" json:"secret,omitempty"`
365         SwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
366         IP4FibID    uint32                         `binapi:"u32,name=ip4_fib_id" json:"ip4_fib_id,omitempty"`
367         IP6FibID    uint32                         `binapi:"u32,name=ip6_fib_id" json:"ip6_fib_id,omitempty"`
368         NamespaceID string                         `binapi:"string[],name=namespace_id" json:"namespace_id,omitempty"`
369 }
370
371 func (m *AppNamespaceAddDel) Reset()               { *m = AppNamespaceAddDel{} }
372 func (*AppNamespaceAddDel) GetMessageName() string { return "app_namespace_add_del" }
373 func (*AppNamespaceAddDel) GetCrcString() string   { return "6306aecb" }
374 func (*AppNamespaceAddDel) GetMessageType() api.MessageType {
375         return api.RequestMessage
376 }
377
378 func (m *AppNamespaceAddDel) Size() (size int) {
379         if m == nil {
380                 return 0
381         }
382         size += 8                      // m.Secret
383         size += 4                      // m.SwIfIndex
384         size += 4                      // m.IP4FibID
385         size += 4                      // m.IP6FibID
386         size += 4 + len(m.NamespaceID) // m.NamespaceID
387         return size
388 }
389 func (m *AppNamespaceAddDel) Marshal(b []byte) ([]byte, error) {
390         if b == nil {
391                 b = make([]byte, m.Size())
392         }
393         buf := codec.NewBuffer(b)
394         buf.EncodeUint64(m.Secret)
395         buf.EncodeUint32(uint32(m.SwIfIndex))
396         buf.EncodeUint32(m.IP4FibID)
397         buf.EncodeUint32(m.IP6FibID)
398         buf.EncodeString(m.NamespaceID, 0)
399         return buf.Bytes(), nil
400 }
401 func (m *AppNamespaceAddDel) Unmarshal(b []byte) error {
402         buf := codec.NewBuffer(b)
403         m.Secret = buf.DecodeUint64()
404         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
405         m.IP4FibID = buf.DecodeUint32()
406         m.IP6FibID = buf.DecodeUint32()
407         m.NamespaceID = buf.DecodeString(0)
408         return nil
409 }
410
411 // AppNamespaceAddDelReply defines message 'app_namespace_add_del_reply'.
412 type AppNamespaceAddDelReply struct {
413         Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
414         AppnsIndex uint32 `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
415 }
416
417 func (m *AppNamespaceAddDelReply) Reset()               { *m = AppNamespaceAddDelReply{} }
418 func (*AppNamespaceAddDelReply) GetMessageName() string { return "app_namespace_add_del_reply" }
419 func (*AppNamespaceAddDelReply) GetCrcString() string   { return "85137120" }
420 func (*AppNamespaceAddDelReply) GetMessageType() api.MessageType {
421         return api.ReplyMessage
422 }
423
424 func (m *AppNamespaceAddDelReply) Size() (size int) {
425         if m == nil {
426                 return 0
427         }
428         size += 4 // m.Retval
429         size += 4 // m.AppnsIndex
430         return size
431 }
432 func (m *AppNamespaceAddDelReply) Marshal(b []byte) ([]byte, error) {
433         if b == nil {
434                 b = make([]byte, m.Size())
435         }
436         buf := codec.NewBuffer(b)
437         buf.EncodeInt32(m.Retval)
438         buf.EncodeUint32(m.AppnsIndex)
439         return buf.Bytes(), nil
440 }
441 func (m *AppNamespaceAddDelReply) Unmarshal(b []byte) error {
442         buf := codec.NewBuffer(b)
443         m.Retval = buf.DecodeInt32()
444         m.AppnsIndex = buf.DecodeUint32()
445         return nil
446 }
447
448 // AppWorkerAddDel defines message 'app_worker_add_del'.
449 type AppWorkerAddDel struct {
450         AppIndex uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
451         WrkIndex uint32 `binapi:"u32,name=wrk_index" json:"wrk_index,omitempty"`
452         IsAdd    bool   `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
453 }
454
455 func (m *AppWorkerAddDel) Reset()               { *m = AppWorkerAddDel{} }
456 func (*AppWorkerAddDel) GetMessageName() string { return "app_worker_add_del" }
457 func (*AppWorkerAddDel) GetCrcString() string   { return "753253dc" }
458 func (*AppWorkerAddDel) GetMessageType() api.MessageType {
459         return api.RequestMessage
460 }
461
462 func (m *AppWorkerAddDel) Size() (size int) {
463         if m == nil {
464                 return 0
465         }
466         size += 4 // m.AppIndex
467         size += 4 // m.WrkIndex
468         size += 1 // m.IsAdd
469         return size
470 }
471 func (m *AppWorkerAddDel) Marshal(b []byte) ([]byte, error) {
472         if b == nil {
473                 b = make([]byte, m.Size())
474         }
475         buf := codec.NewBuffer(b)
476         buf.EncodeUint32(m.AppIndex)
477         buf.EncodeUint32(m.WrkIndex)
478         buf.EncodeBool(m.IsAdd)
479         return buf.Bytes(), nil
480 }
481 func (m *AppWorkerAddDel) Unmarshal(b []byte) error {
482         buf := codec.NewBuffer(b)
483         m.AppIndex = buf.DecodeUint32()
484         m.WrkIndex = buf.DecodeUint32()
485         m.IsAdd = buf.DecodeBool()
486         return nil
487 }
488
489 // AppWorkerAddDelReply defines message 'app_worker_add_del_reply'.
490 type AppWorkerAddDelReply struct {
491         Retval               int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
492         WrkIndex             uint32 `binapi:"u32,name=wrk_index" json:"wrk_index,omitempty"`
493         AppEventQueueAddress uint64 `binapi:"u64,name=app_event_queue_address" json:"app_event_queue_address,omitempty"`
494         NFds                 uint8  `binapi:"u8,name=n_fds" json:"n_fds,omitempty"`
495         FdFlags              uint8  `binapi:"u8,name=fd_flags" json:"fd_flags,omitempty"`
496         SegmentHandle        uint64 `binapi:"u64,name=segment_handle" json:"segment_handle,omitempty"`
497         IsAdd                bool   `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
498         SegmentName          string `binapi:"string[],name=segment_name" json:"segment_name,omitempty"`
499 }
500
501 func (m *AppWorkerAddDelReply) Reset()               { *m = AppWorkerAddDelReply{} }
502 func (*AppWorkerAddDelReply) GetMessageName() string { return "app_worker_add_del_reply" }
503 func (*AppWorkerAddDelReply) GetCrcString() string   { return "5735ffe7" }
504 func (*AppWorkerAddDelReply) GetMessageType() api.MessageType {
505         return api.ReplyMessage
506 }
507
508 func (m *AppWorkerAddDelReply) Size() (size int) {
509         if m == nil {
510                 return 0
511         }
512         size += 4                      // m.Retval
513         size += 4                      // m.WrkIndex
514         size += 8                      // m.AppEventQueueAddress
515         size += 1                      // m.NFds
516         size += 1                      // m.FdFlags
517         size += 8                      // m.SegmentHandle
518         size += 1                      // m.IsAdd
519         size += 4 + len(m.SegmentName) // m.SegmentName
520         return size
521 }
522 func (m *AppWorkerAddDelReply) Marshal(b []byte) ([]byte, error) {
523         if b == nil {
524                 b = make([]byte, m.Size())
525         }
526         buf := codec.NewBuffer(b)
527         buf.EncodeInt32(m.Retval)
528         buf.EncodeUint32(m.WrkIndex)
529         buf.EncodeUint64(m.AppEventQueueAddress)
530         buf.EncodeUint8(m.NFds)
531         buf.EncodeUint8(m.FdFlags)
532         buf.EncodeUint64(m.SegmentHandle)
533         buf.EncodeBool(m.IsAdd)
534         buf.EncodeString(m.SegmentName, 0)
535         return buf.Bytes(), nil
536 }
537 func (m *AppWorkerAddDelReply) Unmarshal(b []byte) error {
538         buf := codec.NewBuffer(b)
539         m.Retval = buf.DecodeInt32()
540         m.WrkIndex = buf.DecodeUint32()
541         m.AppEventQueueAddress = buf.DecodeUint64()
542         m.NFds = buf.DecodeUint8()
543         m.FdFlags = buf.DecodeUint8()
544         m.SegmentHandle = buf.DecodeUint64()
545         m.IsAdd = buf.DecodeBool()
546         m.SegmentName = buf.DecodeString(0)
547         return nil
548 }
549
550 // ApplicationDetach defines message 'application_detach'.
551 type ApplicationDetach struct{}
552
553 func (m *ApplicationDetach) Reset()               { *m = ApplicationDetach{} }
554 func (*ApplicationDetach) GetMessageName() string { return "application_detach" }
555 func (*ApplicationDetach) GetCrcString() string   { return "51077d14" }
556 func (*ApplicationDetach) GetMessageType() api.MessageType {
557         return api.RequestMessage
558 }
559
560 func (m *ApplicationDetach) Size() (size int) {
561         if m == nil {
562                 return 0
563         }
564         return size
565 }
566 func (m *ApplicationDetach) Marshal(b []byte) ([]byte, error) {
567         if b == nil {
568                 b = make([]byte, m.Size())
569         }
570         buf := codec.NewBuffer(b)
571         return buf.Bytes(), nil
572 }
573 func (m *ApplicationDetach) Unmarshal(b []byte) error {
574         return nil
575 }
576
577 // ApplicationDetachReply defines message 'application_detach_reply'.
578 type ApplicationDetachReply struct {
579         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
580 }
581
582 func (m *ApplicationDetachReply) Reset()               { *m = ApplicationDetachReply{} }
583 func (*ApplicationDetachReply) GetMessageName() string { return "application_detach_reply" }
584 func (*ApplicationDetachReply) GetCrcString() string   { return "e8d4e804" }
585 func (*ApplicationDetachReply) GetMessageType() api.MessageType {
586         return api.ReplyMessage
587 }
588
589 func (m *ApplicationDetachReply) Size() (size int) {
590         if m == nil {
591                 return 0
592         }
593         size += 4 // m.Retval
594         return size
595 }
596 func (m *ApplicationDetachReply) Marshal(b []byte) ([]byte, error) {
597         if b == nil {
598                 b = make([]byte, m.Size())
599         }
600         buf := codec.NewBuffer(b)
601         buf.EncodeInt32(m.Retval)
602         return buf.Bytes(), nil
603 }
604 func (m *ApplicationDetachReply) Unmarshal(b []byte) error {
605         buf := codec.NewBuffer(b)
606         m.Retval = buf.DecodeInt32()
607         return nil
608 }
609
610 // ApplicationTLSCertAdd defines message 'application_tls_cert_add'.
611 type ApplicationTLSCertAdd struct {
612         AppIndex uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
613         CertLen  uint16 `binapi:"u16,name=cert_len" json:"-"`
614         Cert     []byte `binapi:"u8[cert_len],name=cert" json:"cert,omitempty"`
615 }
616
617 func (m *ApplicationTLSCertAdd) Reset()               { *m = ApplicationTLSCertAdd{} }
618 func (*ApplicationTLSCertAdd) GetMessageName() string { return "application_tls_cert_add" }
619 func (*ApplicationTLSCertAdd) GetCrcString() string   { return "3f5cfe45" }
620 func (*ApplicationTLSCertAdd) GetMessageType() api.MessageType {
621         return api.RequestMessage
622 }
623
624 func (m *ApplicationTLSCertAdd) Size() (size int) {
625         if m == nil {
626                 return 0
627         }
628         size += 4               // m.AppIndex
629         size += 2               // m.CertLen
630         size += 1 * len(m.Cert) // m.Cert
631         return size
632 }
633 func (m *ApplicationTLSCertAdd) Marshal(b []byte) ([]byte, error) {
634         if b == nil {
635                 b = make([]byte, m.Size())
636         }
637         buf := codec.NewBuffer(b)
638         buf.EncodeUint32(m.AppIndex)
639         buf.EncodeUint16(uint16(len(m.Cert)))
640         buf.EncodeBytes(m.Cert, 0)
641         return buf.Bytes(), nil
642 }
643 func (m *ApplicationTLSCertAdd) Unmarshal(b []byte) error {
644         buf := codec.NewBuffer(b)
645         m.AppIndex = buf.DecodeUint32()
646         m.CertLen = buf.DecodeUint16()
647         m.Cert = make([]byte, m.CertLen)
648         copy(m.Cert, buf.DecodeBytes(len(m.Cert)))
649         return nil
650 }
651
652 // ApplicationTLSCertAddReply defines message 'application_tls_cert_add_reply'.
653 type ApplicationTLSCertAddReply struct {
654         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
655 }
656
657 func (m *ApplicationTLSCertAddReply) Reset()               { *m = ApplicationTLSCertAddReply{} }
658 func (*ApplicationTLSCertAddReply) GetMessageName() string { return "application_tls_cert_add_reply" }
659 func (*ApplicationTLSCertAddReply) GetCrcString() string   { return "e8d4e804" }
660 func (*ApplicationTLSCertAddReply) GetMessageType() api.MessageType {
661         return api.ReplyMessage
662 }
663
664 func (m *ApplicationTLSCertAddReply) Size() (size int) {
665         if m == nil {
666                 return 0
667         }
668         size += 4 // m.Retval
669         return size
670 }
671 func (m *ApplicationTLSCertAddReply) Marshal(b []byte) ([]byte, error) {
672         if b == nil {
673                 b = make([]byte, m.Size())
674         }
675         buf := codec.NewBuffer(b)
676         buf.EncodeInt32(m.Retval)
677         return buf.Bytes(), nil
678 }
679 func (m *ApplicationTLSCertAddReply) Unmarshal(b []byte) error {
680         buf := codec.NewBuffer(b)
681         m.Retval = buf.DecodeInt32()
682         return nil
683 }
684
685 // ApplicationTLSKeyAdd defines message 'application_tls_key_add'.
686 type ApplicationTLSKeyAdd struct {
687         AppIndex uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
688         KeyLen   uint16 `binapi:"u16,name=key_len" json:"-"`
689         Key      []byte `binapi:"u8[key_len],name=key" json:"key,omitempty"`
690 }
691
692 func (m *ApplicationTLSKeyAdd) Reset()               { *m = ApplicationTLSKeyAdd{} }
693 func (*ApplicationTLSKeyAdd) GetMessageName() string { return "application_tls_key_add" }
694 func (*ApplicationTLSKeyAdd) GetCrcString() string   { return "5eaf70cd" }
695 func (*ApplicationTLSKeyAdd) GetMessageType() api.MessageType {
696         return api.RequestMessage
697 }
698
699 func (m *ApplicationTLSKeyAdd) Size() (size int) {
700         if m == nil {
701                 return 0
702         }
703         size += 4              // m.AppIndex
704         size += 2              // m.KeyLen
705         size += 1 * len(m.Key) // m.Key
706         return size
707 }
708 func (m *ApplicationTLSKeyAdd) Marshal(b []byte) ([]byte, error) {
709         if b == nil {
710                 b = make([]byte, m.Size())
711         }
712         buf := codec.NewBuffer(b)
713         buf.EncodeUint32(m.AppIndex)
714         buf.EncodeUint16(uint16(len(m.Key)))
715         buf.EncodeBytes(m.Key, 0)
716         return buf.Bytes(), nil
717 }
718 func (m *ApplicationTLSKeyAdd) Unmarshal(b []byte) error {
719         buf := codec.NewBuffer(b)
720         m.AppIndex = buf.DecodeUint32()
721         m.KeyLen = buf.DecodeUint16()
722         m.Key = make([]byte, m.KeyLen)
723         copy(m.Key, buf.DecodeBytes(len(m.Key)))
724         return nil
725 }
726
727 // ApplicationTLSKeyAddReply defines message 'application_tls_key_add_reply'.
728 type ApplicationTLSKeyAddReply struct {
729         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
730 }
731
732 func (m *ApplicationTLSKeyAddReply) Reset()               { *m = ApplicationTLSKeyAddReply{} }
733 func (*ApplicationTLSKeyAddReply) GetMessageName() string { return "application_tls_key_add_reply" }
734 func (*ApplicationTLSKeyAddReply) GetCrcString() string   { return "e8d4e804" }
735 func (*ApplicationTLSKeyAddReply) GetMessageType() api.MessageType {
736         return api.ReplyMessage
737 }
738
739 func (m *ApplicationTLSKeyAddReply) Size() (size int) {
740         if m == nil {
741                 return 0
742         }
743         size += 4 // m.Retval
744         return size
745 }
746 func (m *ApplicationTLSKeyAddReply) Marshal(b []byte) ([]byte, error) {
747         if b == nil {
748                 b = make([]byte, m.Size())
749         }
750         buf := codec.NewBuffer(b)
751         buf.EncodeInt32(m.Retval)
752         return buf.Bytes(), nil
753 }
754 func (m *ApplicationTLSKeyAddReply) Unmarshal(b []byte) error {
755         buf := codec.NewBuffer(b)
756         m.Retval = buf.DecodeInt32()
757         return nil
758 }
759
760 // SessionEnableDisable defines message 'session_enable_disable'.
761 type SessionEnableDisable struct {
762         IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
763 }
764
765 func (m *SessionEnableDisable) Reset()               { *m = SessionEnableDisable{} }
766 func (*SessionEnableDisable) GetMessageName() string { return "session_enable_disable" }
767 func (*SessionEnableDisable) GetCrcString() string   { return "c264d7bf" }
768 func (*SessionEnableDisable) GetMessageType() api.MessageType {
769         return api.RequestMessage
770 }
771
772 func (m *SessionEnableDisable) Size() (size int) {
773         if m == nil {
774                 return 0
775         }
776         size += 1 // m.IsEnable
777         return size
778 }
779 func (m *SessionEnableDisable) Marshal(b []byte) ([]byte, error) {
780         if b == nil {
781                 b = make([]byte, m.Size())
782         }
783         buf := codec.NewBuffer(b)
784         buf.EncodeBool(m.IsEnable)
785         return buf.Bytes(), nil
786 }
787 func (m *SessionEnableDisable) Unmarshal(b []byte) error {
788         buf := codec.NewBuffer(b)
789         m.IsEnable = buf.DecodeBool()
790         return nil
791 }
792
793 // SessionEnableDisableReply defines message 'session_enable_disable_reply'.
794 type SessionEnableDisableReply struct {
795         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
796 }
797
798 func (m *SessionEnableDisableReply) Reset()               { *m = SessionEnableDisableReply{} }
799 func (*SessionEnableDisableReply) GetMessageName() string { return "session_enable_disable_reply" }
800 func (*SessionEnableDisableReply) GetCrcString() string   { return "e8d4e804" }
801 func (*SessionEnableDisableReply) GetMessageType() api.MessageType {
802         return api.ReplyMessage
803 }
804
805 func (m *SessionEnableDisableReply) Size() (size int) {
806         if m == nil {
807                 return 0
808         }
809         size += 4 // m.Retval
810         return size
811 }
812 func (m *SessionEnableDisableReply) Marshal(b []byte) ([]byte, error) {
813         if b == nil {
814                 b = make([]byte, m.Size())
815         }
816         buf := codec.NewBuffer(b)
817         buf.EncodeInt32(m.Retval)
818         return buf.Bytes(), nil
819 }
820 func (m *SessionEnableDisableReply) Unmarshal(b []byte) error {
821         buf := codec.NewBuffer(b)
822         m.Retval = buf.DecodeInt32()
823         return nil
824 }
825
826 // SessionRuleAddDel defines message 'session_rule_add_del'.
827 type SessionRuleAddDel struct {
828         TransportProto TransportProto   `binapi:"transport_proto,name=transport_proto" json:"transport_proto,omitempty"`
829         Lcl            ip_types.Prefix  `binapi:"prefix,name=lcl" json:"lcl,omitempty"`
830         Rmt            ip_types.Prefix  `binapi:"prefix,name=rmt" json:"rmt,omitempty"`
831         LclPort        uint16           `binapi:"u16,name=lcl_port" json:"lcl_port,omitempty"`
832         RmtPort        uint16           `binapi:"u16,name=rmt_port" json:"rmt_port,omitempty"`
833         ActionIndex    uint32           `binapi:"u32,name=action_index" json:"action_index,omitempty"`
834         IsAdd          bool             `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
835         AppnsIndex     uint32           `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
836         Scope          SessionRuleScope `binapi:"session_rule_scope,name=scope" json:"scope,omitempty"`
837         Tag            string           `binapi:"string[64],name=tag" json:"tag,omitempty"`
838 }
839
840 func (m *SessionRuleAddDel) Reset()               { *m = SessionRuleAddDel{} }
841 func (*SessionRuleAddDel) GetMessageName() string { return "session_rule_add_del" }
842 func (*SessionRuleAddDel) GetCrcString() string   { return "e31f9443" }
843 func (*SessionRuleAddDel) GetMessageType() api.MessageType {
844         return api.RequestMessage
845 }
846
847 func (m *SessionRuleAddDel) Size() (size int) {
848         if m == nil {
849                 return 0
850         }
851         size += 1      // m.TransportProto
852         size += 1      // m.Lcl.Address.Af
853         size += 1 * 16 // m.Lcl.Address.Un
854         size += 1      // m.Lcl.Len
855         size += 1      // m.Rmt.Address.Af
856         size += 1 * 16 // m.Rmt.Address.Un
857         size += 1      // m.Rmt.Len
858         size += 2      // m.LclPort
859         size += 2      // m.RmtPort
860         size += 4      // m.ActionIndex
861         size += 1      // m.IsAdd
862         size += 4      // m.AppnsIndex
863         size += 4      // m.Scope
864         size += 64     // m.Tag
865         return size
866 }
867 func (m *SessionRuleAddDel) Marshal(b []byte) ([]byte, error) {
868         if b == nil {
869                 b = make([]byte, m.Size())
870         }
871         buf := codec.NewBuffer(b)
872         buf.EncodeUint8(uint8(m.TransportProto))
873         buf.EncodeUint8(uint8(m.Lcl.Address.Af))
874         buf.EncodeBytes(m.Lcl.Address.Un.XXX_UnionData[:], 16)
875         buf.EncodeUint8(m.Lcl.Len)
876         buf.EncodeUint8(uint8(m.Rmt.Address.Af))
877         buf.EncodeBytes(m.Rmt.Address.Un.XXX_UnionData[:], 16)
878         buf.EncodeUint8(m.Rmt.Len)
879         buf.EncodeUint16(m.LclPort)
880         buf.EncodeUint16(m.RmtPort)
881         buf.EncodeUint32(m.ActionIndex)
882         buf.EncodeBool(m.IsAdd)
883         buf.EncodeUint32(m.AppnsIndex)
884         buf.EncodeUint32(uint32(m.Scope))
885         buf.EncodeString(m.Tag, 64)
886         return buf.Bytes(), nil
887 }
888 func (m *SessionRuleAddDel) Unmarshal(b []byte) error {
889         buf := codec.NewBuffer(b)
890         m.TransportProto = TransportProto(buf.DecodeUint8())
891         m.Lcl.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
892         copy(m.Lcl.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
893         m.Lcl.Len = buf.DecodeUint8()
894         m.Rmt.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
895         copy(m.Rmt.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
896         m.Rmt.Len = buf.DecodeUint8()
897         m.LclPort = buf.DecodeUint16()
898         m.RmtPort = buf.DecodeUint16()
899         m.ActionIndex = buf.DecodeUint32()
900         m.IsAdd = buf.DecodeBool()
901         m.AppnsIndex = buf.DecodeUint32()
902         m.Scope = SessionRuleScope(buf.DecodeUint32())
903         m.Tag = buf.DecodeString(64)
904         return nil
905 }
906
907 // SessionRuleAddDelReply defines message 'session_rule_add_del_reply'.
908 type SessionRuleAddDelReply struct {
909         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
910 }
911
912 func (m *SessionRuleAddDelReply) Reset()               { *m = SessionRuleAddDelReply{} }
913 func (*SessionRuleAddDelReply) GetMessageName() string { return "session_rule_add_del_reply" }
914 func (*SessionRuleAddDelReply) GetCrcString() string   { return "e8d4e804" }
915 func (*SessionRuleAddDelReply) GetMessageType() api.MessageType {
916         return api.ReplyMessage
917 }
918
919 func (m *SessionRuleAddDelReply) Size() (size int) {
920         if m == nil {
921                 return 0
922         }
923         size += 4 // m.Retval
924         return size
925 }
926 func (m *SessionRuleAddDelReply) Marshal(b []byte) ([]byte, error) {
927         if b == nil {
928                 b = make([]byte, m.Size())
929         }
930         buf := codec.NewBuffer(b)
931         buf.EncodeInt32(m.Retval)
932         return buf.Bytes(), nil
933 }
934 func (m *SessionRuleAddDelReply) Unmarshal(b []byte) error {
935         buf := codec.NewBuffer(b)
936         m.Retval = buf.DecodeInt32()
937         return nil
938 }
939
940 // SessionRulesDetails defines message 'session_rules_details'.
941 type SessionRulesDetails struct {
942         TransportProto TransportProto   `binapi:"transport_proto,name=transport_proto" json:"transport_proto,omitempty"`
943         Lcl            ip_types.Prefix  `binapi:"prefix,name=lcl" json:"lcl,omitempty"`
944         Rmt            ip_types.Prefix  `binapi:"prefix,name=rmt" json:"rmt,omitempty"`
945         LclPort        uint16           `binapi:"u16,name=lcl_port" json:"lcl_port,omitempty"`
946         RmtPort        uint16           `binapi:"u16,name=rmt_port" json:"rmt_port,omitempty"`
947         ActionIndex    uint32           `binapi:"u32,name=action_index" json:"action_index,omitempty"`
948         AppnsIndex     uint32           `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
949         Scope          SessionRuleScope `binapi:"session_rule_scope,name=scope" json:"scope,omitempty"`
950         Tag            string           `binapi:"string[64],name=tag" json:"tag,omitempty"`
951 }
952
953 func (m *SessionRulesDetails) Reset()               { *m = SessionRulesDetails{} }
954 func (*SessionRulesDetails) GetMessageName() string { return "session_rules_details" }
955 func (*SessionRulesDetails) GetCrcString() string   { return "304b91f0" }
956 func (*SessionRulesDetails) GetMessageType() api.MessageType {
957         return api.ReplyMessage
958 }
959
960 func (m *SessionRulesDetails) Size() (size int) {
961         if m == nil {
962                 return 0
963         }
964         size += 1      // m.TransportProto
965         size += 1      // m.Lcl.Address.Af
966         size += 1 * 16 // m.Lcl.Address.Un
967         size += 1      // m.Lcl.Len
968         size += 1      // m.Rmt.Address.Af
969         size += 1 * 16 // m.Rmt.Address.Un
970         size += 1      // m.Rmt.Len
971         size += 2      // m.LclPort
972         size += 2      // m.RmtPort
973         size += 4      // m.ActionIndex
974         size += 4      // m.AppnsIndex
975         size += 4      // m.Scope
976         size += 64     // m.Tag
977         return size
978 }
979 func (m *SessionRulesDetails) Marshal(b []byte) ([]byte, error) {
980         if b == nil {
981                 b = make([]byte, m.Size())
982         }
983         buf := codec.NewBuffer(b)
984         buf.EncodeUint8(uint8(m.TransportProto))
985         buf.EncodeUint8(uint8(m.Lcl.Address.Af))
986         buf.EncodeBytes(m.Lcl.Address.Un.XXX_UnionData[:], 16)
987         buf.EncodeUint8(m.Lcl.Len)
988         buf.EncodeUint8(uint8(m.Rmt.Address.Af))
989         buf.EncodeBytes(m.Rmt.Address.Un.XXX_UnionData[:], 16)
990         buf.EncodeUint8(m.Rmt.Len)
991         buf.EncodeUint16(m.LclPort)
992         buf.EncodeUint16(m.RmtPort)
993         buf.EncodeUint32(m.ActionIndex)
994         buf.EncodeUint32(m.AppnsIndex)
995         buf.EncodeUint32(uint32(m.Scope))
996         buf.EncodeString(m.Tag, 64)
997         return buf.Bytes(), nil
998 }
999 func (m *SessionRulesDetails) Unmarshal(b []byte) error {
1000         buf := codec.NewBuffer(b)
1001         m.TransportProto = TransportProto(buf.DecodeUint8())
1002         m.Lcl.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
1003         copy(m.Lcl.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1004         m.Lcl.Len = buf.DecodeUint8()
1005         m.Rmt.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
1006         copy(m.Rmt.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1007         m.Rmt.Len = buf.DecodeUint8()
1008         m.LclPort = buf.DecodeUint16()
1009         m.RmtPort = buf.DecodeUint16()
1010         m.ActionIndex = buf.DecodeUint32()
1011         m.AppnsIndex = buf.DecodeUint32()
1012         m.Scope = SessionRuleScope(buf.DecodeUint32())
1013         m.Tag = buf.DecodeString(64)
1014         return nil
1015 }
1016
1017 // SessionRulesDump defines message 'session_rules_dump'.
1018 type SessionRulesDump struct{}
1019
1020 func (m *SessionRulesDump) Reset()               { *m = SessionRulesDump{} }
1021 func (*SessionRulesDump) GetMessageName() string { return "session_rules_dump" }
1022 func (*SessionRulesDump) GetCrcString() string   { return "51077d14" }
1023 func (*SessionRulesDump) GetMessageType() api.MessageType {
1024         return api.RequestMessage
1025 }
1026
1027 func (m *SessionRulesDump) Size() (size int) {
1028         if m == nil {
1029                 return 0
1030         }
1031         return size
1032 }
1033 func (m *SessionRulesDump) Marshal(b []byte) ([]byte, error) {
1034         if b == nil {
1035                 b = make([]byte, m.Size())
1036         }
1037         buf := codec.NewBuffer(b)
1038         return buf.Bytes(), nil
1039 }
1040 func (m *SessionRulesDump) Unmarshal(b []byte) error {
1041         return nil
1042 }
1043
1044 func init() { file_session_binapi_init() }
1045 func file_session_binapi_init() {
1046         api.RegisterMessage((*AppAddCertKeyPair)(nil), "app_add_cert_key_pair_02eb8016")
1047         api.RegisterMessage((*AppAddCertKeyPairReply)(nil), "app_add_cert_key_pair_reply_b42958d0")
1048         api.RegisterMessage((*AppAttach)(nil), "app_attach_5f4a260d")
1049         api.RegisterMessage((*AppAttachReply)(nil), "app_attach_reply_5c89c3b0")
1050         api.RegisterMessage((*AppDelCertKeyPair)(nil), "app_del_cert_key_pair_8ac76db6")
1051         api.RegisterMessage((*AppDelCertKeyPairReply)(nil), "app_del_cert_key_pair_reply_e8d4e804")
1052         api.RegisterMessage((*AppNamespaceAddDel)(nil), "app_namespace_add_del_6306aecb")
1053         api.RegisterMessage((*AppNamespaceAddDelReply)(nil), "app_namespace_add_del_reply_85137120")
1054         api.RegisterMessage((*AppWorkerAddDel)(nil), "app_worker_add_del_753253dc")
1055         api.RegisterMessage((*AppWorkerAddDelReply)(nil), "app_worker_add_del_reply_5735ffe7")
1056         api.RegisterMessage((*ApplicationDetach)(nil), "application_detach_51077d14")
1057         api.RegisterMessage((*ApplicationDetachReply)(nil), "application_detach_reply_e8d4e804")
1058         api.RegisterMessage((*ApplicationTLSCertAdd)(nil), "application_tls_cert_add_3f5cfe45")
1059         api.RegisterMessage((*ApplicationTLSCertAddReply)(nil), "application_tls_cert_add_reply_e8d4e804")
1060         api.RegisterMessage((*ApplicationTLSKeyAdd)(nil), "application_tls_key_add_5eaf70cd")
1061         api.RegisterMessage((*ApplicationTLSKeyAddReply)(nil), "application_tls_key_add_reply_e8d4e804")
1062         api.RegisterMessage((*SessionEnableDisable)(nil), "session_enable_disable_c264d7bf")
1063         api.RegisterMessage((*SessionEnableDisableReply)(nil), "session_enable_disable_reply_e8d4e804")
1064         api.RegisterMessage((*SessionRuleAddDel)(nil), "session_rule_add_del_e31f9443")
1065         api.RegisterMessage((*SessionRuleAddDelReply)(nil), "session_rule_add_del_reply_e8d4e804")
1066         api.RegisterMessage((*SessionRulesDetails)(nil), "session_rules_details_304b91f0")
1067         api.RegisterMessage((*SessionRulesDump)(nil), "session_rules_dump_51077d14")
1068 }
1069
1070 // Messages returns list of all messages in this module.
1071 func AllMessages() []api.Message {
1072         return []api.Message{
1073                 (*AppAddCertKeyPair)(nil),
1074                 (*AppAddCertKeyPairReply)(nil),
1075                 (*AppAttach)(nil),
1076                 (*AppAttachReply)(nil),
1077                 (*AppDelCertKeyPair)(nil),
1078                 (*AppDelCertKeyPairReply)(nil),
1079                 (*AppNamespaceAddDel)(nil),
1080                 (*AppNamespaceAddDelReply)(nil),
1081                 (*AppWorkerAddDel)(nil),
1082                 (*AppWorkerAddDelReply)(nil),
1083                 (*ApplicationDetach)(nil),
1084                 (*ApplicationDetachReply)(nil),
1085                 (*ApplicationTLSCertAdd)(nil),
1086                 (*ApplicationTLSCertAddReply)(nil),
1087                 (*ApplicationTLSKeyAdd)(nil),
1088                 (*ApplicationTLSKeyAddReply)(nil),
1089                 (*SessionEnableDisable)(nil),
1090                 (*SessionEnableDisableReply)(nil),
1091                 (*SessionRuleAddDel)(nil),
1092                 (*SessionRuleAddDelReply)(nil),
1093                 (*SessionRulesDetails)(nil),
1094                 (*SessionRulesDump)(nil),
1095         }
1096 }