ab2328eeb0ae5c926ec658d89a535c4571479806
[govpp.git] / binapi / session / session.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // versions:
3 //  binapi-generator: v0.5.0-dev
4 //  VPP:              21.06-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 = "4.0.0"
33         VersionCrc = 0x32fe1c77
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 // Deprecated: to be removed post 21.06
612 type ApplicationTLSCertAdd struct {
613         AppIndex uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
614         CertLen  uint16 `binapi:"u16,name=cert_len" json:"-"`
615         Cert     []byte `binapi:"u8[cert_len],name=cert" json:"cert,omitempty"`
616 }
617
618 func (m *ApplicationTLSCertAdd) Reset()               { *m = ApplicationTLSCertAdd{} }
619 func (*ApplicationTLSCertAdd) GetMessageName() string { return "application_tls_cert_add" }
620 func (*ApplicationTLSCertAdd) GetCrcString() string   { return "3f5cfe45" }
621 func (*ApplicationTLSCertAdd) GetMessageType() api.MessageType {
622         return api.RequestMessage
623 }
624
625 func (m *ApplicationTLSCertAdd) Size() (size int) {
626         if m == nil {
627                 return 0
628         }
629         size += 4               // m.AppIndex
630         size += 2               // m.CertLen
631         size += 1 * len(m.Cert) // m.Cert
632         return size
633 }
634 func (m *ApplicationTLSCertAdd) Marshal(b []byte) ([]byte, error) {
635         if b == nil {
636                 b = make([]byte, m.Size())
637         }
638         buf := codec.NewBuffer(b)
639         buf.EncodeUint32(m.AppIndex)
640         buf.EncodeUint16(uint16(len(m.Cert)))
641         buf.EncodeBytes(m.Cert, 0)
642         return buf.Bytes(), nil
643 }
644 func (m *ApplicationTLSCertAdd) Unmarshal(b []byte) error {
645         buf := codec.NewBuffer(b)
646         m.AppIndex = buf.DecodeUint32()
647         m.CertLen = buf.DecodeUint16()
648         m.Cert = make([]byte, m.CertLen)
649         copy(m.Cert, buf.DecodeBytes(len(m.Cert)))
650         return nil
651 }
652
653 // ApplicationTLSCertAddReply defines message 'application_tls_cert_add_reply'.
654 // Deprecated: to be removed post 21.06
655 type ApplicationTLSCertAddReply struct {
656         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
657 }
658
659 func (m *ApplicationTLSCertAddReply) Reset()               { *m = ApplicationTLSCertAddReply{} }
660 func (*ApplicationTLSCertAddReply) GetMessageName() string { return "application_tls_cert_add_reply" }
661 func (*ApplicationTLSCertAddReply) GetCrcString() string   { return "e8d4e804" }
662 func (*ApplicationTLSCertAddReply) GetMessageType() api.MessageType {
663         return api.ReplyMessage
664 }
665
666 func (m *ApplicationTLSCertAddReply) Size() (size int) {
667         if m == nil {
668                 return 0
669         }
670         size += 4 // m.Retval
671         return size
672 }
673 func (m *ApplicationTLSCertAddReply) Marshal(b []byte) ([]byte, error) {
674         if b == nil {
675                 b = make([]byte, m.Size())
676         }
677         buf := codec.NewBuffer(b)
678         buf.EncodeInt32(m.Retval)
679         return buf.Bytes(), nil
680 }
681 func (m *ApplicationTLSCertAddReply) Unmarshal(b []byte) error {
682         buf := codec.NewBuffer(b)
683         m.Retval = buf.DecodeInt32()
684         return nil
685 }
686
687 // ApplicationTLSKeyAdd defines message 'application_tls_key_add'.
688 // Deprecated: to be removed post 21.06
689 type ApplicationTLSKeyAdd struct {
690         AppIndex uint32 `binapi:"u32,name=app_index" json:"app_index,omitempty"`
691         KeyLen   uint16 `binapi:"u16,name=key_len" json:"-"`
692         Key      []byte `binapi:"u8[key_len],name=key" json:"key,omitempty"`
693 }
694
695 func (m *ApplicationTLSKeyAdd) Reset()               { *m = ApplicationTLSKeyAdd{} }
696 func (*ApplicationTLSKeyAdd) GetMessageName() string { return "application_tls_key_add" }
697 func (*ApplicationTLSKeyAdd) GetCrcString() string   { return "5eaf70cd" }
698 func (*ApplicationTLSKeyAdd) GetMessageType() api.MessageType {
699         return api.RequestMessage
700 }
701
702 func (m *ApplicationTLSKeyAdd) Size() (size int) {
703         if m == nil {
704                 return 0
705         }
706         size += 4              // m.AppIndex
707         size += 2              // m.KeyLen
708         size += 1 * len(m.Key) // m.Key
709         return size
710 }
711 func (m *ApplicationTLSKeyAdd) Marshal(b []byte) ([]byte, error) {
712         if b == nil {
713                 b = make([]byte, m.Size())
714         }
715         buf := codec.NewBuffer(b)
716         buf.EncodeUint32(m.AppIndex)
717         buf.EncodeUint16(uint16(len(m.Key)))
718         buf.EncodeBytes(m.Key, 0)
719         return buf.Bytes(), nil
720 }
721 func (m *ApplicationTLSKeyAdd) Unmarshal(b []byte) error {
722         buf := codec.NewBuffer(b)
723         m.AppIndex = buf.DecodeUint32()
724         m.KeyLen = buf.DecodeUint16()
725         m.Key = make([]byte, m.KeyLen)
726         copy(m.Key, buf.DecodeBytes(len(m.Key)))
727         return nil
728 }
729
730 // ApplicationTLSKeyAddReply defines message 'application_tls_key_add_reply'.
731 // Deprecated: to be removed post 21.06
732 type ApplicationTLSKeyAddReply struct {
733         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
734 }
735
736 func (m *ApplicationTLSKeyAddReply) Reset()               { *m = ApplicationTLSKeyAddReply{} }
737 func (*ApplicationTLSKeyAddReply) GetMessageName() string { return "application_tls_key_add_reply" }
738 func (*ApplicationTLSKeyAddReply) GetCrcString() string   { return "e8d4e804" }
739 func (*ApplicationTLSKeyAddReply) GetMessageType() api.MessageType {
740         return api.ReplyMessage
741 }
742
743 func (m *ApplicationTLSKeyAddReply) Size() (size int) {
744         if m == nil {
745                 return 0
746         }
747         size += 4 // m.Retval
748         return size
749 }
750 func (m *ApplicationTLSKeyAddReply) Marshal(b []byte) ([]byte, error) {
751         if b == nil {
752                 b = make([]byte, m.Size())
753         }
754         buf := codec.NewBuffer(b)
755         buf.EncodeInt32(m.Retval)
756         return buf.Bytes(), nil
757 }
758 func (m *ApplicationTLSKeyAddReply) Unmarshal(b []byte) error {
759         buf := codec.NewBuffer(b)
760         m.Retval = buf.DecodeInt32()
761         return nil
762 }
763
764 // SessionEnableDisable defines message 'session_enable_disable'.
765 type SessionEnableDisable struct {
766         IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
767 }
768
769 func (m *SessionEnableDisable) Reset()               { *m = SessionEnableDisable{} }
770 func (*SessionEnableDisable) GetMessageName() string { return "session_enable_disable" }
771 func (*SessionEnableDisable) GetCrcString() string   { return "c264d7bf" }
772 func (*SessionEnableDisable) GetMessageType() api.MessageType {
773         return api.RequestMessage
774 }
775
776 func (m *SessionEnableDisable) Size() (size int) {
777         if m == nil {
778                 return 0
779         }
780         size += 1 // m.IsEnable
781         return size
782 }
783 func (m *SessionEnableDisable) Marshal(b []byte) ([]byte, error) {
784         if b == nil {
785                 b = make([]byte, m.Size())
786         }
787         buf := codec.NewBuffer(b)
788         buf.EncodeBool(m.IsEnable)
789         return buf.Bytes(), nil
790 }
791 func (m *SessionEnableDisable) Unmarshal(b []byte) error {
792         buf := codec.NewBuffer(b)
793         m.IsEnable = buf.DecodeBool()
794         return nil
795 }
796
797 // SessionEnableDisableReply defines message 'session_enable_disable_reply'.
798 type SessionEnableDisableReply struct {
799         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
800 }
801
802 func (m *SessionEnableDisableReply) Reset()               { *m = SessionEnableDisableReply{} }
803 func (*SessionEnableDisableReply) GetMessageName() string { return "session_enable_disable_reply" }
804 func (*SessionEnableDisableReply) GetCrcString() string   { return "e8d4e804" }
805 func (*SessionEnableDisableReply) GetMessageType() api.MessageType {
806         return api.ReplyMessage
807 }
808
809 func (m *SessionEnableDisableReply) Size() (size int) {
810         if m == nil {
811                 return 0
812         }
813         size += 4 // m.Retval
814         return size
815 }
816 func (m *SessionEnableDisableReply) Marshal(b []byte) ([]byte, error) {
817         if b == nil {
818                 b = make([]byte, m.Size())
819         }
820         buf := codec.NewBuffer(b)
821         buf.EncodeInt32(m.Retval)
822         return buf.Bytes(), nil
823 }
824 func (m *SessionEnableDisableReply) Unmarshal(b []byte) error {
825         buf := codec.NewBuffer(b)
826         m.Retval = buf.DecodeInt32()
827         return nil
828 }
829
830 // SessionRuleAddDel defines message 'session_rule_add_del'.
831 type SessionRuleAddDel struct {
832         TransportProto TransportProto   `binapi:"transport_proto,name=transport_proto" json:"transport_proto,omitempty"`
833         Lcl            ip_types.Prefix  `binapi:"prefix,name=lcl" json:"lcl,omitempty"`
834         Rmt            ip_types.Prefix  `binapi:"prefix,name=rmt" json:"rmt,omitempty"`
835         LclPort        uint16           `binapi:"u16,name=lcl_port" json:"lcl_port,omitempty"`
836         RmtPort        uint16           `binapi:"u16,name=rmt_port" json:"rmt_port,omitempty"`
837         ActionIndex    uint32           `binapi:"u32,name=action_index" json:"action_index,omitempty"`
838         IsAdd          bool             `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
839         AppnsIndex     uint32           `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
840         Scope          SessionRuleScope `binapi:"session_rule_scope,name=scope" json:"scope,omitempty"`
841         Tag            string           `binapi:"string[64],name=tag" json:"tag,omitempty"`
842 }
843
844 func (m *SessionRuleAddDel) Reset()               { *m = SessionRuleAddDel{} }
845 func (*SessionRuleAddDel) GetMessageName() string { return "session_rule_add_del" }
846 func (*SessionRuleAddDel) GetCrcString() string   { return "e4895422" }
847 func (*SessionRuleAddDel) GetMessageType() api.MessageType {
848         return api.RequestMessage
849 }
850
851 func (m *SessionRuleAddDel) Size() (size int) {
852         if m == nil {
853                 return 0
854         }
855         size += 1      // m.TransportProto
856         size += 1      // m.Lcl.Address.Af
857         size += 1 * 16 // m.Lcl.Address.Un
858         size += 1      // m.Lcl.Len
859         size += 1      // m.Rmt.Address.Af
860         size += 1 * 16 // m.Rmt.Address.Un
861         size += 1      // m.Rmt.Len
862         size += 2      // m.LclPort
863         size += 2      // m.RmtPort
864         size += 4      // m.ActionIndex
865         size += 1      // m.IsAdd
866         size += 4      // m.AppnsIndex
867         size += 4      // m.Scope
868         size += 64     // m.Tag
869         return size
870 }
871 func (m *SessionRuleAddDel) Marshal(b []byte) ([]byte, error) {
872         if b == nil {
873                 b = make([]byte, m.Size())
874         }
875         buf := codec.NewBuffer(b)
876         buf.EncodeUint8(uint8(m.TransportProto))
877         buf.EncodeUint8(uint8(m.Lcl.Address.Af))
878         buf.EncodeBytes(m.Lcl.Address.Un.XXX_UnionData[:], 16)
879         buf.EncodeUint8(m.Lcl.Len)
880         buf.EncodeUint8(uint8(m.Rmt.Address.Af))
881         buf.EncodeBytes(m.Rmt.Address.Un.XXX_UnionData[:], 16)
882         buf.EncodeUint8(m.Rmt.Len)
883         buf.EncodeUint16(m.LclPort)
884         buf.EncodeUint16(m.RmtPort)
885         buf.EncodeUint32(m.ActionIndex)
886         buf.EncodeBool(m.IsAdd)
887         buf.EncodeUint32(m.AppnsIndex)
888         buf.EncodeUint32(uint32(m.Scope))
889         buf.EncodeString(m.Tag, 64)
890         return buf.Bytes(), nil
891 }
892 func (m *SessionRuleAddDel) Unmarshal(b []byte) error {
893         buf := codec.NewBuffer(b)
894         m.TransportProto = TransportProto(buf.DecodeUint8())
895         m.Lcl.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
896         copy(m.Lcl.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
897         m.Lcl.Len = buf.DecodeUint8()
898         m.Rmt.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
899         copy(m.Rmt.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
900         m.Rmt.Len = buf.DecodeUint8()
901         m.LclPort = buf.DecodeUint16()
902         m.RmtPort = buf.DecodeUint16()
903         m.ActionIndex = buf.DecodeUint32()
904         m.IsAdd = buf.DecodeBool()
905         m.AppnsIndex = buf.DecodeUint32()
906         m.Scope = SessionRuleScope(buf.DecodeUint32())
907         m.Tag = buf.DecodeString(64)
908         return nil
909 }
910
911 // SessionRuleAddDelReply defines message 'session_rule_add_del_reply'.
912 type SessionRuleAddDelReply struct {
913         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
914 }
915
916 func (m *SessionRuleAddDelReply) Reset()               { *m = SessionRuleAddDelReply{} }
917 func (*SessionRuleAddDelReply) GetMessageName() string { return "session_rule_add_del_reply" }
918 func (*SessionRuleAddDelReply) GetCrcString() string   { return "e8d4e804" }
919 func (*SessionRuleAddDelReply) GetMessageType() api.MessageType {
920         return api.ReplyMessage
921 }
922
923 func (m *SessionRuleAddDelReply) Size() (size int) {
924         if m == nil {
925                 return 0
926         }
927         size += 4 // m.Retval
928         return size
929 }
930 func (m *SessionRuleAddDelReply) Marshal(b []byte) ([]byte, error) {
931         if b == nil {
932                 b = make([]byte, m.Size())
933         }
934         buf := codec.NewBuffer(b)
935         buf.EncodeInt32(m.Retval)
936         return buf.Bytes(), nil
937 }
938 func (m *SessionRuleAddDelReply) Unmarshal(b []byte) error {
939         buf := codec.NewBuffer(b)
940         m.Retval = buf.DecodeInt32()
941         return nil
942 }
943
944 // SessionRulesDetails defines message 'session_rules_details'.
945 type SessionRulesDetails struct {
946         TransportProto TransportProto   `binapi:"transport_proto,name=transport_proto" json:"transport_proto,omitempty"`
947         Lcl            ip_types.Prefix  `binapi:"prefix,name=lcl" json:"lcl,omitempty"`
948         Rmt            ip_types.Prefix  `binapi:"prefix,name=rmt" json:"rmt,omitempty"`
949         LclPort        uint16           `binapi:"u16,name=lcl_port" json:"lcl_port,omitempty"`
950         RmtPort        uint16           `binapi:"u16,name=rmt_port" json:"rmt_port,omitempty"`
951         ActionIndex    uint32           `binapi:"u32,name=action_index" json:"action_index,omitempty"`
952         AppnsIndex     uint32           `binapi:"u32,name=appns_index" json:"appns_index,omitempty"`
953         Scope          SessionRuleScope `binapi:"session_rule_scope,name=scope" json:"scope,omitempty"`
954         Tag            string           `binapi:"string[64],name=tag" json:"tag,omitempty"`
955 }
956
957 func (m *SessionRulesDetails) Reset()               { *m = SessionRulesDetails{} }
958 func (*SessionRulesDetails) GetMessageName() string { return "session_rules_details" }
959 func (*SessionRulesDetails) GetCrcString() string   { return "28d71830" }
960 func (*SessionRulesDetails) GetMessageType() api.MessageType {
961         return api.ReplyMessage
962 }
963
964 func (m *SessionRulesDetails) Size() (size int) {
965         if m == nil {
966                 return 0
967         }
968         size += 1      // m.TransportProto
969         size += 1      // m.Lcl.Address.Af
970         size += 1 * 16 // m.Lcl.Address.Un
971         size += 1      // m.Lcl.Len
972         size += 1      // m.Rmt.Address.Af
973         size += 1 * 16 // m.Rmt.Address.Un
974         size += 1      // m.Rmt.Len
975         size += 2      // m.LclPort
976         size += 2      // m.RmtPort
977         size += 4      // m.ActionIndex
978         size += 4      // m.AppnsIndex
979         size += 4      // m.Scope
980         size += 64     // m.Tag
981         return size
982 }
983 func (m *SessionRulesDetails) Marshal(b []byte) ([]byte, error) {
984         if b == nil {
985                 b = make([]byte, m.Size())
986         }
987         buf := codec.NewBuffer(b)
988         buf.EncodeUint8(uint8(m.TransportProto))
989         buf.EncodeUint8(uint8(m.Lcl.Address.Af))
990         buf.EncodeBytes(m.Lcl.Address.Un.XXX_UnionData[:], 16)
991         buf.EncodeUint8(m.Lcl.Len)
992         buf.EncodeUint8(uint8(m.Rmt.Address.Af))
993         buf.EncodeBytes(m.Rmt.Address.Un.XXX_UnionData[:], 16)
994         buf.EncodeUint8(m.Rmt.Len)
995         buf.EncodeUint16(m.LclPort)
996         buf.EncodeUint16(m.RmtPort)
997         buf.EncodeUint32(m.ActionIndex)
998         buf.EncodeUint32(m.AppnsIndex)
999         buf.EncodeUint32(uint32(m.Scope))
1000         buf.EncodeString(m.Tag, 64)
1001         return buf.Bytes(), nil
1002 }
1003 func (m *SessionRulesDetails) Unmarshal(b []byte) error {
1004         buf := codec.NewBuffer(b)
1005         m.TransportProto = TransportProto(buf.DecodeUint8())
1006         m.Lcl.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
1007         copy(m.Lcl.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1008         m.Lcl.Len = buf.DecodeUint8()
1009         m.Rmt.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
1010         copy(m.Rmt.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1011         m.Rmt.Len = buf.DecodeUint8()
1012         m.LclPort = buf.DecodeUint16()
1013         m.RmtPort = buf.DecodeUint16()
1014         m.ActionIndex = buf.DecodeUint32()
1015         m.AppnsIndex = buf.DecodeUint32()
1016         m.Scope = SessionRuleScope(buf.DecodeUint32())
1017         m.Tag = buf.DecodeString(64)
1018         return nil
1019 }
1020
1021 // SessionRulesDump defines message 'session_rules_dump'.
1022 type SessionRulesDump struct{}
1023
1024 func (m *SessionRulesDump) Reset()               { *m = SessionRulesDump{} }
1025 func (*SessionRulesDump) GetMessageName() string { return "session_rules_dump" }
1026 func (*SessionRulesDump) GetCrcString() string   { return "51077d14" }
1027 func (*SessionRulesDump) GetMessageType() api.MessageType {
1028         return api.RequestMessage
1029 }
1030
1031 func (m *SessionRulesDump) Size() (size int) {
1032         if m == nil {
1033                 return 0
1034         }
1035         return size
1036 }
1037 func (m *SessionRulesDump) Marshal(b []byte) ([]byte, error) {
1038         if b == nil {
1039                 b = make([]byte, m.Size())
1040         }
1041         buf := codec.NewBuffer(b)
1042         return buf.Bytes(), nil
1043 }
1044 func (m *SessionRulesDump) Unmarshal(b []byte) error {
1045         return nil
1046 }
1047
1048 func init() { file_session_binapi_init() }
1049 func file_session_binapi_init() {
1050         api.RegisterMessage((*AppAddCertKeyPair)(nil), "app_add_cert_key_pair_02eb8016")
1051         api.RegisterMessage((*AppAddCertKeyPairReply)(nil), "app_add_cert_key_pair_reply_b42958d0")
1052         api.RegisterMessage((*AppAttach)(nil), "app_attach_5f4a260d")
1053         api.RegisterMessage((*AppAttachReply)(nil), "app_attach_reply_5c89c3b0")
1054         api.RegisterMessage((*AppDelCertKeyPair)(nil), "app_del_cert_key_pair_8ac76db6")
1055         api.RegisterMessage((*AppDelCertKeyPairReply)(nil), "app_del_cert_key_pair_reply_e8d4e804")
1056         api.RegisterMessage((*AppNamespaceAddDel)(nil), "app_namespace_add_del_6306aecb")
1057         api.RegisterMessage((*AppNamespaceAddDelReply)(nil), "app_namespace_add_del_reply_85137120")
1058         api.RegisterMessage((*AppWorkerAddDel)(nil), "app_worker_add_del_753253dc")
1059         api.RegisterMessage((*AppWorkerAddDelReply)(nil), "app_worker_add_del_reply_5735ffe7")
1060         api.RegisterMessage((*ApplicationDetach)(nil), "application_detach_51077d14")
1061         api.RegisterMessage((*ApplicationDetachReply)(nil), "application_detach_reply_e8d4e804")
1062         api.RegisterMessage((*ApplicationTLSCertAdd)(nil), "application_tls_cert_add_3f5cfe45")
1063         api.RegisterMessage((*ApplicationTLSCertAddReply)(nil), "application_tls_cert_add_reply_e8d4e804")
1064         api.RegisterMessage((*ApplicationTLSKeyAdd)(nil), "application_tls_key_add_5eaf70cd")
1065         api.RegisterMessage((*ApplicationTLSKeyAddReply)(nil), "application_tls_key_add_reply_e8d4e804")
1066         api.RegisterMessage((*SessionEnableDisable)(nil), "session_enable_disable_c264d7bf")
1067         api.RegisterMessage((*SessionEnableDisableReply)(nil), "session_enable_disable_reply_e8d4e804")
1068         api.RegisterMessage((*SessionRuleAddDel)(nil), "session_rule_add_del_e4895422")
1069         api.RegisterMessage((*SessionRuleAddDelReply)(nil), "session_rule_add_del_reply_e8d4e804")
1070         api.RegisterMessage((*SessionRulesDetails)(nil), "session_rules_details_28d71830")
1071         api.RegisterMessage((*SessionRulesDump)(nil), "session_rules_dump_51077d14")
1072 }
1073
1074 // Messages returns list of all messages in this module.
1075 func AllMessages() []api.Message {
1076         return []api.Message{
1077                 (*AppAddCertKeyPair)(nil),
1078                 (*AppAddCertKeyPairReply)(nil),
1079                 (*AppAttach)(nil),
1080                 (*AppAttachReply)(nil),
1081                 (*AppDelCertKeyPair)(nil),
1082                 (*AppDelCertKeyPairReply)(nil),
1083                 (*AppNamespaceAddDel)(nil),
1084                 (*AppNamespaceAddDelReply)(nil),
1085                 (*AppWorkerAddDel)(nil),
1086                 (*AppWorkerAddDelReply)(nil),
1087                 (*ApplicationDetach)(nil),
1088                 (*ApplicationDetachReply)(nil),
1089                 (*ApplicationTLSCertAdd)(nil),
1090                 (*ApplicationTLSCertAddReply)(nil),
1091                 (*ApplicationTLSKeyAdd)(nil),
1092                 (*ApplicationTLSKeyAddReply)(nil),
1093                 (*SessionEnableDisable)(nil),
1094                 (*SessionEnableDisableReply)(nil),
1095                 (*SessionRuleAddDel)(nil),
1096                 (*SessionRuleAddDelReply)(nil),
1097                 (*SessionRulesDetails)(nil),
1098                 (*SessionRulesDump)(nil),
1099         }
1100 }