-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmodel_responses_enums.go
More file actions
631 lines (535 loc) · 18 KB
/
model_responses_enums.go
File metadata and controls
631 lines (535 loc) · 18 KB
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
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
/*
Celenium API
Celenium API is a powerful tool to access all blockchain data that is processed and indexed by our proprietary indexer. With Celenium API you can retrieve all historical data, off-chain data, blobs and statistics through our REST API. Celenium API indexer are open source, which allows you to not depend on third-party services. You can clone, build and run them independently, giving you full control over all components. If you have any questions or feature requests, please feel free to contact us. We appreciate your feedback!
API version: 1.0
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package celenium
import (
"encoding/json"
)
// checks if the ResponsesEnums type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ResponsesEnums{}
// ResponsesEnums struct for ResponsesEnums
type ResponsesEnums struct {
Categories []string `json:"categories,omitempty"`
CelestialsStatuses []string `json:"celestials_statuses,omitempty"`
EventType []string `json:"event_type,omitempty"`
HyperlaneTokenType []string `json:"hyperlane_token_type,omitempty"`
HyperlaneTransferType []string `json:"hyperlane_transfer_type,omitempty"`
IbcChannelStatus []string `json:"ibc_channel_status,omitempty"`
MessageType []string `json:"message_type,omitempty"`
ProposalStatus []string `json:"proposal_status,omitempty"`
ProposalType []string `json:"proposal_type,omitempty"`
RollupType []string `json:"rollup_type,omitempty"`
Status []string `json:"status,omitempty"`
Tags []string `json:"tags,omitempty"`
UpgradeStatus []string `json:"upgrade_status,omitempty"`
VoteOption []string `json:"vote_option,omitempty"`
VoteType []string `json:"vote_type,omitempty"`
}
// NewResponsesEnums instantiates a new ResponsesEnums object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewResponsesEnums() *ResponsesEnums {
this := ResponsesEnums{}
return &this
}
// NewResponsesEnumsWithDefaults instantiates a new ResponsesEnums object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewResponsesEnumsWithDefaults() *ResponsesEnums {
this := ResponsesEnums{}
return &this
}
// GetCategories returns the Categories field value if set, zero value otherwise.
func (o *ResponsesEnums) GetCategories() []string {
if o == nil || IsNil(o.Categories) {
var ret []string
return ret
}
return o.Categories
}
// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetCategoriesOk() ([]string, bool) {
if o == nil || IsNil(o.Categories) {
return nil, false
}
return o.Categories, true
}
// HasCategories returns a boolean if a field has been set.
func (o *ResponsesEnums) HasCategories() bool {
if o != nil && !IsNil(o.Categories) {
return true
}
return false
}
// SetCategories gets a reference to the given []string and assigns it to the Categories field.
func (o *ResponsesEnums) SetCategories(v []string) {
o.Categories = v
}
// GetCelestialsStatuses returns the CelestialsStatuses field value if set, zero value otherwise.
func (o *ResponsesEnums) GetCelestialsStatuses() []string {
if o == nil || IsNil(o.CelestialsStatuses) {
var ret []string
return ret
}
return o.CelestialsStatuses
}
// GetCelestialsStatusesOk returns a tuple with the CelestialsStatuses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetCelestialsStatusesOk() ([]string, bool) {
if o == nil || IsNil(o.CelestialsStatuses) {
return nil, false
}
return o.CelestialsStatuses, true
}
// HasCelestialsStatuses returns a boolean if a field has been set.
func (o *ResponsesEnums) HasCelestialsStatuses() bool {
if o != nil && !IsNil(o.CelestialsStatuses) {
return true
}
return false
}
// SetCelestialsStatuses gets a reference to the given []string and assigns it to the CelestialsStatuses field.
func (o *ResponsesEnums) SetCelestialsStatuses(v []string) {
o.CelestialsStatuses = v
}
// GetEventType returns the EventType field value if set, zero value otherwise.
func (o *ResponsesEnums) GetEventType() []string {
if o == nil || IsNil(o.EventType) {
var ret []string
return ret
}
return o.EventType
}
// GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetEventTypeOk() ([]string, bool) {
if o == nil || IsNil(o.EventType) {
return nil, false
}
return o.EventType, true
}
// HasEventType returns a boolean if a field has been set.
func (o *ResponsesEnums) HasEventType() bool {
if o != nil && !IsNil(o.EventType) {
return true
}
return false
}
// SetEventType gets a reference to the given []string and assigns it to the EventType field.
func (o *ResponsesEnums) SetEventType(v []string) {
o.EventType = v
}
// GetHyperlaneTokenType returns the HyperlaneTokenType field value if set, zero value otherwise.
func (o *ResponsesEnums) GetHyperlaneTokenType() []string {
if o == nil || IsNil(o.HyperlaneTokenType) {
var ret []string
return ret
}
return o.HyperlaneTokenType
}
// GetHyperlaneTokenTypeOk returns a tuple with the HyperlaneTokenType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetHyperlaneTokenTypeOk() ([]string, bool) {
if o == nil || IsNil(o.HyperlaneTokenType) {
return nil, false
}
return o.HyperlaneTokenType, true
}
// HasHyperlaneTokenType returns a boolean if a field has been set.
func (o *ResponsesEnums) HasHyperlaneTokenType() bool {
if o != nil && !IsNil(o.HyperlaneTokenType) {
return true
}
return false
}
// SetHyperlaneTokenType gets a reference to the given []string and assigns it to the HyperlaneTokenType field.
func (o *ResponsesEnums) SetHyperlaneTokenType(v []string) {
o.HyperlaneTokenType = v
}
// GetHyperlaneTransferType returns the HyperlaneTransferType field value if set, zero value otherwise.
func (o *ResponsesEnums) GetHyperlaneTransferType() []string {
if o == nil || IsNil(o.HyperlaneTransferType) {
var ret []string
return ret
}
return o.HyperlaneTransferType
}
// GetHyperlaneTransferTypeOk returns a tuple with the HyperlaneTransferType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetHyperlaneTransferTypeOk() ([]string, bool) {
if o == nil || IsNil(o.HyperlaneTransferType) {
return nil, false
}
return o.HyperlaneTransferType, true
}
// HasHyperlaneTransferType returns a boolean if a field has been set.
func (o *ResponsesEnums) HasHyperlaneTransferType() bool {
if o != nil && !IsNil(o.HyperlaneTransferType) {
return true
}
return false
}
// SetHyperlaneTransferType gets a reference to the given []string and assigns it to the HyperlaneTransferType field.
func (o *ResponsesEnums) SetHyperlaneTransferType(v []string) {
o.HyperlaneTransferType = v
}
// GetIbcChannelStatus returns the IbcChannelStatus field value if set, zero value otherwise.
func (o *ResponsesEnums) GetIbcChannelStatus() []string {
if o == nil || IsNil(o.IbcChannelStatus) {
var ret []string
return ret
}
return o.IbcChannelStatus
}
// GetIbcChannelStatusOk returns a tuple with the IbcChannelStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetIbcChannelStatusOk() ([]string, bool) {
if o == nil || IsNil(o.IbcChannelStatus) {
return nil, false
}
return o.IbcChannelStatus, true
}
// HasIbcChannelStatus returns a boolean if a field has been set.
func (o *ResponsesEnums) HasIbcChannelStatus() bool {
if o != nil && !IsNil(o.IbcChannelStatus) {
return true
}
return false
}
// SetIbcChannelStatus gets a reference to the given []string and assigns it to the IbcChannelStatus field.
func (o *ResponsesEnums) SetIbcChannelStatus(v []string) {
o.IbcChannelStatus = v
}
// GetMessageType returns the MessageType field value if set, zero value otherwise.
func (o *ResponsesEnums) GetMessageType() []string {
if o == nil || IsNil(o.MessageType) {
var ret []string
return ret
}
return o.MessageType
}
// GetMessageTypeOk returns a tuple with the MessageType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetMessageTypeOk() ([]string, bool) {
if o == nil || IsNil(o.MessageType) {
return nil, false
}
return o.MessageType, true
}
// HasMessageType returns a boolean if a field has been set.
func (o *ResponsesEnums) HasMessageType() bool {
if o != nil && !IsNil(o.MessageType) {
return true
}
return false
}
// SetMessageType gets a reference to the given []string and assigns it to the MessageType field.
func (o *ResponsesEnums) SetMessageType(v []string) {
o.MessageType = v
}
// GetProposalStatus returns the ProposalStatus field value if set, zero value otherwise.
func (o *ResponsesEnums) GetProposalStatus() []string {
if o == nil || IsNil(o.ProposalStatus) {
var ret []string
return ret
}
return o.ProposalStatus
}
// GetProposalStatusOk returns a tuple with the ProposalStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetProposalStatusOk() ([]string, bool) {
if o == nil || IsNil(o.ProposalStatus) {
return nil, false
}
return o.ProposalStatus, true
}
// HasProposalStatus returns a boolean if a field has been set.
func (o *ResponsesEnums) HasProposalStatus() bool {
if o != nil && !IsNil(o.ProposalStatus) {
return true
}
return false
}
// SetProposalStatus gets a reference to the given []string and assigns it to the ProposalStatus field.
func (o *ResponsesEnums) SetProposalStatus(v []string) {
o.ProposalStatus = v
}
// GetProposalType returns the ProposalType field value if set, zero value otherwise.
func (o *ResponsesEnums) GetProposalType() []string {
if o == nil || IsNil(o.ProposalType) {
var ret []string
return ret
}
return o.ProposalType
}
// GetProposalTypeOk returns a tuple with the ProposalType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetProposalTypeOk() ([]string, bool) {
if o == nil || IsNil(o.ProposalType) {
return nil, false
}
return o.ProposalType, true
}
// HasProposalType returns a boolean if a field has been set.
func (o *ResponsesEnums) HasProposalType() bool {
if o != nil && !IsNil(o.ProposalType) {
return true
}
return false
}
// SetProposalType gets a reference to the given []string and assigns it to the ProposalType field.
func (o *ResponsesEnums) SetProposalType(v []string) {
o.ProposalType = v
}
// GetRollupType returns the RollupType field value if set, zero value otherwise.
func (o *ResponsesEnums) GetRollupType() []string {
if o == nil || IsNil(o.RollupType) {
var ret []string
return ret
}
return o.RollupType
}
// GetRollupTypeOk returns a tuple with the RollupType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetRollupTypeOk() ([]string, bool) {
if o == nil || IsNil(o.RollupType) {
return nil, false
}
return o.RollupType, true
}
// HasRollupType returns a boolean if a field has been set.
func (o *ResponsesEnums) HasRollupType() bool {
if o != nil && !IsNil(o.RollupType) {
return true
}
return false
}
// SetRollupType gets a reference to the given []string and assigns it to the RollupType field.
func (o *ResponsesEnums) SetRollupType(v []string) {
o.RollupType = v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *ResponsesEnums) GetStatus() []string {
if o == nil || IsNil(o.Status) {
var ret []string
return ret
}
return o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetStatusOk() ([]string, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *ResponsesEnums) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given []string and assigns it to the Status field.
func (o *ResponsesEnums) SetStatus(v []string) {
o.Status = v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *ResponsesEnums) GetTags() []string {
if o == nil || IsNil(o.Tags) {
var ret []string
return ret
}
return o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetTagsOk() ([]string, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *ResponsesEnums) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
return false
}
// SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ResponsesEnums) SetTags(v []string) {
o.Tags = v
}
// GetUpgradeStatus returns the UpgradeStatus field value if set, zero value otherwise.
func (o *ResponsesEnums) GetUpgradeStatus() []string {
if o == nil || IsNil(o.UpgradeStatus) {
var ret []string
return ret
}
return o.UpgradeStatus
}
// GetUpgradeStatusOk returns a tuple with the UpgradeStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetUpgradeStatusOk() ([]string, bool) {
if o == nil || IsNil(o.UpgradeStatus) {
return nil, false
}
return o.UpgradeStatus, true
}
// HasUpgradeStatus returns a boolean if a field has been set.
func (o *ResponsesEnums) HasUpgradeStatus() bool {
if o != nil && !IsNil(o.UpgradeStatus) {
return true
}
return false
}
// SetUpgradeStatus gets a reference to the given []string and assigns it to the UpgradeStatus field.
func (o *ResponsesEnums) SetUpgradeStatus(v []string) {
o.UpgradeStatus = v
}
// GetVoteOption returns the VoteOption field value if set, zero value otherwise.
func (o *ResponsesEnums) GetVoteOption() []string {
if o == nil || IsNil(o.VoteOption) {
var ret []string
return ret
}
return o.VoteOption
}
// GetVoteOptionOk returns a tuple with the VoteOption field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetVoteOptionOk() ([]string, bool) {
if o == nil || IsNil(o.VoteOption) {
return nil, false
}
return o.VoteOption, true
}
// HasVoteOption returns a boolean if a field has been set.
func (o *ResponsesEnums) HasVoteOption() bool {
if o != nil && !IsNil(o.VoteOption) {
return true
}
return false
}
// SetVoteOption gets a reference to the given []string and assigns it to the VoteOption field.
func (o *ResponsesEnums) SetVoteOption(v []string) {
o.VoteOption = v
}
// GetVoteType returns the VoteType field value if set, zero value otherwise.
func (o *ResponsesEnums) GetVoteType() []string {
if o == nil || IsNil(o.VoteType) {
var ret []string
return ret
}
return o.VoteType
}
// GetVoteTypeOk returns a tuple with the VoteType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResponsesEnums) GetVoteTypeOk() ([]string, bool) {
if o == nil || IsNil(o.VoteType) {
return nil, false
}
return o.VoteType, true
}
// HasVoteType returns a boolean if a field has been set.
func (o *ResponsesEnums) HasVoteType() bool {
if o != nil && !IsNil(o.VoteType) {
return true
}
return false
}
// SetVoteType gets a reference to the given []string and assigns it to the VoteType field.
func (o *ResponsesEnums) SetVoteType(v []string) {
o.VoteType = v
}
func (o ResponsesEnums) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ResponsesEnums) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Categories) {
toSerialize["categories"] = o.Categories
}
if !IsNil(o.CelestialsStatuses) {
toSerialize["celestials_statuses"] = o.CelestialsStatuses
}
if !IsNil(o.EventType) {
toSerialize["event_type"] = o.EventType
}
if !IsNil(o.HyperlaneTokenType) {
toSerialize["hyperlane_token_type"] = o.HyperlaneTokenType
}
if !IsNil(o.HyperlaneTransferType) {
toSerialize["hyperlane_transfer_type"] = o.HyperlaneTransferType
}
if !IsNil(o.IbcChannelStatus) {
toSerialize["ibc_channel_status"] = o.IbcChannelStatus
}
if !IsNil(o.MessageType) {
toSerialize["message_type"] = o.MessageType
}
if !IsNil(o.ProposalStatus) {
toSerialize["proposal_status"] = o.ProposalStatus
}
if !IsNil(o.ProposalType) {
toSerialize["proposal_type"] = o.ProposalType
}
if !IsNil(o.RollupType) {
toSerialize["rollup_type"] = o.RollupType
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if !IsNil(o.Tags) {
toSerialize["tags"] = o.Tags
}
if !IsNil(o.UpgradeStatus) {
toSerialize["upgrade_status"] = o.UpgradeStatus
}
if !IsNil(o.VoteOption) {
toSerialize["vote_option"] = o.VoteOption
}
if !IsNil(o.VoteType) {
toSerialize["vote_type"] = o.VoteType
}
return toSerialize, nil
}
type NullableResponsesEnums struct {
value *ResponsesEnums
isSet bool
}
func (v NullableResponsesEnums) Get() *ResponsesEnums {
return v.value
}
func (v *NullableResponsesEnums) Set(val *ResponsesEnums) {
v.value = val
v.isSet = true
}
func (v NullableResponsesEnums) IsSet() bool {
return v.isSet
}
func (v *NullableResponsesEnums) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableResponsesEnums(val *ResponsesEnums) *NullableResponsesEnums {
return &NullableResponsesEnums{value: val, isSet: true}
}
func (v NullableResponsesEnums) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableResponsesEnums) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}