forked from quickfixgo/quickfix
/
PartyDetailsListRequest.generated.go
495 lines (406 loc) · 16.2 KB
/
PartyDetailsListRequest.generated.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
package partydetailslistrequest
import (
"time"
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/field"
"github.com/quickfixgo/quickfix/fixt11"
"github.com/quickfixgo/quickfix/tag"
)
//PartyDetailsListRequest is the fix50sp2 PartyDetailsListRequest type, MsgType = CF
type PartyDetailsListRequest struct {
fixt11.Header
quickfix.Body
fixt11.Trailer
//ReceiveTime is the time that this message was read from the socket connection
ReceiveTime time.Time
}
//FromMessage creates a PartyDetailsListRequest from a quickfix.Message instance
func FromMessage(m quickfix.Message) PartyDetailsListRequest {
return PartyDetailsListRequest{
Header: fixt11.Header{Header: m.Header},
Body: m.Body,
Trailer: fixt11.Trailer{Trailer: m.Trailer},
ReceiveTime: m.ReceiveTime,
}
}
//ToMessage returns a quickfix.Message instance
func (m PartyDetailsListRequest) ToMessage() quickfix.Message {
return quickfix.Message{
Header: m.Header.Header,
Body: m.Body,
Trailer: m.Trailer.Trailer,
ReceiveTime: m.ReceiveTime,
}
}
//New returns a PartyDetailsListRequest initialized with the required fields for PartyDetailsListRequest
func New(partydetailslistrequestid field.PartyDetailsListRequestIDField) (m PartyDetailsListRequest) {
m.Header = fixt11.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("CF"))
m.Set(partydetailslistrequestid)
return
}
//A RouteOut is the callback type that should be implemented for routing Message
type RouteOut func(msg PartyDetailsListRequest, sessionID quickfix.SessionID) quickfix.MessageRejectError
//Route returns the beginstring, message type, and MessageRoute for this Message type
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
return router(FromMessage(msg), sessionID)
}
return "9", "CF", r
}
//SetText sets Text, Tag 58
func (m PartyDetailsListRequest) SetText(v string) {
m.Set(field.NewText(v))
}
//SetSubscriptionRequestType sets SubscriptionRequestType, Tag 263
func (m PartyDetailsListRequest) SetSubscriptionRequestType(v string) {
m.Set(field.NewSubscriptionRequestType(v))
}
//SetEncodedTextLen sets EncodedTextLen, Tag 354
func (m PartyDetailsListRequest) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
//SetEncodedText sets EncodedText, Tag 355
func (m PartyDetailsListRequest) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
//SetNoPartyIDs sets NoPartyIDs, Tag 453
func (m PartyDetailsListRequest) SetNoPartyIDs(f NoPartyIDsRepeatingGroup) {
m.SetGroup(f)
}
//SetPartyDetailsListRequestID sets PartyDetailsListRequestID, Tag 1505
func (m PartyDetailsListRequest) SetPartyDetailsListRequestID(v string) {
m.Set(field.NewPartyDetailsListRequestID(v))
}
//SetNoPartyListResponseTypes sets NoPartyListResponseTypes, Tag 1506
func (m PartyDetailsListRequest) SetNoPartyListResponseTypes(f NoPartyListResponseTypesRepeatingGroup) {
m.SetGroup(f)
}
//SetNoRequestedPartyRoles sets NoRequestedPartyRoles, Tag 1508
func (m PartyDetailsListRequest) SetNoRequestedPartyRoles(f NoRequestedPartyRolesRepeatingGroup) {
m.SetGroup(f)
}
//SetNoPartyRelationships sets NoPartyRelationships, Tag 1514
func (m PartyDetailsListRequest) SetNoPartyRelationships(f NoPartyRelationshipsRepeatingGroup) {
m.SetGroup(f)
}
//GetText gets Text, Tag 58
func (m PartyDetailsListRequest) GetText() (f field.TextField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSubscriptionRequestType gets SubscriptionRequestType, Tag 263
func (m PartyDetailsListRequest) GetSubscriptionRequestType() (f field.SubscriptionRequestTypeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedTextLen gets EncodedTextLen, Tag 354
func (m PartyDetailsListRequest) GetEncodedTextLen() (f field.EncodedTextLenField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedText gets EncodedText, Tag 355
func (m PartyDetailsListRequest) GetEncodedText() (f field.EncodedTextField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetNoPartyIDs gets NoPartyIDs, Tag 453
func (m PartyDetailsListRequest) GetNoPartyIDs() (NoPartyIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoPartyIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetPartyDetailsListRequestID gets PartyDetailsListRequestID, Tag 1505
func (m PartyDetailsListRequest) GetPartyDetailsListRequestID() (f field.PartyDetailsListRequestIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetNoPartyListResponseTypes gets NoPartyListResponseTypes, Tag 1506
func (m PartyDetailsListRequest) GetNoPartyListResponseTypes() (NoPartyListResponseTypesRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoPartyListResponseTypesRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetNoRequestedPartyRoles gets NoRequestedPartyRoles, Tag 1508
func (m PartyDetailsListRequest) GetNoRequestedPartyRoles() (NoRequestedPartyRolesRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoRequestedPartyRolesRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetNoPartyRelationships gets NoPartyRelationships, Tag 1514
func (m PartyDetailsListRequest) GetNoPartyRelationships() (NoPartyRelationshipsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoPartyRelationshipsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//HasText returns true if Text is present, Tag 58
func (m PartyDetailsListRequest) HasText() bool {
return m.Has(tag.Text)
}
//HasSubscriptionRequestType returns true if SubscriptionRequestType is present, Tag 263
func (m PartyDetailsListRequest) HasSubscriptionRequestType() bool {
return m.Has(tag.SubscriptionRequestType)
}
//HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354
func (m PartyDetailsListRequest) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
//HasEncodedText returns true if EncodedText is present, Tag 355
func (m PartyDetailsListRequest) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}
//HasNoPartyIDs returns true if NoPartyIDs is present, Tag 453
func (m PartyDetailsListRequest) HasNoPartyIDs() bool {
return m.Has(tag.NoPartyIDs)
}
//HasPartyDetailsListRequestID returns true if PartyDetailsListRequestID is present, Tag 1505
func (m PartyDetailsListRequest) HasPartyDetailsListRequestID() bool {
return m.Has(tag.PartyDetailsListRequestID)
}
//HasNoPartyListResponseTypes returns true if NoPartyListResponseTypes is present, Tag 1506
func (m PartyDetailsListRequest) HasNoPartyListResponseTypes() bool {
return m.Has(tag.NoPartyListResponseTypes)
}
//HasNoRequestedPartyRoles returns true if NoRequestedPartyRoles is present, Tag 1508
func (m PartyDetailsListRequest) HasNoRequestedPartyRoles() bool {
return m.Has(tag.NoRequestedPartyRoles)
}
//HasNoPartyRelationships returns true if NoPartyRelationships is present, Tag 1514
func (m PartyDetailsListRequest) HasNoPartyRelationships() bool {
return m.Has(tag.NoPartyRelationships)
}
//NoPartyIDs is a repeating group element, Tag 453
type NoPartyIDs struct {
quickfix.Group
}
//SetPartyID sets PartyID, Tag 448
func (m NoPartyIDs) SetPartyID(v string) {
m.Set(field.NewPartyID(v))
}
//SetPartyIDSource sets PartyIDSource, Tag 447
func (m NoPartyIDs) SetPartyIDSource(v string) {
m.Set(field.NewPartyIDSource(v))
}
//SetPartyRole sets PartyRole, Tag 452
func (m NoPartyIDs) SetPartyRole(v int) {
m.Set(field.NewPartyRole(v))
}
//SetNoPartySubIDs sets NoPartySubIDs, Tag 802
func (m NoPartyIDs) SetNoPartySubIDs(f NoPartySubIDsRepeatingGroup) {
m.SetGroup(f)
}
//GetPartyID gets PartyID, Tag 448
func (m NoPartyIDs) GetPartyID() (f field.PartyIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetPartyIDSource gets PartyIDSource, Tag 447
func (m NoPartyIDs) GetPartyIDSource() (f field.PartyIDSourceField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetPartyRole gets PartyRole, Tag 452
func (m NoPartyIDs) GetPartyRole() (f field.PartyRoleField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetNoPartySubIDs gets NoPartySubIDs, Tag 802
func (m NoPartyIDs) GetNoPartySubIDs() (NoPartySubIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoPartySubIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//HasPartyID returns true if PartyID is present, Tag 448
func (m NoPartyIDs) HasPartyID() bool {
return m.Has(tag.PartyID)
}
//HasPartyIDSource returns true if PartyIDSource is present, Tag 447
func (m NoPartyIDs) HasPartyIDSource() bool {
return m.Has(tag.PartyIDSource)
}
//HasPartyRole returns true if PartyRole is present, Tag 452
func (m NoPartyIDs) HasPartyRole() bool {
return m.Has(tag.PartyRole)
}
//HasNoPartySubIDs returns true if NoPartySubIDs is present, Tag 802
func (m NoPartyIDs) HasNoPartySubIDs() bool {
return m.Has(tag.NoPartySubIDs)
}
//NoPartySubIDs is a repeating group element, Tag 802
type NoPartySubIDs struct {
quickfix.Group
}
//SetPartySubID sets PartySubID, Tag 523
func (m NoPartySubIDs) SetPartySubID(v string) {
m.Set(field.NewPartySubID(v))
}
//SetPartySubIDType sets PartySubIDType, Tag 803
func (m NoPartySubIDs) SetPartySubIDType(v int) {
m.Set(field.NewPartySubIDType(v))
}
//GetPartySubID gets PartySubID, Tag 523
func (m NoPartySubIDs) GetPartySubID() (f field.PartySubIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetPartySubIDType gets PartySubIDType, Tag 803
func (m NoPartySubIDs) GetPartySubIDType() (f field.PartySubIDTypeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//HasPartySubID returns true if PartySubID is present, Tag 523
func (m NoPartySubIDs) HasPartySubID() bool {
return m.Has(tag.PartySubID)
}
//HasPartySubIDType returns true if PartySubIDType is present, Tag 803
func (m NoPartySubIDs) HasPartySubIDType() bool {
return m.Has(tag.PartySubIDType)
}
//NoPartySubIDsRepeatingGroup is a repeating group, Tag 802
type NoPartySubIDsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoPartySubIDsRepeatingGroup returns an initialized, NoPartySubIDsRepeatingGroup
func NewNoPartySubIDsRepeatingGroup() NoPartySubIDsRepeatingGroup {
return NoPartySubIDsRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoPartySubIDs,
quickfix.GroupTemplate{quickfix.GroupElement(tag.PartySubID), quickfix.GroupElement(tag.PartySubIDType)})}
}
//Add create and append a new NoPartySubIDs to this group
func (m NoPartySubIDsRepeatingGroup) Add() NoPartySubIDs {
g := m.RepeatingGroup.Add()
return NoPartySubIDs{g}
}
//Get returns the ith NoPartySubIDs in the NoPartySubIDsRepeatinGroup
func (m NoPartySubIDsRepeatingGroup) Get(i int) NoPartySubIDs {
return NoPartySubIDs{m.RepeatingGroup.Get(i)}
}
//NoPartyIDsRepeatingGroup is a repeating group, Tag 453
type NoPartyIDsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoPartyIDsRepeatingGroup returns an initialized, NoPartyIDsRepeatingGroup
func NewNoPartyIDsRepeatingGroup() NoPartyIDsRepeatingGroup {
return NoPartyIDsRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoPartyIDs,
quickfix.GroupTemplate{quickfix.GroupElement(tag.PartyID), quickfix.GroupElement(tag.PartyIDSource), quickfix.GroupElement(tag.PartyRole), NewNoPartySubIDsRepeatingGroup()})}
}
//Add create and append a new NoPartyIDs to this group
func (m NoPartyIDsRepeatingGroup) Add() NoPartyIDs {
g := m.RepeatingGroup.Add()
return NoPartyIDs{g}
}
//Get returns the ith NoPartyIDs in the NoPartyIDsRepeatinGroup
func (m NoPartyIDsRepeatingGroup) Get(i int) NoPartyIDs {
return NoPartyIDs{m.RepeatingGroup.Get(i)}
}
//NoPartyListResponseTypes is a repeating group element, Tag 1506
type NoPartyListResponseTypes struct {
quickfix.Group
}
//SetPartyListResponseType sets PartyListResponseType, Tag 1507
func (m NoPartyListResponseTypes) SetPartyListResponseType(v int) {
m.Set(field.NewPartyListResponseType(v))
}
//GetPartyListResponseType gets PartyListResponseType, Tag 1507
func (m NoPartyListResponseTypes) GetPartyListResponseType() (f field.PartyListResponseTypeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//HasPartyListResponseType returns true if PartyListResponseType is present, Tag 1507
func (m NoPartyListResponseTypes) HasPartyListResponseType() bool {
return m.Has(tag.PartyListResponseType)
}
//NoPartyListResponseTypesRepeatingGroup is a repeating group, Tag 1506
type NoPartyListResponseTypesRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoPartyListResponseTypesRepeatingGroup returns an initialized, NoPartyListResponseTypesRepeatingGroup
func NewNoPartyListResponseTypesRepeatingGroup() NoPartyListResponseTypesRepeatingGroup {
return NoPartyListResponseTypesRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoPartyListResponseTypes,
quickfix.GroupTemplate{quickfix.GroupElement(tag.PartyListResponseType)})}
}
//Add create and append a new NoPartyListResponseTypes to this group
func (m NoPartyListResponseTypesRepeatingGroup) Add() NoPartyListResponseTypes {
g := m.RepeatingGroup.Add()
return NoPartyListResponseTypes{g}
}
//Get returns the ith NoPartyListResponseTypes in the NoPartyListResponseTypesRepeatinGroup
func (m NoPartyListResponseTypesRepeatingGroup) Get(i int) NoPartyListResponseTypes {
return NoPartyListResponseTypes{m.RepeatingGroup.Get(i)}
}
//NoRequestedPartyRoles is a repeating group element, Tag 1508
type NoRequestedPartyRoles struct {
quickfix.Group
}
//SetRequestedPartyRole sets RequestedPartyRole, Tag 1509
func (m NoRequestedPartyRoles) SetRequestedPartyRole(v int) {
m.Set(field.NewRequestedPartyRole(v))
}
//GetRequestedPartyRole gets RequestedPartyRole, Tag 1509
func (m NoRequestedPartyRoles) GetRequestedPartyRole() (f field.RequestedPartyRoleField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//HasRequestedPartyRole returns true if RequestedPartyRole is present, Tag 1509
func (m NoRequestedPartyRoles) HasRequestedPartyRole() bool {
return m.Has(tag.RequestedPartyRole)
}
//NoRequestedPartyRolesRepeatingGroup is a repeating group, Tag 1508
type NoRequestedPartyRolesRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoRequestedPartyRolesRepeatingGroup returns an initialized, NoRequestedPartyRolesRepeatingGroup
func NewNoRequestedPartyRolesRepeatingGroup() NoRequestedPartyRolesRepeatingGroup {
return NoRequestedPartyRolesRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoRequestedPartyRoles,
quickfix.GroupTemplate{quickfix.GroupElement(tag.RequestedPartyRole)})}
}
//Add create and append a new NoRequestedPartyRoles to this group
func (m NoRequestedPartyRolesRepeatingGroup) Add() NoRequestedPartyRoles {
g := m.RepeatingGroup.Add()
return NoRequestedPartyRoles{g}
}
//Get returns the ith NoRequestedPartyRoles in the NoRequestedPartyRolesRepeatinGroup
func (m NoRequestedPartyRolesRepeatingGroup) Get(i int) NoRequestedPartyRoles {
return NoRequestedPartyRoles{m.RepeatingGroup.Get(i)}
}
//NoPartyRelationships is a repeating group element, Tag 1514
type NoPartyRelationships struct {
quickfix.Group
}
//SetPartyRelationship sets PartyRelationship, Tag 1515
func (m NoPartyRelationships) SetPartyRelationship(v int) {
m.Set(field.NewPartyRelationship(v))
}
//GetPartyRelationship gets PartyRelationship, Tag 1515
func (m NoPartyRelationships) GetPartyRelationship() (f field.PartyRelationshipField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//HasPartyRelationship returns true if PartyRelationship is present, Tag 1515
func (m NoPartyRelationships) HasPartyRelationship() bool {
return m.Has(tag.PartyRelationship)
}
//NoPartyRelationshipsRepeatingGroup is a repeating group, Tag 1514
type NoPartyRelationshipsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoPartyRelationshipsRepeatingGroup returns an initialized, NoPartyRelationshipsRepeatingGroup
func NewNoPartyRelationshipsRepeatingGroup() NoPartyRelationshipsRepeatingGroup {
return NoPartyRelationshipsRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoPartyRelationships,
quickfix.GroupTemplate{quickfix.GroupElement(tag.PartyRelationship)})}
}
//Add create and append a new NoPartyRelationships to this group
func (m NoPartyRelationshipsRepeatingGroup) Add() NoPartyRelationships {
g := m.RepeatingGroup.Add()
return NoPartyRelationships{g}
}
//Get returns the ith NoPartyRelationships in the NoPartyRelationshipsRepeatinGroup
func (m NoPartyRelationshipsRepeatingGroup) Get(i int) NoPartyRelationships {
return NoPartyRelationships{m.RepeatingGroup.Get(i)}
}