forked from distribution/distribution
/
books-gen.go
11363 lines (10124 loc) · 369 KB
/
books-gen.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
// Package books provides access to the Books API.
//
// See https://developers.google.com/books/docs/v1/getting_started
//
// Usage example:
//
// import "google.golang.org/api/books/v1"
// ...
// booksService, err := books.New(oauthHttpClient)
package books // import "google.golang.org/api/books/v1"
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"golang.org/x/net/context"
"golang.org/x/net/context/ctxhttp"
"google.golang.org/api/googleapi"
"google.golang.org/api/internal"
"io"
"net/http"
"net/url"
"strconv"
"strings"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = internal.MarshalJSON
var _ = context.Canceled
var _ = ctxhttp.Do
const apiId = "books:v1"
const apiName = "books"
const apiVersion = "v1"
const basePath = "https://www.googleapis.com/books/v1/"
// OAuth2 scopes used by this API.
const (
// Manage your books
BooksScope = "https://www.googleapis.com/auth/books"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Bookshelves = NewBookshelvesService(s)
s.Cloudloading = NewCloudloadingService(s)
s.Dictionary = NewDictionaryService(s)
s.Layers = NewLayersService(s)
s.Myconfig = NewMyconfigService(s)
s.Mylibrary = NewMylibraryService(s)
s.Notification = NewNotificationService(s)
s.Onboarding = NewOnboardingService(s)
s.Personalizedstream = NewPersonalizedstreamService(s)
s.Promooffer = NewPromoofferService(s)
s.Volumes = NewVolumesService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Bookshelves *BookshelvesService
Cloudloading *CloudloadingService
Dictionary *DictionaryService
Layers *LayersService
Myconfig *MyconfigService
Mylibrary *MylibraryService
Notification *NotificationService
Onboarding *OnboardingService
Personalizedstream *PersonalizedstreamService
Promooffer *PromoofferService
Volumes *VolumesService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewBookshelvesService(s *Service) *BookshelvesService {
rs := &BookshelvesService{s: s}
rs.Volumes = NewBookshelvesVolumesService(s)
return rs
}
type BookshelvesService struct {
s *Service
Volumes *BookshelvesVolumesService
}
func NewBookshelvesVolumesService(s *Service) *BookshelvesVolumesService {
rs := &BookshelvesVolumesService{s: s}
return rs
}
type BookshelvesVolumesService struct {
s *Service
}
func NewCloudloadingService(s *Service) *CloudloadingService {
rs := &CloudloadingService{s: s}
return rs
}
type CloudloadingService struct {
s *Service
}
func NewDictionaryService(s *Service) *DictionaryService {
rs := &DictionaryService{s: s}
return rs
}
type DictionaryService struct {
s *Service
}
func NewLayersService(s *Service) *LayersService {
rs := &LayersService{s: s}
rs.AnnotationData = NewLayersAnnotationDataService(s)
rs.VolumeAnnotations = NewLayersVolumeAnnotationsService(s)
return rs
}
type LayersService struct {
s *Service
AnnotationData *LayersAnnotationDataService
VolumeAnnotations *LayersVolumeAnnotationsService
}
func NewLayersAnnotationDataService(s *Service) *LayersAnnotationDataService {
rs := &LayersAnnotationDataService{s: s}
return rs
}
type LayersAnnotationDataService struct {
s *Service
}
func NewLayersVolumeAnnotationsService(s *Service) *LayersVolumeAnnotationsService {
rs := &LayersVolumeAnnotationsService{s: s}
return rs
}
type LayersVolumeAnnotationsService struct {
s *Service
}
func NewMyconfigService(s *Service) *MyconfigService {
rs := &MyconfigService{s: s}
return rs
}
type MyconfigService struct {
s *Service
}
func NewMylibraryService(s *Service) *MylibraryService {
rs := &MylibraryService{s: s}
rs.Annotations = NewMylibraryAnnotationsService(s)
rs.Bookshelves = NewMylibraryBookshelvesService(s)
rs.Readingpositions = NewMylibraryReadingpositionsService(s)
return rs
}
type MylibraryService struct {
s *Service
Annotations *MylibraryAnnotationsService
Bookshelves *MylibraryBookshelvesService
Readingpositions *MylibraryReadingpositionsService
}
func NewMylibraryAnnotationsService(s *Service) *MylibraryAnnotationsService {
rs := &MylibraryAnnotationsService{s: s}
return rs
}
type MylibraryAnnotationsService struct {
s *Service
}
func NewMylibraryBookshelvesService(s *Service) *MylibraryBookshelvesService {
rs := &MylibraryBookshelvesService{s: s}
rs.Volumes = NewMylibraryBookshelvesVolumesService(s)
return rs
}
type MylibraryBookshelvesService struct {
s *Service
Volumes *MylibraryBookshelvesVolumesService
}
func NewMylibraryBookshelvesVolumesService(s *Service) *MylibraryBookshelvesVolumesService {
rs := &MylibraryBookshelvesVolumesService{s: s}
return rs
}
type MylibraryBookshelvesVolumesService struct {
s *Service
}
func NewMylibraryReadingpositionsService(s *Service) *MylibraryReadingpositionsService {
rs := &MylibraryReadingpositionsService{s: s}
return rs
}
type MylibraryReadingpositionsService struct {
s *Service
}
func NewNotificationService(s *Service) *NotificationService {
rs := &NotificationService{s: s}
return rs
}
type NotificationService struct {
s *Service
}
func NewOnboardingService(s *Service) *OnboardingService {
rs := &OnboardingService{s: s}
return rs
}
type OnboardingService struct {
s *Service
}
func NewPersonalizedstreamService(s *Service) *PersonalizedstreamService {
rs := &PersonalizedstreamService{s: s}
return rs
}
type PersonalizedstreamService struct {
s *Service
}
func NewPromoofferService(s *Service) *PromoofferService {
rs := &PromoofferService{s: s}
return rs
}
type PromoofferService struct {
s *Service
}
func NewVolumesService(s *Service) *VolumesService {
rs := &VolumesService{s: s}
rs.Associated = NewVolumesAssociatedService(s)
rs.Mybooks = NewVolumesMybooksService(s)
rs.Recommended = NewVolumesRecommendedService(s)
rs.Useruploaded = NewVolumesUseruploadedService(s)
return rs
}
type VolumesService struct {
s *Service
Associated *VolumesAssociatedService
Mybooks *VolumesMybooksService
Recommended *VolumesRecommendedService
Useruploaded *VolumesUseruploadedService
}
func NewVolumesAssociatedService(s *Service) *VolumesAssociatedService {
rs := &VolumesAssociatedService{s: s}
return rs
}
type VolumesAssociatedService struct {
s *Service
}
func NewVolumesMybooksService(s *Service) *VolumesMybooksService {
rs := &VolumesMybooksService{s: s}
return rs
}
type VolumesMybooksService struct {
s *Service
}
func NewVolumesRecommendedService(s *Service) *VolumesRecommendedService {
rs := &VolumesRecommendedService{s: s}
return rs
}
type VolumesRecommendedService struct {
s *Service
}
func NewVolumesUseruploadedService(s *Service) *VolumesUseruploadedService {
rs := &VolumesUseruploadedService{s: s}
return rs
}
type VolumesUseruploadedService struct {
s *Service
}
type Annotation struct {
// AfterSelectedText: Anchor text after excerpt. For requests, if the
// user bookmarked a screen that has no flowing text on it, then this
// field should be empty.
AfterSelectedText string `json:"afterSelectedText,omitempty"`
// BeforeSelectedText: Anchor text before excerpt. For requests, if the
// user bookmarked a screen that has no flowing text on it, then this
// field should be empty.
BeforeSelectedText string `json:"beforeSelectedText,omitempty"`
// ClientVersionRanges: Selection ranges sent from the client.
ClientVersionRanges *AnnotationClientVersionRanges `json:"clientVersionRanges,omitempty"`
// Created: Timestamp for the created time of this annotation.
Created string `json:"created,omitempty"`
// CurrentVersionRanges: Selection ranges for the most recent content
// version.
CurrentVersionRanges *AnnotationCurrentVersionRanges `json:"currentVersionRanges,omitempty"`
// Data: User-created data for this annotation.
Data string `json:"data,omitempty"`
// Deleted: Indicates that this annotation is deleted.
Deleted bool `json:"deleted,omitempty"`
// HighlightStyle: The highlight style for this annotation.
HighlightStyle string `json:"highlightStyle,omitempty"`
// Id: Id of this annotation, in the form of a GUID.
Id string `json:"id,omitempty"`
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// LayerId: The layer this annotation is for.
LayerId string `json:"layerId,omitempty"`
LayerSummary *AnnotationLayerSummary `json:"layerSummary,omitempty"`
// PageIds: Pages that this annotation spans.
PageIds []string `json:"pageIds,omitempty"`
// SelectedText: Excerpt from the volume.
SelectedText string `json:"selectedText,omitempty"`
// SelfLink: URL to this resource.
SelfLink string `json:"selfLink,omitempty"`
// Updated: Timestamp for the last time this annotation was modified.
Updated string `json:"updated,omitempty"`
// VolumeId: The volume that this annotation belongs to.
VolumeId string `json:"volumeId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AfterSelectedText")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Annotation) MarshalJSON() ([]byte, error) {
type noMethod Annotation
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// AnnotationClientVersionRanges: Selection ranges sent from the client.
type AnnotationClientVersionRanges struct {
// CfiRange: Range in CFI format for this annotation sent by client.
CfiRange *BooksAnnotationsRange `json:"cfiRange,omitempty"`
// ContentVersion: Content version the client sent in.
ContentVersion string `json:"contentVersion,omitempty"`
// GbImageRange: Range in GB image format for this annotation sent by
// client.
GbImageRange *BooksAnnotationsRange `json:"gbImageRange,omitempty"`
// GbTextRange: Range in GB text format for this annotation sent by
// client.
GbTextRange *BooksAnnotationsRange `json:"gbTextRange,omitempty"`
// ImageCfiRange: Range in image CFI format for this annotation sent by
// client.
ImageCfiRange *BooksAnnotationsRange `json:"imageCfiRange,omitempty"`
// ForceSendFields is a list of field names (e.g. "CfiRange") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *AnnotationClientVersionRanges) MarshalJSON() ([]byte, error) {
type noMethod AnnotationClientVersionRanges
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// AnnotationCurrentVersionRanges: Selection ranges for the most recent
// content version.
type AnnotationCurrentVersionRanges struct {
// CfiRange: Range in CFI format for this annotation for version above.
CfiRange *BooksAnnotationsRange `json:"cfiRange,omitempty"`
// ContentVersion: Content version applicable to ranges below.
ContentVersion string `json:"contentVersion,omitempty"`
// GbImageRange: Range in GB image format for this annotation for
// version above.
GbImageRange *BooksAnnotationsRange `json:"gbImageRange,omitempty"`
// GbTextRange: Range in GB text format for this annotation for version
// above.
GbTextRange *BooksAnnotationsRange `json:"gbTextRange,omitempty"`
// ImageCfiRange: Range in image CFI format for this annotation for
// version above.
ImageCfiRange *BooksAnnotationsRange `json:"imageCfiRange,omitempty"`
// ForceSendFields is a list of field names (e.g. "CfiRange") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *AnnotationCurrentVersionRanges) MarshalJSON() ([]byte, error) {
type noMethod AnnotationCurrentVersionRanges
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type AnnotationLayerSummary struct {
// AllowedCharacterCount: Maximum allowed characters on this layer,
// especially for the "copy" layer.
AllowedCharacterCount int64 `json:"allowedCharacterCount,omitempty"`
// LimitType: Type of limitation on this layer. "limited" or "unlimited"
// for the "copy" layer.
LimitType string `json:"limitType,omitempty"`
// RemainingCharacterCount: Remaining allowed characters on this layer,
// especially for the "copy" layer.
RemainingCharacterCount int64 `json:"remainingCharacterCount,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllowedCharacterCount") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *AnnotationLayerSummary) MarshalJSON() ([]byte, error) {
type noMethod AnnotationLayerSummary
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type Annotationdata struct {
// AnnotationType: The type of annotation this data is for.
AnnotationType string `json:"annotationType,omitempty"`
Data interface{} `json:"data,omitempty"`
// EncodedData: Base64 encoded data for this annotation data.
EncodedData string `json:"encoded_data,omitempty"`
// Id: Unique id for this annotation data.
Id string `json:"id,omitempty"`
// Kind: Resource Type
Kind string `json:"kind,omitempty"`
// LayerId: The Layer id for this data. *
LayerId string `json:"layerId,omitempty"`
// SelfLink: URL for this resource. *
SelfLink string `json:"selfLink,omitempty"`
// Updated: Timestamp for the last time this data was updated. (RFC 3339
// UTC date-time format).
Updated string `json:"updated,omitempty"`
// VolumeId: The volume id for this data. *
VolumeId string `json:"volumeId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AnnotationType") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Annotationdata) MarshalJSON() ([]byte, error) {
type noMethod Annotationdata
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type Annotations struct {
// Items: A list of annotations.
Items []*Annotation `json:"items,omitempty"`
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// NextPageToken: Token to pass in for pagination for the next page.
// This will not be present if this request does not have more results.
NextPageToken string `json:"nextPageToken,omitempty"`
// TotalItems: Total number of annotations found. This may be greater
// than the number of notes returned in this response if results have
// been paginated.
TotalItems int64 `json:"totalItems,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Items") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Annotations) MarshalJSON() ([]byte, error) {
type noMethod Annotations
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type AnnotationsSummary struct {
Kind string `json:"kind,omitempty"`
Layers []*AnnotationsSummaryLayers `json:"layers,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *AnnotationsSummary) MarshalJSON() ([]byte, error) {
type noMethod AnnotationsSummary
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type AnnotationsSummaryLayers struct {
AllowedCharacterCount int64 `json:"allowedCharacterCount,omitempty"`
LayerId string `json:"layerId,omitempty"`
LimitType string `json:"limitType,omitempty"`
RemainingCharacterCount int64 `json:"remainingCharacterCount,omitempty"`
Updated string `json:"updated,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllowedCharacterCount") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *AnnotationsSummaryLayers) MarshalJSON() ([]byte, error) {
type noMethod AnnotationsSummaryLayers
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type Annotationsdata struct {
// Items: A list of Annotation Data.
Items []*Annotationdata `json:"items,omitempty"`
// Kind: Resource type
Kind string `json:"kind,omitempty"`
// NextPageToken: Token to pass in for pagination for the next page.
// This will not be present if this request does not have more results.
NextPageToken string `json:"nextPageToken,omitempty"`
// TotalItems: The total number of volume annotations found.
TotalItems int64 `json:"totalItems,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Items") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Annotationsdata) MarshalJSON() ([]byte, error) {
type noMethod Annotationsdata
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type BooksAnnotationsRange struct {
// EndOffset: The offset from the ending position.
EndOffset string `json:"endOffset,omitempty"`
// EndPosition: The ending position for the range.
EndPosition string `json:"endPosition,omitempty"`
// StartOffset: The offset from the starting position.
StartOffset string `json:"startOffset,omitempty"`
// StartPosition: The starting position for the range.
StartPosition string `json:"startPosition,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndOffset") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *BooksAnnotationsRange) MarshalJSON() ([]byte, error) {
type noMethod BooksAnnotationsRange
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type BooksCloudloadingResource struct {
Author string `json:"author,omitempty"`
ProcessingState string `json:"processingState,omitempty"`
Title string `json:"title,omitempty"`
VolumeId string `json:"volumeId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Author") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *BooksCloudloadingResource) MarshalJSON() ([]byte, error) {
type noMethod BooksCloudloadingResource
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type BooksVolumesRecommendedRateResponse struct {
ConsistencyToken string `json:"consistency_token,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ConsistencyToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *BooksVolumesRecommendedRateResponse) MarshalJSON() ([]byte, error) {
type noMethod BooksVolumesRecommendedRateResponse
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type Bookshelf struct {
// Access: Whether this bookshelf is PUBLIC or PRIVATE.
Access string `json:"access,omitempty"`
// Created: Created time for this bookshelf (formatted UTC timestamp
// with millisecond resolution).
Created string `json:"created,omitempty"`
// Description: Description of this bookshelf.
Description string `json:"description,omitempty"`
// Id: Id of this bookshelf, only unique by user.
Id int64 `json:"id,omitempty"`
// Kind: Resource type for bookshelf metadata.
Kind string `json:"kind,omitempty"`
// SelfLink: URL to this resource.
SelfLink string `json:"selfLink,omitempty"`
// Title: Title of this bookshelf.
Title string `json:"title,omitempty"`
// Updated: Last modified time of this bookshelf (formatted UTC
// timestamp with millisecond resolution).
Updated string `json:"updated,omitempty"`
// VolumeCount: Number of volumes in this bookshelf.
VolumeCount int64 `json:"volumeCount,omitempty"`
// VolumesLastUpdated: Last time a volume was added or removed from this
// bookshelf (formatted UTC timestamp with millisecond resolution).
VolumesLastUpdated string `json:"volumesLastUpdated,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Access") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Bookshelf) MarshalJSON() ([]byte, error) {
type noMethod Bookshelf
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type Bookshelves struct {
// Items: A list of bookshelves.
Items []*Bookshelf `json:"items,omitempty"`
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Items") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Bookshelves) MarshalJSON() ([]byte, error) {
type noMethod Bookshelves
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type Category struct {
// Items: A list of onboarding categories.
Items []*CategoryItems `json:"items,omitempty"`
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Items") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Category) MarshalJSON() ([]byte, error) {
type noMethod Category
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type CategoryItems struct {
BadgeUrl string `json:"badgeUrl,omitempty"`
CategoryId string `json:"categoryId,omitempty"`
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "BadgeUrl") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *CategoryItems) MarshalJSON() ([]byte, error) {
type noMethod CategoryItems
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type ConcurrentAccessRestriction struct {
// DeviceAllowed: Whether access is granted for this (user, device,
// volume).
DeviceAllowed bool `json:"deviceAllowed,omitempty"`
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// MaxConcurrentDevices: The maximum number of concurrent access
// licenses for this volume.
MaxConcurrentDevices int64 `json:"maxConcurrentDevices,omitempty"`
// Message: Error/warning message.
Message string `json:"message,omitempty"`
// Nonce: Client nonce for verification. Download access and
// client-validation only.
Nonce string `json:"nonce,omitempty"`
// ReasonCode: Error/warning reason code.
ReasonCode string `json:"reasonCode,omitempty"`
// Restricted: Whether this volume has any concurrent access
// restrictions.
Restricted bool `json:"restricted,omitempty"`
// Signature: Response signature.
Signature string `json:"signature,omitempty"`
// Source: Client app identifier for verification. Download access and
// client-validation only.
Source string `json:"source,omitempty"`
// TimeWindowSeconds: Time in seconds for license auto-expiration.
TimeWindowSeconds int64 `json:"timeWindowSeconds,omitempty"`
// VolumeId: Identifies the volume for which this entry applies.
VolumeId string `json:"volumeId,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceAllowed") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ConcurrentAccessRestriction) MarshalJSON() ([]byte, error) {
type noMethod ConcurrentAccessRestriction
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type Dictlayerdata struct {
Common *DictlayerdataCommon `json:"common,omitempty"`
Dict *DictlayerdataDict `json:"dict,omitempty"`
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "Common") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Dictlayerdata) MarshalJSON() ([]byte, error) {
type noMethod Dictlayerdata
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type DictlayerdataCommon struct {
// Title: The display title and localized canonical name to use when
// searching for this entity on Google search.
Title string `json:"title,omitempty"`
// ForceSendFields is a list of field names (e.g. "Title") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *DictlayerdataCommon) MarshalJSON() ([]byte, error) {
type noMethod DictlayerdataCommon
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type DictlayerdataDict struct {
// Source: The source, url and attribution for this dictionary data.
Source *DictlayerdataDictSource `json:"source,omitempty"`
Words []*DictlayerdataDictWords `json:"words,omitempty"`
// ForceSendFields is a list of field names (e.g. "Source") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *DictlayerdataDict) MarshalJSON() ([]byte, error) {
type noMethod DictlayerdataDict
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}