-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_list_works_200_response_results_inner.go
1747 lines (1501 loc) · 57.6 KB
/
model_list_works_200_response_results_inner.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
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
OpenAlex API
An OpenAPI specification for the OpenAlex API
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// checks if the ListWorks200ResponseResultsInner type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ListWorks200ResponseResultsInner{}
// ListWorks200ResponseResultsInner struct for ListWorks200ResponseResultsInner
type ListWorks200ResponseResultsInner struct {
// The abstract of the work, as an inverted index. This format allows for efficient searching and analysis of the abstract text.
AbstractInvertedIndex map[string]interface{} `json:"abstract_inverted_index,omitempty"`
ApcList *ListWorks200ResponseResultsInnerApcList `json:"apc_list,omitempty"`
ApcPaid *ListWorks200ResponseResultsInnerApcPaid `json:"apc_paid,omitempty"`
// List of authorship information for the work, including authors and their institutions.
Authorships []ListWorks200ResponseResultsInnerAuthorshipsInner `json:"authorships,omitempty"`
BestOaLocation *ListWorks200ResponseResultsInnerBestOaLocation `json:"best_oa_location,omitempty"`
Biblio *ListWorks200ResponseResultsInnerBiblio `json:"biblio,omitempty"`
// A URL that displays a list of works that cite this work.
CitedByApiUrl *string `json:"cited_by_api_url,omitempty"`
// The number of citations to this work.
CitedByCount *int32 `json:"cited_by_count,omitempty"`
// List of concepts (research topics) associated with the work. These are algorithmically inferred based on the work's content.
Concepts []map[string]interface{} `json:"concepts,omitempty"`
// OpenAlex IDs of any authors for which authorships.is_corresponding is true.
CorrespondingAuthorIds []string `json:"corresponding_author_ids,omitempty"`
// OpenAlex IDs of any institutions found within an authorship for which authorships.is_corresponding is true.
CorrespondingInstitutionIds []string `json:"corresponding_institution_ids,omitempty"`
// Number of distinct country_codes among the authorships for this work.
CountriesDistinctCount *int32 `json:"countries_distinct_count,omitempty"`
// Cited_by_count for each of the last ten years, binned by year.
CountsByYear []ListWorks200ResponseResultsInnerCountsByYearInner `json:"counts_by_year,omitempty"`
// The date this Work object was created in the OpenAlex dataset.
CreatedDate *string `json:"created_date,omitempty"`
// The title of this work (same as title).
DisplayName *string `json:"display_name,omitempty"`
// The DOI for the work.
Doi *string `json:"doi,omitempty" validate:"regexp=^https:\\/\\/doi.org\\/10\\\\.\\\\d{4,9}\\/[-._;()\\/:A-Z0-9]+$"`
// If a work's full text is searchable in OpenAlex, this tells you how we got the text.
FulltextOrigin *string `json:"fulltext_origin,omitempty"`
// Information about grants that funded this work.
Grants []ListWorks200ResponseResultsInnerGrantsInner `json:"grants,omitempty"`
// Set to true if the work's full text is searchable in OpenAlex.
HasFulltext *bool `json:"has_fulltext,omitempty"`
// The OpenAlex ID for this work.
Id *string `json:"id,omitempty" validate:"regexp=^https:\\/\\/openalex.org\\/W\\\\d+$"`
Ids *ListWorks200ResponseResultsInnerIds `json:"ids,omitempty"`
// The sources this work is indexed in.
IndexedIn []string `json:"indexed_in,omitempty"`
// Number of distinct institutions among the authorships for this work.
InstitutionsDistinctCount *int32 `json:"institutions_distinct_count,omitempty"`
// True if we think this work is paratext.
IsParatext *bool `json:"is_paratext,omitempty"`
// True if we know this work has been retracted.
IsRetracted *bool `json:"is_retracted,omitempty"`
// A list of keywords associated with this work.
Keywords []ListKeywords200ResponseResultsInner `json:"keywords,omitempty"`
// The language of the work in ISO 639-1 format.
Language *string `json:"language,omitempty"`
// The license applied to this work at this host. Most toll-access works don't have an explicit license (they're under \"all rights reserved\" copyright), so this field generally has content only if is_oa is true.
License *string `json:"license,omitempty"`
// List of locations where the work can be found, including various versions and sources.
Locations []ListWorks200ResponseResultsInnerLocationsInner `json:"locations,omitempty"`
// Number of locations for this work.
LocationsCount *int32 `json:"locations_count,omitempty"`
// List of Medical Subject Headings (MeSH) associated with the work, if applicable. MeSH terms are used to index and categorize biomedical literature.
Mesh []ListWorks200ResponseResultsInnerMeshInner `json:"mesh,omitempty"`
// URL to retrieve n-grams for this work.
NgramsUrl *string `json:"ngrams_url,omitempty"`
OpenAccess *ListWorks200ResponseResultsInnerOpenAccess `json:"open_access,omitempty"`
PrimaryLocation *ListWorks200ResponseResultsInnerPrimaryLocation `json:"primary_location,omitempty"`
PrimaryTopic *ListWorks200ResponseResultsInnerPrimaryTopic `json:"primary_topic,omitempty"`
// The day when this work was published, formatted as an ISO 8601 date.
PublicationDate *string `json:"publication_date,omitempty" validate:"regexp=^\\\\d{4}-\\\\d{2}-\\\\d{2}$"`
// The year this work was published.
PublicationYear *int32 `json:"publication_year,omitempty"`
// OpenAlex IDs for works that this work cites.
ReferencedWorks []string `json:"referenced_works,omitempty"`
// OpenAlex IDs for works related to this work. These are computed algorithmically based on shared concepts.
RelatedWorks []string `json:"related_works,omitempty"`
// The UN Sustainable Development Goals relevant to this work.
SustainableDevelopmentGoals []ListWorks200ResponseResultsInnerSustainableDevelopmentGoalsInner `json:"sustainable_development_goals,omitempty"`
// The title of this work.
Title *string `json:"title,omitempty"`
// The top ranked Topics for this work.
Topics []ListAuthors200ResponseResultsInnerTopicsInner `json:"topics,omitempty"`
// The type of the work.
Type *string `json:"type,omitempty"`
// Legacy type information, using Crossref's \"type\" controlled vocabulary.
TypeCrossref *string `json:"type_crossref,omitempty"`
// The last time anything in this work object changed. Formatted as ISO 8601 extended format without time zone designator.
UpdatedDate *string `json:"updated_date,omitempty"`
}
// NewListWorks200ResponseResultsInner instantiates a new ListWorks200ResponseResultsInner 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 NewListWorks200ResponseResultsInner() *ListWorks200ResponseResultsInner {
this := ListWorks200ResponseResultsInner{}
return &this
}
// NewListWorks200ResponseResultsInnerWithDefaults instantiates a new ListWorks200ResponseResultsInner 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 NewListWorks200ResponseResultsInnerWithDefaults() *ListWorks200ResponseResultsInner {
this := ListWorks200ResponseResultsInner{}
return &this
}
// GetAbstractInvertedIndex returns the AbstractInvertedIndex field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetAbstractInvertedIndex() map[string]interface{} {
if o == nil || IsNil(o.AbstractInvertedIndex) {
var ret map[string]interface{}
return ret
}
return o.AbstractInvertedIndex
}
// GetAbstractInvertedIndexOk returns a tuple with the AbstractInvertedIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetAbstractInvertedIndexOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.AbstractInvertedIndex) {
return map[string]interface{}{}, false
}
return o.AbstractInvertedIndex, true
}
// HasAbstractInvertedIndex returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasAbstractInvertedIndex() bool {
if o != nil && !IsNil(o.AbstractInvertedIndex) {
return true
}
return false
}
// SetAbstractInvertedIndex gets a reference to the given map[string]interface{} and assigns it to the AbstractInvertedIndex field.
func (o *ListWorks200ResponseResultsInner) SetAbstractInvertedIndex(v map[string]interface{}) {
o.AbstractInvertedIndex = v
}
// GetApcList returns the ApcList field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetApcList() ListWorks200ResponseResultsInnerApcList {
if o == nil || IsNil(o.ApcList) {
var ret ListWorks200ResponseResultsInnerApcList
return ret
}
return *o.ApcList
}
// GetApcListOk returns a tuple with the ApcList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetApcListOk() (*ListWorks200ResponseResultsInnerApcList, bool) {
if o == nil || IsNil(o.ApcList) {
return nil, false
}
return o.ApcList, true
}
// HasApcList returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasApcList() bool {
if o != nil && !IsNil(o.ApcList) {
return true
}
return false
}
// SetApcList gets a reference to the given ListWorks200ResponseResultsInnerApcList and assigns it to the ApcList field.
func (o *ListWorks200ResponseResultsInner) SetApcList(v ListWorks200ResponseResultsInnerApcList) {
o.ApcList = &v
}
// GetApcPaid returns the ApcPaid field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetApcPaid() ListWorks200ResponseResultsInnerApcPaid {
if o == nil || IsNil(o.ApcPaid) {
var ret ListWorks200ResponseResultsInnerApcPaid
return ret
}
return *o.ApcPaid
}
// GetApcPaidOk returns a tuple with the ApcPaid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetApcPaidOk() (*ListWorks200ResponseResultsInnerApcPaid, bool) {
if o == nil || IsNil(o.ApcPaid) {
return nil, false
}
return o.ApcPaid, true
}
// HasApcPaid returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasApcPaid() bool {
if o != nil && !IsNil(o.ApcPaid) {
return true
}
return false
}
// SetApcPaid gets a reference to the given ListWorks200ResponseResultsInnerApcPaid and assigns it to the ApcPaid field.
func (o *ListWorks200ResponseResultsInner) SetApcPaid(v ListWorks200ResponseResultsInnerApcPaid) {
o.ApcPaid = &v
}
// GetAuthorships returns the Authorships field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetAuthorships() []ListWorks200ResponseResultsInnerAuthorshipsInner {
if o == nil || IsNil(o.Authorships) {
var ret []ListWorks200ResponseResultsInnerAuthorshipsInner
return ret
}
return o.Authorships
}
// GetAuthorshipsOk returns a tuple with the Authorships field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetAuthorshipsOk() ([]ListWorks200ResponseResultsInnerAuthorshipsInner, bool) {
if o == nil || IsNil(o.Authorships) {
return nil, false
}
return o.Authorships, true
}
// HasAuthorships returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasAuthorships() bool {
if o != nil && !IsNil(o.Authorships) {
return true
}
return false
}
// SetAuthorships gets a reference to the given []ListWorks200ResponseResultsInnerAuthorshipsInner and assigns it to the Authorships field.
func (o *ListWorks200ResponseResultsInner) SetAuthorships(v []ListWorks200ResponseResultsInnerAuthorshipsInner) {
o.Authorships = v
}
// GetBestOaLocation returns the BestOaLocation field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetBestOaLocation() ListWorks200ResponseResultsInnerBestOaLocation {
if o == nil || IsNil(o.BestOaLocation) {
var ret ListWorks200ResponseResultsInnerBestOaLocation
return ret
}
return *o.BestOaLocation
}
// GetBestOaLocationOk returns a tuple with the BestOaLocation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetBestOaLocationOk() (*ListWorks200ResponseResultsInnerBestOaLocation, bool) {
if o == nil || IsNil(o.BestOaLocation) {
return nil, false
}
return o.BestOaLocation, true
}
// HasBestOaLocation returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasBestOaLocation() bool {
if o != nil && !IsNil(o.BestOaLocation) {
return true
}
return false
}
// SetBestOaLocation gets a reference to the given ListWorks200ResponseResultsInnerBestOaLocation and assigns it to the BestOaLocation field.
func (o *ListWorks200ResponseResultsInner) SetBestOaLocation(v ListWorks200ResponseResultsInnerBestOaLocation) {
o.BestOaLocation = &v
}
// GetBiblio returns the Biblio field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetBiblio() ListWorks200ResponseResultsInnerBiblio {
if o == nil || IsNil(o.Biblio) {
var ret ListWorks200ResponseResultsInnerBiblio
return ret
}
return *o.Biblio
}
// GetBiblioOk returns a tuple with the Biblio field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetBiblioOk() (*ListWorks200ResponseResultsInnerBiblio, bool) {
if o == nil || IsNil(o.Biblio) {
return nil, false
}
return o.Biblio, true
}
// HasBiblio returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasBiblio() bool {
if o != nil && !IsNil(o.Biblio) {
return true
}
return false
}
// SetBiblio gets a reference to the given ListWorks200ResponseResultsInnerBiblio and assigns it to the Biblio field.
func (o *ListWorks200ResponseResultsInner) SetBiblio(v ListWorks200ResponseResultsInnerBiblio) {
o.Biblio = &v
}
// GetCitedByApiUrl returns the CitedByApiUrl field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetCitedByApiUrl() string {
if o == nil || IsNil(o.CitedByApiUrl) {
var ret string
return ret
}
return *o.CitedByApiUrl
}
// GetCitedByApiUrlOk returns a tuple with the CitedByApiUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetCitedByApiUrlOk() (*string, bool) {
if o == nil || IsNil(o.CitedByApiUrl) {
return nil, false
}
return o.CitedByApiUrl, true
}
// HasCitedByApiUrl returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasCitedByApiUrl() bool {
if o != nil && !IsNil(o.CitedByApiUrl) {
return true
}
return false
}
// SetCitedByApiUrl gets a reference to the given string and assigns it to the CitedByApiUrl field.
func (o *ListWorks200ResponseResultsInner) SetCitedByApiUrl(v string) {
o.CitedByApiUrl = &v
}
// GetCitedByCount returns the CitedByCount field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetCitedByCount() int32 {
if o == nil || IsNil(o.CitedByCount) {
var ret int32
return ret
}
return *o.CitedByCount
}
// GetCitedByCountOk returns a tuple with the CitedByCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetCitedByCountOk() (*int32, bool) {
if o == nil || IsNil(o.CitedByCount) {
return nil, false
}
return o.CitedByCount, true
}
// HasCitedByCount returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasCitedByCount() bool {
if o != nil && !IsNil(o.CitedByCount) {
return true
}
return false
}
// SetCitedByCount gets a reference to the given int32 and assigns it to the CitedByCount field.
func (o *ListWorks200ResponseResultsInner) SetCitedByCount(v int32) {
o.CitedByCount = &v
}
// GetConcepts returns the Concepts field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetConcepts() []map[string]interface{} {
if o == nil || IsNil(o.Concepts) {
var ret []map[string]interface{}
return ret
}
return o.Concepts
}
// GetConceptsOk returns a tuple with the Concepts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetConceptsOk() ([]map[string]interface{}, bool) {
if o == nil || IsNil(o.Concepts) {
return nil, false
}
return o.Concepts, true
}
// HasConcepts returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasConcepts() bool {
if o != nil && !IsNil(o.Concepts) {
return true
}
return false
}
// SetConcepts gets a reference to the given []map[string]interface{} and assigns it to the Concepts field.
func (o *ListWorks200ResponseResultsInner) SetConcepts(v []map[string]interface{}) {
o.Concepts = v
}
// GetCorrespondingAuthorIds returns the CorrespondingAuthorIds field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetCorrespondingAuthorIds() []string {
if o == nil || IsNil(o.CorrespondingAuthorIds) {
var ret []string
return ret
}
return o.CorrespondingAuthorIds
}
// GetCorrespondingAuthorIdsOk returns a tuple with the CorrespondingAuthorIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetCorrespondingAuthorIdsOk() ([]string, bool) {
if o == nil || IsNil(o.CorrespondingAuthorIds) {
return nil, false
}
return o.CorrespondingAuthorIds, true
}
// HasCorrespondingAuthorIds returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasCorrespondingAuthorIds() bool {
if o != nil && !IsNil(o.CorrespondingAuthorIds) {
return true
}
return false
}
// SetCorrespondingAuthorIds gets a reference to the given []string and assigns it to the CorrespondingAuthorIds field.
func (o *ListWorks200ResponseResultsInner) SetCorrespondingAuthorIds(v []string) {
o.CorrespondingAuthorIds = v
}
// GetCorrespondingInstitutionIds returns the CorrespondingInstitutionIds field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetCorrespondingInstitutionIds() []string {
if o == nil || IsNil(o.CorrespondingInstitutionIds) {
var ret []string
return ret
}
return o.CorrespondingInstitutionIds
}
// GetCorrespondingInstitutionIdsOk returns a tuple with the CorrespondingInstitutionIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetCorrespondingInstitutionIdsOk() ([]string, bool) {
if o == nil || IsNil(o.CorrespondingInstitutionIds) {
return nil, false
}
return o.CorrespondingInstitutionIds, true
}
// HasCorrespondingInstitutionIds returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasCorrespondingInstitutionIds() bool {
if o != nil && !IsNil(o.CorrespondingInstitutionIds) {
return true
}
return false
}
// SetCorrespondingInstitutionIds gets a reference to the given []string and assigns it to the CorrespondingInstitutionIds field.
func (o *ListWorks200ResponseResultsInner) SetCorrespondingInstitutionIds(v []string) {
o.CorrespondingInstitutionIds = v
}
// GetCountriesDistinctCount returns the CountriesDistinctCount field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetCountriesDistinctCount() int32 {
if o == nil || IsNil(o.CountriesDistinctCount) {
var ret int32
return ret
}
return *o.CountriesDistinctCount
}
// GetCountriesDistinctCountOk returns a tuple with the CountriesDistinctCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetCountriesDistinctCountOk() (*int32, bool) {
if o == nil || IsNil(o.CountriesDistinctCount) {
return nil, false
}
return o.CountriesDistinctCount, true
}
// HasCountriesDistinctCount returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasCountriesDistinctCount() bool {
if o != nil && !IsNil(o.CountriesDistinctCount) {
return true
}
return false
}
// SetCountriesDistinctCount gets a reference to the given int32 and assigns it to the CountriesDistinctCount field.
func (o *ListWorks200ResponseResultsInner) SetCountriesDistinctCount(v int32) {
o.CountriesDistinctCount = &v
}
// GetCountsByYear returns the CountsByYear field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetCountsByYear() []ListWorks200ResponseResultsInnerCountsByYearInner {
if o == nil || IsNil(o.CountsByYear) {
var ret []ListWorks200ResponseResultsInnerCountsByYearInner
return ret
}
return o.CountsByYear
}
// GetCountsByYearOk returns a tuple with the CountsByYear field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetCountsByYearOk() ([]ListWorks200ResponseResultsInnerCountsByYearInner, bool) {
if o == nil || IsNil(o.CountsByYear) {
return nil, false
}
return o.CountsByYear, true
}
// HasCountsByYear returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasCountsByYear() bool {
if o != nil && !IsNil(o.CountsByYear) {
return true
}
return false
}
// SetCountsByYear gets a reference to the given []ListWorks200ResponseResultsInnerCountsByYearInner and assigns it to the CountsByYear field.
func (o *ListWorks200ResponseResultsInner) SetCountsByYear(v []ListWorks200ResponseResultsInnerCountsByYearInner) {
o.CountsByYear = v
}
// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetCreatedDate() string {
if o == nil || IsNil(o.CreatedDate) {
var ret string
return ret
}
return *o.CreatedDate
}
// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetCreatedDateOk() (*string, bool) {
if o == nil || IsNil(o.CreatedDate) {
return nil, false
}
return o.CreatedDate, true
}
// HasCreatedDate returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasCreatedDate() bool {
if o != nil && !IsNil(o.CreatedDate) {
return true
}
return false
}
// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field.
func (o *ListWorks200ResponseResultsInner) SetCreatedDate(v string) {
o.CreatedDate = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetDisplayName() string {
if o == nil || IsNil(o.DisplayName) {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetDisplayNameOk() (*string, bool) {
if o == nil || IsNil(o.DisplayName) {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasDisplayName() bool {
if o != nil && !IsNil(o.DisplayName) {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *ListWorks200ResponseResultsInner) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetDoi returns the Doi field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetDoi() string {
if o == nil || IsNil(o.Doi) {
var ret string
return ret
}
return *o.Doi
}
// GetDoiOk returns a tuple with the Doi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetDoiOk() (*string, bool) {
if o == nil || IsNil(o.Doi) {
return nil, false
}
return o.Doi, true
}
// HasDoi returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasDoi() bool {
if o != nil && !IsNil(o.Doi) {
return true
}
return false
}
// SetDoi gets a reference to the given string and assigns it to the Doi field.
func (o *ListWorks200ResponseResultsInner) SetDoi(v string) {
o.Doi = &v
}
// GetFulltextOrigin returns the FulltextOrigin field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetFulltextOrigin() string {
if o == nil || IsNil(o.FulltextOrigin) {
var ret string
return ret
}
return *o.FulltextOrigin
}
// GetFulltextOriginOk returns a tuple with the FulltextOrigin field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetFulltextOriginOk() (*string, bool) {
if o == nil || IsNil(o.FulltextOrigin) {
return nil, false
}
return o.FulltextOrigin, true
}
// HasFulltextOrigin returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasFulltextOrigin() bool {
if o != nil && !IsNil(o.FulltextOrigin) {
return true
}
return false
}
// SetFulltextOrigin gets a reference to the given string and assigns it to the FulltextOrigin field.
func (o *ListWorks200ResponseResultsInner) SetFulltextOrigin(v string) {
o.FulltextOrigin = &v
}
// GetGrants returns the Grants field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetGrants() []ListWorks200ResponseResultsInnerGrantsInner {
if o == nil || IsNil(o.Grants) {
var ret []ListWorks200ResponseResultsInnerGrantsInner
return ret
}
return o.Grants
}
// GetGrantsOk returns a tuple with the Grants field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetGrantsOk() ([]ListWorks200ResponseResultsInnerGrantsInner, bool) {
if o == nil || IsNil(o.Grants) {
return nil, false
}
return o.Grants, true
}
// HasGrants returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasGrants() bool {
if o != nil && !IsNil(o.Grants) {
return true
}
return false
}
// SetGrants gets a reference to the given []ListWorks200ResponseResultsInnerGrantsInner and assigns it to the Grants field.
func (o *ListWorks200ResponseResultsInner) SetGrants(v []ListWorks200ResponseResultsInnerGrantsInner) {
o.Grants = v
}
// GetHasFulltext returns the HasFulltext field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetHasFulltext() bool {
if o == nil || IsNil(o.HasFulltext) {
var ret bool
return ret
}
return *o.HasFulltext
}
// GetHasFulltextOk returns a tuple with the HasFulltext field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetHasFulltextOk() (*bool, bool) {
if o == nil || IsNil(o.HasFulltext) {
return nil, false
}
return o.HasFulltext, true
}
// HasHasFulltext returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasHasFulltext() bool {
if o != nil && !IsNil(o.HasFulltext) {
return true
}
return false
}
// SetHasFulltext gets a reference to the given bool and assigns it to the HasFulltext field.
func (o *ListWorks200ResponseResultsInner) SetHasFulltext(v bool) {
o.HasFulltext = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetIdOk() (*string, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *ListWorks200ResponseResultsInner) SetId(v string) {
o.Id = &v
}
// GetIds returns the Ids field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetIds() ListWorks200ResponseResultsInnerIds {
if o == nil || IsNil(o.Ids) {
var ret ListWorks200ResponseResultsInnerIds
return ret
}
return *o.Ids
}
// GetIdsOk returns a tuple with the Ids field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetIdsOk() (*ListWorks200ResponseResultsInnerIds, bool) {
if o == nil || IsNil(o.Ids) {
return nil, false
}
return o.Ids, true
}
// HasIds returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasIds() bool {
if o != nil && !IsNil(o.Ids) {
return true
}
return false
}
// SetIds gets a reference to the given ListWorks200ResponseResultsInnerIds and assigns it to the Ids field.
func (o *ListWorks200ResponseResultsInner) SetIds(v ListWorks200ResponseResultsInnerIds) {
o.Ids = &v
}
// GetIndexedIn returns the IndexedIn field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetIndexedIn() []string {
if o == nil || IsNil(o.IndexedIn) {
var ret []string
return ret
}
return o.IndexedIn
}
// GetIndexedInOk returns a tuple with the IndexedIn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetIndexedInOk() ([]string, bool) {
if o == nil || IsNil(o.IndexedIn) {
return nil, false
}
return o.IndexedIn, true
}
// HasIndexedIn returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasIndexedIn() bool {
if o != nil && !IsNil(o.IndexedIn) {
return true
}
return false
}
// SetIndexedIn gets a reference to the given []string and assigns it to the IndexedIn field.
func (o *ListWorks200ResponseResultsInner) SetIndexedIn(v []string) {
o.IndexedIn = v
}
// GetInstitutionsDistinctCount returns the InstitutionsDistinctCount field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetInstitutionsDistinctCount() int32 {
if o == nil || IsNil(o.InstitutionsDistinctCount) {
var ret int32
return ret
}
return *o.InstitutionsDistinctCount
}
// GetInstitutionsDistinctCountOk returns a tuple with the InstitutionsDistinctCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetInstitutionsDistinctCountOk() (*int32, bool) {
if o == nil || IsNil(o.InstitutionsDistinctCount) {
return nil, false
}
return o.InstitutionsDistinctCount, true
}
// HasInstitutionsDistinctCount returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasInstitutionsDistinctCount() bool {
if o != nil && !IsNil(o.InstitutionsDistinctCount) {
return true
}
return false
}
// SetInstitutionsDistinctCount gets a reference to the given int32 and assigns it to the InstitutionsDistinctCount field.
func (o *ListWorks200ResponseResultsInner) SetInstitutionsDistinctCount(v int32) {
o.InstitutionsDistinctCount = &v
}
// GetIsParatext returns the IsParatext field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetIsParatext() bool {
if o == nil || IsNil(o.IsParatext) {
var ret bool
return ret
}
return *o.IsParatext
}
// GetIsParatextOk returns a tuple with the IsParatext field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetIsParatextOk() (*bool, bool) {
if o == nil || IsNil(o.IsParatext) {
return nil, false
}
return o.IsParatext, true
}
// HasIsParatext returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasIsParatext() bool {
if o != nil && !IsNil(o.IsParatext) {
return true
}
return false
}
// SetIsParatext gets a reference to the given bool and assigns it to the IsParatext field.
func (o *ListWorks200ResponseResultsInner) SetIsParatext(v bool) {
o.IsParatext = &v
}
// GetIsRetracted returns the IsRetracted field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetIsRetracted() bool {
if o == nil || IsNil(o.IsRetracted) {
var ret bool
return ret
}
return *o.IsRetracted
}
// GetIsRetractedOk returns a tuple with the IsRetracted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetIsRetractedOk() (*bool, bool) {
if o == nil || IsNil(o.IsRetracted) {
return nil, false
}
return o.IsRetracted, true
}
// HasIsRetracted returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasIsRetracted() bool {
if o != nil && !IsNil(o.IsRetracted) {
return true
}
return false
}
// SetIsRetracted gets a reference to the given bool and assigns it to the IsRetracted field.
func (o *ListWorks200ResponseResultsInner) SetIsRetracted(v bool) {
o.IsRetracted = &v
}
// GetKeywords returns the Keywords field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetKeywords() []ListKeywords200ResponseResultsInner {
if o == nil || IsNil(o.Keywords) {
var ret []ListKeywords200ResponseResultsInner
return ret
}
return o.Keywords
}
// GetKeywordsOk returns a tuple with the Keywords field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetKeywordsOk() ([]ListKeywords200ResponseResultsInner, bool) {
if o == nil || IsNil(o.Keywords) {
return nil, false
}
return o.Keywords, true
}
// HasKeywords returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasKeywords() bool {
if o != nil && !IsNil(o.Keywords) {
return true
}
return false
}
// SetKeywords gets a reference to the given []ListKeywords200ResponseResultsInner and assigns it to the Keywords field.
func (o *ListWorks200ResponseResultsInner) SetKeywords(v []ListKeywords200ResponseResultsInner) {
o.Keywords = v
}
// GetLanguage returns the Language field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetLanguage() string {
if o == nil || IsNil(o.Language) {
var ret string
return ret
}
return *o.Language
}
// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetLanguageOk() (*string, bool) {
if o == nil || IsNil(o.Language) {
return nil, false
}
return o.Language, true
}
// HasLanguage returns a boolean if a field has been set.
func (o *ListWorks200ResponseResultsInner) HasLanguage() bool {
if o != nil && !IsNil(o.Language) {
return true
}
return false
}
// SetLanguage gets a reference to the given string and assigns it to the Language field.
func (o *ListWorks200ResponseResultsInner) SetLanguage(v string) {
o.Language = &v
}
// GetLicense returns the License field value if set, zero value otherwise.
func (o *ListWorks200ResponseResultsInner) GetLicense() string {
if o == nil || IsNil(o.License) {
var ret string
return ret
}
return *o.License
}
// GetLicenseOk returns a tuple with the License field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListWorks200ResponseResultsInner) GetLicenseOk() (*string, bool) {
if o == nil || IsNil(o.License) {
return nil, false