-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodel_terminology.go
645 lines (549 loc) · 16.8 KB
/
model_terminology.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
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
630
631
632
633
634
635
636
637
638
639
640
641
642
643
/*
NCI EVS Rest API
Endpoints to support searching, metadata, and content retrieval for EVS terminologies. To learn more about how to interact with this api, see the <a href=\"https://github.com/NCIEVS/evsrestapi-client-SDK\">Github evsrestapi-client-SDK project.</a>
API version: 1.7.2.RELEASE
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package evs
import (
"encoding/json"
)
// checks if the Terminology type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Terminology{}
// Terminology Represents a terminology loaded into the API
type Terminology struct {
// URI for this element in an rdf-based source file
Uri *string `json:"uri,omitempty"`
// Used to indicate the total amount of data in cases where a limit is being applied
Ct *int32 `json:"ct,omitempty"`
// Terminology abbreviation, e.g. 'ncit'
Terminology *string `json:"terminology,omitempty"`
// Terminology version, e.g. '23.11d'
Version *string `json:"version,omitempty"`
// Terminology publication/release date
Date *string `json:"date,omitempty"`
// Terminology name
Name *string `json:"name,omitempty"`
// Terminology description
Description *string `json:"description,omitempty"`
// Name of the RDF triplestore graph if this data is backed by a triplestore
Graph *string `json:"graph,omitempty"`
// Underscore-separated value for terminology and version used by the API to precisely pinpoint a particular version, e.g. 'ncit_23.11d'
TerminologyVersion *string `json:"terminologyVersion,omitempty"`
// Indicates whether this is the latest version
Latest *bool `json:"latest,omitempty"`
// Additional terminology tags
Tags *map[string]string `json:"tags,omitempty"`
// for internal use
IndexName *string `json:"indexName,omitempty"`
// for internal use
ObjectIndexName *string `json:"objectIndexName,omitempty"`
Metadata *TerminologyMetadata `json:"metadata,omitempty"`
// Indicates whether the terminology can be used with SPARQL
SparqlFlag *bool `json:"sparqlFlag,omitempty"`
}
// NewTerminology instantiates a new Terminology 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 NewTerminology() *Terminology {
this := Terminology{}
return &this
}
// NewTerminologyWithDefaults instantiates a new Terminology 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 NewTerminologyWithDefaults() *Terminology {
this := Terminology{}
return &this
}
// GetUri returns the Uri field value if set, zero value otherwise.
func (o *Terminology) GetUri() string {
if o == nil || IsNil(o.Uri) {
var ret string
return ret
}
return *o.Uri
}
// GetUriOk returns a tuple with the Uri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetUriOk() (*string, bool) {
if o == nil || IsNil(o.Uri) {
return nil, false
}
return o.Uri, true
}
// HasUri returns a boolean if a field has been set.
func (o *Terminology) HasUri() bool {
if o != nil && !IsNil(o.Uri) {
return true
}
return false
}
// SetUri gets a reference to the given string and assigns it to the Uri field.
func (o *Terminology) SetUri(v string) {
o.Uri = &v
}
// GetCt returns the Ct field value if set, zero value otherwise.
func (o *Terminology) GetCt() int32 {
if o == nil || IsNil(o.Ct) {
var ret int32
return ret
}
return *o.Ct
}
// GetCtOk returns a tuple with the Ct field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetCtOk() (*int32, bool) {
if o == nil || IsNil(o.Ct) {
return nil, false
}
return o.Ct, true
}
// HasCt returns a boolean if a field has been set.
func (o *Terminology) HasCt() bool {
if o != nil && !IsNil(o.Ct) {
return true
}
return false
}
// SetCt gets a reference to the given int32 and assigns it to the Ct field.
func (o *Terminology) SetCt(v int32) {
o.Ct = &v
}
// GetTerminology returns the Terminology field value if set, zero value otherwise.
func (o *Terminology) GetTerminology() string {
if o == nil || IsNil(o.Terminology) {
var ret string
return ret
}
return *o.Terminology
}
// GetTerminologyOk returns a tuple with the Terminology field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetTerminologyOk() (*string, bool) {
if o == nil || IsNil(o.Terminology) {
return nil, false
}
return o.Terminology, true
}
// HasTerminology returns a boolean if a field has been set.
func (o *Terminology) HasTerminology() bool {
if o != nil && !IsNil(o.Terminology) {
return true
}
return false
}
// SetTerminology gets a reference to the given string and assigns it to the Terminology field.
func (o *Terminology) SetTerminology(v string) {
o.Terminology = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *Terminology) GetVersion() string {
if o == nil || IsNil(o.Version) {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetVersionOk() (*string, bool) {
if o == nil || IsNil(o.Version) {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *Terminology) HasVersion() bool {
if o != nil && !IsNil(o.Version) {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *Terminology) SetVersion(v string) {
o.Version = &v
}
// GetDate returns the Date field value if set, zero value otherwise.
func (o *Terminology) GetDate() string {
if o == nil || IsNil(o.Date) {
var ret string
return ret
}
return *o.Date
}
// GetDateOk returns a tuple with the Date field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetDateOk() (*string, bool) {
if o == nil || IsNil(o.Date) {
return nil, false
}
return o.Date, true
}
// HasDate returns a boolean if a field has been set.
func (o *Terminology) HasDate() bool {
if o != nil && !IsNil(o.Date) {
return true
}
return false
}
// SetDate gets a reference to the given string and assigns it to the Date field.
func (o *Terminology) SetDate(v string) {
o.Date = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *Terminology) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *Terminology) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *Terminology) SetName(v string) {
o.Name = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *Terminology) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *Terminology) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *Terminology) SetDescription(v string) {
o.Description = &v
}
// GetGraph returns the Graph field value if set, zero value otherwise.
func (o *Terminology) GetGraph() string {
if o == nil || IsNil(o.Graph) {
var ret string
return ret
}
return *o.Graph
}
// GetGraphOk returns a tuple with the Graph field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetGraphOk() (*string, bool) {
if o == nil || IsNil(o.Graph) {
return nil, false
}
return o.Graph, true
}
// HasGraph returns a boolean if a field has been set.
func (o *Terminology) HasGraph() bool {
if o != nil && !IsNil(o.Graph) {
return true
}
return false
}
// SetGraph gets a reference to the given string and assigns it to the Graph field.
func (o *Terminology) SetGraph(v string) {
o.Graph = &v
}
// GetTerminologyVersion returns the TerminologyVersion field value if set, zero value otherwise.
func (o *Terminology) GetTerminologyVersion() string {
if o == nil || IsNil(o.TerminologyVersion) {
var ret string
return ret
}
return *o.TerminologyVersion
}
// GetTerminologyVersionOk returns a tuple with the TerminologyVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetTerminologyVersionOk() (*string, bool) {
if o == nil || IsNil(o.TerminologyVersion) {
return nil, false
}
return o.TerminologyVersion, true
}
// HasTerminologyVersion returns a boolean if a field has been set.
func (o *Terminology) HasTerminologyVersion() bool {
if o != nil && !IsNil(o.TerminologyVersion) {
return true
}
return false
}
// SetTerminologyVersion gets a reference to the given string and assigns it to the TerminologyVersion field.
func (o *Terminology) SetTerminologyVersion(v string) {
o.TerminologyVersion = &v
}
// GetLatest returns the Latest field value if set, zero value otherwise.
func (o *Terminology) GetLatest() bool {
if o == nil || IsNil(o.Latest) {
var ret bool
return ret
}
return *o.Latest
}
// GetLatestOk returns a tuple with the Latest field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetLatestOk() (*bool, bool) {
if o == nil || IsNil(o.Latest) {
return nil, false
}
return o.Latest, true
}
// HasLatest returns a boolean if a field has been set.
func (o *Terminology) HasLatest() bool {
if o != nil && !IsNil(o.Latest) {
return true
}
return false
}
// SetLatest gets a reference to the given bool and assigns it to the Latest field.
func (o *Terminology) SetLatest(v bool) {
o.Latest = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *Terminology) GetTags() map[string]string {
if o == nil || IsNil(o.Tags) {
var ret map[string]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 *Terminology) GetTagsOk() (*map[string]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 *Terminology) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
return false
}
// SetTags gets a reference to the given map[string]string and assigns it to the Tags field.
func (o *Terminology) SetTags(v map[string]string) {
o.Tags = &v
}
// GetIndexName returns the IndexName field value if set, zero value otherwise.
func (o *Terminology) GetIndexName() string {
if o == nil || IsNil(o.IndexName) {
var ret string
return ret
}
return *o.IndexName
}
// GetIndexNameOk returns a tuple with the IndexName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetIndexNameOk() (*string, bool) {
if o == nil || IsNil(o.IndexName) {
return nil, false
}
return o.IndexName, true
}
// HasIndexName returns a boolean if a field has been set.
func (o *Terminology) HasIndexName() bool {
if o != nil && !IsNil(o.IndexName) {
return true
}
return false
}
// SetIndexName gets a reference to the given string and assigns it to the IndexName field.
func (o *Terminology) SetIndexName(v string) {
o.IndexName = &v
}
// GetObjectIndexName returns the ObjectIndexName field value if set, zero value otherwise.
func (o *Terminology) GetObjectIndexName() string {
if o == nil || IsNil(o.ObjectIndexName) {
var ret string
return ret
}
return *o.ObjectIndexName
}
// GetObjectIndexNameOk returns a tuple with the ObjectIndexName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetObjectIndexNameOk() (*string, bool) {
if o == nil || IsNil(o.ObjectIndexName) {
return nil, false
}
return o.ObjectIndexName, true
}
// HasObjectIndexName returns a boolean if a field has been set.
func (o *Terminology) HasObjectIndexName() bool {
if o != nil && !IsNil(o.ObjectIndexName) {
return true
}
return false
}
// SetObjectIndexName gets a reference to the given string and assigns it to the ObjectIndexName field.
func (o *Terminology) SetObjectIndexName(v string) {
o.ObjectIndexName = &v
}
// GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *Terminology) GetMetadata() TerminologyMetadata {
if o == nil || IsNil(o.Metadata) {
var ret TerminologyMetadata
return ret
}
return *o.Metadata
}
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetMetadataOk() (*TerminologyMetadata, bool) {
if o == nil || IsNil(o.Metadata) {
return nil, false
}
return o.Metadata, true
}
// HasMetadata returns a boolean if a field has been set.
func (o *Terminology) HasMetadata() bool {
if o != nil && !IsNil(o.Metadata) {
return true
}
return false
}
// SetMetadata gets a reference to the given TerminologyMetadata and assigns it to the Metadata field.
func (o *Terminology) SetMetadata(v TerminologyMetadata) {
o.Metadata = &v
}
// GetSparqlFlag returns the SparqlFlag field value if set, zero value otherwise.
func (o *Terminology) GetSparqlFlag() bool {
if o == nil || IsNil(o.SparqlFlag) {
var ret bool
return ret
}
return *o.SparqlFlag
}
// GetSparqlFlagOk returns a tuple with the SparqlFlag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Terminology) GetSparqlFlagOk() (*bool, bool) {
if o == nil || IsNil(o.SparqlFlag) {
return nil, false
}
return o.SparqlFlag, true
}
// HasSparqlFlag returns a boolean if a field has been set.
func (o *Terminology) HasSparqlFlag() bool {
if o != nil && !IsNil(o.SparqlFlag) {
return true
}
return false
}
// SetSparqlFlag gets a reference to the given bool and assigns it to the SparqlFlag field.
func (o *Terminology) SetSparqlFlag(v bool) {
o.SparqlFlag = &v
}
func (o Terminology) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o Terminology) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Uri) {
toSerialize["uri"] = o.Uri
}
if !IsNil(o.Ct) {
toSerialize["ct"] = o.Ct
}
if !IsNil(o.Terminology) {
toSerialize["terminology"] = o.Terminology
}
if !IsNil(o.Version) {
toSerialize["version"] = o.Version
}
if !IsNil(o.Date) {
toSerialize["date"] = o.Date
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
if !IsNil(o.Graph) {
toSerialize["graph"] = o.Graph
}
if !IsNil(o.TerminologyVersion) {
toSerialize["terminologyVersion"] = o.TerminologyVersion
}
if !IsNil(o.Latest) {
toSerialize["latest"] = o.Latest
}
if !IsNil(o.Tags) {
toSerialize["tags"] = o.Tags
}
if !IsNil(o.IndexName) {
toSerialize["indexName"] = o.IndexName
}
if !IsNil(o.ObjectIndexName) {
toSerialize["objectIndexName"] = o.ObjectIndexName
}
if !IsNil(o.Metadata) {
toSerialize["metadata"] = o.Metadata
}
if !IsNil(o.SparqlFlag) {
toSerialize["sparqlFlag"] = o.SparqlFlag
}
return toSerialize, nil
}
type NullableTerminology struct {
value *Terminology
isSet bool
}
func (v NullableTerminology) Get() *Terminology {
return v.value
}
func (v *NullableTerminology) Set(val *Terminology) {
v.value = val
v.isSet = true
}
func (v NullableTerminology) IsSet() bool {
return v.isSet
}
func (v *NullableTerminology) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTerminology(val *Terminology) *NullableTerminology {
return &NullableTerminology{value: val, isSet: true}
}
func (v NullableTerminology) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTerminology) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}