blob: dc24beeef49b163d8d38d2cd7ffdf17e4c8ebe30 [file] [log] [blame]
// Copyright 2018 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// 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"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
)
// 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 _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
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.Familysharing = NewFamilysharingService(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.Series = NewSeriesService(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
Familysharing *FamilysharingService
Layers *LayersService
Myconfig *MyconfigService
Mylibrary *MylibraryService
Notification *NotificationService
Onboarding *OnboardingService
Personalizedstream *PersonalizedstreamService
Promooffer *PromoofferService
Series *SeriesService
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 NewFamilysharingService(s *Service) *FamilysharingService {
rs := &FamilysharingService{s: s}
return rs
}
type FamilysharingService 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 NewSeriesService(s *Service) *SeriesService {
rs := &SeriesService{s: s}
rs.Membership = NewSeriesMembershipService(s)
return rs
}
type SeriesService struct {
s *Service
Membership *SeriesMembershipService
}
func NewSeriesMembershipService(s *Service) *SeriesMembershipService {
rs := &SeriesMembershipService{s: s}
return rs
}
type SeriesMembershipService 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:"-"`
// NullFields is a list of field names (e.g. "AfterSelectedText") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Annotation) MarshalJSON() ([]byte, error) {
type NoMethod Annotation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// 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:"-"`
// NullFields is a list of field names (e.g. "CfiRange") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnnotationClientVersionRanges) MarshalJSON() ([]byte, error) {
type NoMethod AnnotationClientVersionRanges
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// 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:"-"`
// NullFields is a list of field names (e.g. "CfiRange") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnnotationCurrentVersionRanges) MarshalJSON() ([]byte, error) {
type NoMethod AnnotationCurrentVersionRanges
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "AllowedCharacterCount") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AnnotationLayerSummary) MarshalJSON() ([]byte, error) {
type NoMethod AnnotationLayerSummary
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "AnnotationType") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Annotationdata) MarshalJSON() ([]byte, error) {
type NoMethod Annotationdata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Annotations) MarshalJSON() ([]byte, error) {
type NoMethod Annotations
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnnotationsSummary) MarshalJSON() ([]byte, error) {
type NoMethod AnnotationsSummary
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "AllowedCharacterCount") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AnnotationsSummaryLayers) MarshalJSON() ([]byte, error) {
type NoMethod AnnotationsSummaryLayers
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Annotationsdata) MarshalJSON() ([]byte, error) {
type NoMethod Annotationsdata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "EndOffset") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BooksAnnotationsRange) MarshalJSON() ([]byte, error) {
type NoMethod BooksAnnotationsRange
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Author") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BooksCloudloadingResource) MarshalJSON() ([]byte, error) {
type NoMethod BooksCloudloadingResource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "ConsistencyToken") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BooksVolumesRecommendedRateResponse) MarshalJSON() ([]byte, error) {
type NoMethod BooksVolumesRecommendedRateResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Access") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Bookshelf) MarshalJSON() ([]byte, error) {
type NoMethod Bookshelf
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Bookshelves) MarshalJSON() ([]byte, error) {
type NoMethod Bookshelves
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Category) MarshalJSON() ([]byte, error) {
type NoMethod Category
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "BadgeUrl") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CategoryItems) MarshalJSON() ([]byte, error) {
type NoMethod CategoryItems
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "DeviceAllowed") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConcurrentAccessRestriction) MarshalJSON() ([]byte, error) {
type NoMethod ConcurrentAccessRestriction
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Common") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Dictlayerdata) MarshalJSON() ([]byte, error) {
type NoMethod Dictlayerdata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Title") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataCommon) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataCommon
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Source") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDict) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDict
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DictlayerdataDictSource: The source, url and attribution for this
// dictionary data.
type DictlayerdataDictSource struct {
Attribution string `json:"attribution,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attribution") 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:"-"`
// NullFields is a list of field names (e.g. "Attribution") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictSource) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWords struct {
Derivatives []*DictlayerdataDictWordsDerivatives `json:"derivatives,omitempty"`
Examples []*DictlayerdataDictWordsExamples `json:"examples,omitempty"`
Senses []*DictlayerdataDictWordsSenses `json:"senses,omitempty"`
// Source: The words with different meanings but not related words, e.g.
// "go" (game) and "go" (verb).
Source *DictlayerdataDictWordsSource `json:"source,omitempty"`
// ForceSendFields is a list of field names (e.g. "Derivatives") 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:"-"`
// NullFields is a list of field names (e.g. "Derivatives") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWords) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWords
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsDerivatives struct {
Source *DictlayerdataDictWordsDerivativesSource `json:"source,omitempty"`
Text string `json:"text,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:"-"`
// NullFields is a list of field names (e.g. "Source") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsDerivatives) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsDerivatives
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsDerivativesSource struct {
Attribution string `json:"attribution,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attribution") 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:"-"`
// NullFields is a list of field names (e.g. "Attribution") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsDerivativesSource) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsDerivativesSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsExamples struct {
Source *DictlayerdataDictWordsExamplesSource `json:"source,omitempty"`
Text string `json:"text,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:"-"`
// NullFields is a list of field names (e.g. "Source") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsExamples) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsExamples
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsExamplesSource struct {
Attribution string `json:"attribution,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attribution") 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:"-"`
// NullFields is a list of field names (e.g. "Attribution") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsExamplesSource) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsExamplesSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsSenses struct {
Conjugations []*DictlayerdataDictWordsSensesConjugations `json:"conjugations,omitempty"`
Definitions []*DictlayerdataDictWordsSensesDefinitions `json:"definitions,omitempty"`
PartOfSpeech string `json:"partOfSpeech,omitempty"`
Pronunciation string `json:"pronunciation,omitempty"`
PronunciationUrl string `json:"pronunciationUrl,omitempty"`
Source *DictlayerdataDictWordsSensesSource `json:"source,omitempty"`
Syllabification string `json:"syllabification,omitempty"`
Synonyms []*DictlayerdataDictWordsSensesSynonyms `json:"synonyms,omitempty"`
// ForceSendFields is a list of field names (e.g. "Conjugations") 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:"-"`
// NullFields is a list of field names (e.g. "Conjugations") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsSenses) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsSenses
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsSensesConjugations struct {
Type string `json:"type,omitempty"`
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "Type") 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:"-"`
// NullFields is a list of field names (e.g. "Type") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsSensesConjugations) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsSensesConjugations
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsSensesDefinitions struct {
Definition string `json:"definition,omitempty"`
Examples []*DictlayerdataDictWordsSensesDefinitionsExamples `json:"examples,omitempty"`
// ForceSendFields is a list of field names (e.g. "Definition") 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:"-"`
// NullFields is a list of field names (e.g. "Definition") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsSensesDefinitions) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsSensesDefinitions
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsSensesDefinitionsExamples struct {
Source *DictlayerdataDictWordsSensesDefinitionsExamplesSource `json:"source,omitempty"`
Text string `json:"text,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:"-"`
// NullFields is a list of field names (e.g. "Source") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsSensesDefinitionsExamples) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsSensesDefinitionsExamples
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsSensesDefinitionsExamplesSource struct {
Attribution string `json:"attribution,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attribution") 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:"-"`
// NullFields is a list of field names (e.g. "Attribution") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsSensesDefinitionsExamplesSource) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsSensesDefinitionsExamplesSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsSensesSource struct {
Attribution string `json:"attribution,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attribution") 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:"-"`
// NullFields is a list of field names (e.g. "Attribution") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsSensesSource) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsSensesSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsSensesSynonyms struct {
Source *DictlayerdataDictWordsSensesSynonymsSource `json:"source,omitempty"`
Text string `json:"text,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:"-"`
// NullFields is a list of field names (e.g. "Source") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsSensesSynonyms) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsSensesSynonyms
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DictlayerdataDictWordsSensesSynonymsSource struct {
Attribution string `json:"attribution,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attribution") 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:"-"`
// NullFields is a list of field names (e.g. "Attribution") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsSensesSynonymsSource) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsSensesSynonymsSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DictlayerdataDictWordsSource: The words with different meanings but
// not related words, e.g. "go" (game) and "go" (verb).
type DictlayerdataDictWordsSource struct {
Attribution string `json:"attribution,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attribution") 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:"-"`
// NullFields is a list of field names (e.g. "Attribution") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DictlayerdataDictWordsSource) MarshalJSON() ([]byte, error) {
type NoMethod DictlayerdataDictWordsSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Discoveryclusters struct {
Clusters []*DiscoveryclustersClusters `json:"clusters,omitempty"`
// Kind: Resorce type.
Kind string `json:"kind,omitempty"`
TotalClusters int64 `json:"totalClusters,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Clusters") 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:"-"`
// NullFields is a list of field names (e.g. "Clusters") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Discoveryclusters) MarshalJSON() ([]byte, error) {
type NoMethod Discoveryclusters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DiscoveryclustersClusters struct {
BannerWithContentContainer *DiscoveryclustersClustersBannerWithContentContainer `json:"banner_with_content_container,omitempty"`
SubTitle string `json:"subTitle,omitempty"`
Title string `json:"title,omitempty"`
TotalVolumes int64 `json:"totalVolumes,omitempty"`
Uid string `json:"uid,omitempty"`
Volumes []*Volume `json:"volumes,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BannerWithContentContainer") 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:"-"`
// NullFields is a list of field names (e.g.
// "BannerWithContentContainer") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DiscoveryclustersClusters) MarshalJSON() ([]byte, error) {
type NoMethod DiscoveryclustersClusters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DiscoveryclustersClustersBannerWithContentContainer struct {
FillColorArgb string `json:"fillColorArgb,omitempty"`
ImageUrl string `json:"imageUrl,omitempty"`
MaskColorArgb string `json:"maskColorArgb,omitempty"`
MoreButtonText string `json:"moreButtonText,omitempty"`
MoreButtonUrl string `json:"moreButtonUrl,omitempty"`
TextColorArgb string `json:"textColorArgb,omitempty"`
// ForceSendFields is a list of field names (e.g. "FillColorArgb") 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:"-"`
// NullFields is a list of field names (e.g. "FillColorArgb") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DiscoveryclustersClustersBannerWithContentContainer) MarshalJSON() ([]byte, error) {
type NoMethod DiscoveryclustersClustersBannerWithContentContainer
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DownloadAccessRestriction struct {
// DeviceAllowed: If restricted, whether access is granted for this
// (user, device, volume).
DeviceAllowed bool `json:"deviceAllowed,omitempty"`
// DownloadsAcquired: If restricted, the number of content download
// licenses already acquired (including the requesting client, if
// licensed).
DownloadsAcquired int64 `json:"downloadsAcquired,omitempty"`
// JustAcquired: If deviceAllowed, whether access was just acquired with
// this request.
JustAcquired bool `json:"justAcquired,omitempty"`
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// MaxDownloadDevices: If restricted, the maximum number of content
// download licenses for this volume.
MaxDownloadDevices int64 `json:"maxDownloadDevices,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. Additional codes may be added
// in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101
// ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
ReasonCode string `json:"reasonCode,omitempty"`
// Restricted: Whether this volume has any download 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"`
// 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:"-"`
// NullFields is a list of field names (e.g. "DeviceAllowed") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DownloadAccessRestriction) MarshalJSON() ([]byte, error) {
type NoMethod DownloadAccessRestriction
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DownloadAccesses struct {
// DownloadAccessList: A list of download access responses.
DownloadAccessList []*DownloadAccessRestriction `json:"downloadAccessList,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. "DownloadAccessList")
// 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:"-"`
// NullFields is a list of field names (e.g. "DownloadAccessList") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *DownloadAccesses) MarshalJSON() ([]byte, error) {
type NoMethod DownloadAccesses
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type FamilyInfo struct {
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// Membership: Family membership info of the user that made the request.
Membership *FamilyInfoMembership `json:"membership,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:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *FamilyInfo) MarshalJSON() ([]byte, error) {
type NoMethod FamilyInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// FamilyInfoMembership: Family membership info of the user that made
// the request.
type FamilyInfoMembership struct {
// AcquirePermission: Restrictions on user buying and acquiring content.
AcquirePermission string `json:"acquirePermission,omitempty"`
// AgeGroup: The age group of the user.
AgeGroup string `json:"ageGroup,omitempty"`
// AllowedMaturityRating: The maximum allowed maturity rating for the
// user.
AllowedMaturityRating string `json:"allowedMaturityRating,omitempty"`
IsInFamily bool `json:"isInFamily,omitempty"`
// Role: The role of the user in the family.
Role string `json:"role,omitempty"`
// ForceSendFields is a list of field names (e.g. "AcquirePermission")
// 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:"-"`
// NullFields is a list of field names (e.g. "AcquirePermission") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *FamilyInfoMembership) MarshalJSON() ([]byte, error) {
type NoMethod FamilyInfoMembership
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Geolayerdata struct {
Common *GeolayerdataCommon `json:"common,omitempty"`
Geo *GeolayerdataGeo `json:"geo,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:"-"`
// NullFields is a list of field names (e.g. "Common") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Geolayerdata) MarshalJSON() ([]byte, error) {
type NoMethod Geolayerdata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GeolayerdataCommon struct {
// Lang: The language of the information url and description.
Lang string `json:"lang,omitempty"`
// PreviewImageUrl: The URL for the preview image information.
PreviewImageUrl string `json:"previewImageUrl,omitempty"`
// Snippet: The description for this location.
Snippet string `json:"snippet,omitempty"`
// SnippetUrl: The URL for information for this location. Ex: wikipedia
// link.
SnippetUrl string `json:"snippetUrl,omitempty"`
// 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. "Lang") 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:"-"`
// NullFields is a list of field names (e.g. "Lang") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GeolayerdataCommon) MarshalJSON() ([]byte, error) {
type NoMethod GeolayerdataCommon
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GeolayerdataGeo struct {
// Boundary: The boundary of the location as a set of loops containing
// pairs of latitude, longitude coordinates.
Boundary [][]*GeolayerdataGeoBoundaryItem `json:"boundary,omitempty"`
// CachePolicy: The cache policy active for this data. EX: UNRESTRICTED,
// RESTRICTED, NEVER
CachePolicy string `json:"cachePolicy,omitempty"`
// CountryCode: The country code of the location.
CountryCode string `json:"countryCode,omitempty"`
// Latitude: The latitude of the location.
Latitude float64 `json:"latitude,omitempty"`
// Longitude: The longitude of the location.
Longitude float64 `json:"longitude,omitempty"`
// MapType: The type of map that should be used for this location. EX:
// HYBRID, ROADMAP, SATELLITE, TERRAIN
MapType string `json:"mapType,omitempty"`
// Viewport: The viewport for showing this location. This is a latitude,
// longitude rectangle.
Viewport *GeolayerdataGeoViewport `json:"viewport,omitempty"`
// Zoom: The Zoom level to use for the map. Zoom levels between 0 (the
// lowest zoom level, in which the entire world can be seen on one map)
// to 21+ (down to individual buildings). See:
// https://developers.google.com/maps/documentation/staticmaps/#Zoomlevels
Zoom int64 `json:"zoom,omitempty"`
// ForceSendFields is a list of field names (e.g. "Boundary") 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:"-"`
// NullFields is a list of field names (e.g. "Boundary") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GeolayerdataGeo) MarshalJSON() ([]byte, error) {
type NoMethod GeolayerdataGeo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *GeolayerdataGeo) UnmarshalJSON(data []byte) error {
type NoMethod GeolayerdataGeo
var s1 struct {
Latitude gensupport.JSONFloat64 `json:"latitude"`
Longitude gensupport.JSONFloat64 `json:"longitude"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Latitude = float64(s1.Latitude)
s.Longitude = float64(s1.Longitude)
return nil
}
type GeolayerdataGeoBoundaryItem struct {
Latitude int64 `json:"latitude,omitempty"`
Longitude int64 `json:"longitude,omitempty"`
// ForceSendFields is a list of field names (e.g. "Latitude") 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:"-"`
// NullFields is a list of field names (e.g. "Latitude") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GeolayerdataGeoBoundaryItem) MarshalJSON() ([]byte, error) {
type NoMethod GeolayerdataGeoBoundaryItem
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GeolayerdataGeoViewport: The viewport for showing this location. This
// is a latitude, longitude rectangle.
type GeolayerdataGeoViewport struct {
Hi *GeolayerdataGeoViewportHi `json:"hi,omitempty"`
Lo *GeolayerdataGeoViewportLo `json:"lo,omitempty"`
// ForceSendFields is a list of field names (e.g. "Hi") 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:"-"`
// NullFields is a list of field names (e.g. "Hi") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GeolayerdataGeoViewport) MarshalJSON() ([]byte, error) {
type NoMethod GeolayerdataGeoViewport
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GeolayerdataGeoViewportHi struct {
Latitude float64 `json:"latitude,omitempty"`
Longitude float64 `json:"longitude,omitempty"`
// ForceSendFields is a list of field names (e.g. "Latitude") 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:"-"`
// NullFields is a list of field names (e.g. "Latitude") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GeolayerdataGeoViewportHi) MarshalJSON() ([]byte, error) {
type NoMethod GeolayerdataGeoViewportHi
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *GeolayerdataGeoViewportHi) UnmarshalJSON(data []byte) error {
type NoMethod GeolayerdataGeoViewportHi
var s1 struct {
Latitude gensupport.JSONFloat64 `json:"latitude"`
Longitude gensupport.JSONFloat64 `json:"longitude"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Latitude = float64(s1.Latitude)
s.Longitude = float64(s1.Longitude)
return nil
}
type GeolayerdataGeoViewportLo struct {
Latitude float64 `json:"latitude,omitempty"`
Longitude float64 `json:"longitude,omitempty"`
// ForceSendFields is a list of field names (e.g. "Latitude") 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:"-"`
// NullFields is a list of field names (e.g. "Latitude") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GeolayerdataGeoViewportLo) MarshalJSON() ([]byte, error) {
type NoMethod GeolayerdataGeoViewportLo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *GeolayerdataGeoViewportLo) UnmarshalJSON(data []byte) error {
type NoMethod GeolayerdataGeoViewportLo
var s1 struct {
Latitude gensupport.JSONFloat64 `json:"latitude"`
Longitude gensupport.JSONFloat64 `json:"longitude"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Latitude = float64(s1.Latitude)
s.Longitude = float64(s1.Longitude)
return nil
}
type Layersummaries struct {
// Items: A list of layer summary items.
Items []*Layersummary `json:"items,omitempty"`
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// TotalItems: The total number of layer summaries 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:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Layersummaries) MarshalJSON() ([]byte, error) {
type NoMethod Layersummaries
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Layersummary struct {
// AnnotationCount: The number of annotations for this layer.
AnnotationCount int64 `json:"annotationCount,omitempty"`
// AnnotationTypes: The list of annotation types contained for this
// layer.
AnnotationTypes []string `json:"annotationTypes,omitempty"`
// AnnotationsDataLink: Link to get data for this annotation.
AnnotationsDataLink string `json:"annotationsDataLink,omitempty"`
// AnnotationsLink: The link to get the annotations for this layer.
AnnotationsLink string `json:"annotationsLink,omitempty"`
// ContentVersion: The content version this resource is for.
ContentVersion string `json:"contentVersion,omitempty"`
// DataCount: The number of data items for this layer.
DataCount int64 `json:"dataCount,omitempty"`
// Id: Unique id of this layer summary.
Id string `json:"id,omitempty"`
// Kind: Resource Type
Kind string `json:"kind,omitempty"`
// LayerId: The layer id for this summary.
LayerId string `json:"layerId,omitempty"`
// SelfLink: URL to this resource.
SelfLink string `json:"selfLink,omitempty"`
// Updated: Timestamp for the last time an item in this layer was
// updated. (RFC 3339 UTC date-time format).
Updated string `json:"updated,omitempty"`
// VolumeAnnotationsVersion: The current version of this layer's volume
// annotations. Note that this version applies only to the data in the
// books.layers.volumeAnnotations.* responses. The actual annotation
// data is versioned separately.
VolumeAnnotationsVersion string `json:"volumeAnnotationsVersion,omitempty"`
// VolumeId: The volume id this resource is for.
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. "AnnotationCount") 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:"-"`
// NullFields is a list of field names (e.g. "AnnotationCount") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Layersummary) MarshalJSON() ([]byte, error) {
type NoMethod Layersummary
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Metadata struct {
// Items: A list of offline dictionary metadata.
Items []*MetadataItems `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:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Metadata) MarshalJSON() ([]byte, error) {
type NoMethod Metadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MetadataItems struct {
DownloadUrl string `json:"download_url,omitempty"`
EncryptedKey string `json:"encrypted_key,omitempty"`
Language string `json:"language,omitempty"`
Size int64 `json:"size,omitempty,string"`
Version int64 `json:"version,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "DownloadUrl") 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:"-"`
// NullFields is a list of field names (e.g. "DownloadUrl") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MetadataItems) MarshalJSON() ([]byte, error) {
type NoMethod MetadataItems
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Notification struct {
Body string `json:"body,omitempty"`
// CrmExperimentIds: The list of crm experiment ids.
CrmExperimentIds googleapi.Int64s `json:"crmExperimentIds,omitempty"`
DocId string `json:"doc_id,omitempty"`
DocType string `json:"doc_type,omitempty"`
DontShowNotification bool `json:"dont_show_notification,omitempty"`
IconUrl string `json:"iconUrl,omitempty"`
IsDocumentMature bool `json:"is_document_mature,omitempty"`
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
NotificationGroup string `json:"notificationGroup,omitempty"`
NotificationType string `json:"notification_type,omitempty"`
PcampaignId string `json:"pcampaign_id,omitempty"`
Reason string `json:"reason,omitempty"`
ShowNotificationSettingsAction bool `json:"show_notification_settings_action,omitempty"`
TargetUrl string `json:"targetUrl,omitempty"`
Title string `json:"title,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Body") 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:"-"`
// NullFields is a list of field names (e.g. "Body") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Notification) MarshalJSON() ([]byte, error) {
type NoMethod Notification
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Offers struct {
// Items: A list of offers.
Items []*OffersItems `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:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Offers) MarshalJSON() ([]byte, error) {
type NoMethod Offers
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OffersItems struct {
ArtUrl string `json:"artUrl,omitempty"`
GservicesKey string `json:"gservicesKey,omitempty"`
Id string `json:"id,omitempty"`
Items []*OffersItemsItems `json:"items,omitempty"`
// ForceSendFields is a list of field names (e.g. "ArtUrl") 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:"-"`
// NullFields is a list of field names (e.g. "ArtUrl") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *OffersItems) MarshalJSON() ([]byte, error) {
type NoMethod OffersItems
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OffersItemsItems struct {
Author string `json:"author,omitempty"`
CanonicalVolumeLink string `json:"canonicalVolumeLink,omitempty"`
CoverUrl string `json:"coverUrl,omitempty"`
Description string `json:"description,omitempty"`
Title string `json:"title,omitempty"`
VolumeId string `json:"volumeId,omitempty"`
// 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:"-"`
// NullFields is a list of field names (e.g. "Author") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *OffersItemsItems) MarshalJSON() ([]byte, error) {
type NoMethod OffersItemsItems
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ReadingPosition struct {
// EpubCfiPosition: Position in an EPUB as a CFI.
EpubCfiPosition string `json:"epubCfiPosition,omitempty"`
// GbImagePosition: Position in a volume for image-based content.
GbImagePosition string `json:"gbImagePosition,omitempty"`
// GbTextPosition: Position in a volume for text-based content.
GbTextPosition string `json:"gbTextPosition,omitempty"`
// Kind: Resource type for a reading position.
Kind string `json:"kind,omitempty"`
// PdfPosition: Position in a PDF file.
PdfPosition string `json:"pdfPosition,omitempty"`
// Updated: Timestamp when this reading position was last updated
// (formatted UTC timestamp with millisecond resolution).
Updated string `json:"updated,omitempty"`
// VolumeId: Volume id associated with this reading position.
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. "EpubCfiPosition") 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:"-"`
// NullFields is a list of field names (e.g. "EpubCfiPosition") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ReadingPosition) MarshalJSON() ([]byte, error) {
type NoMethod ReadingPosition
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type RequestAccess struct {
// ConcurrentAccess: A concurrent access response.
ConcurrentAccess *ConcurrentAccessRestriction `json:"concurrentAccess,omitempty"`
// DownloadAccess: A download access response.
DownloadAccess *DownloadAccessRestriction `json:"downloadAccess,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. "ConcurrentAccess") 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:"-"`
// NullFields is a list of field names (e.g. "ConcurrentAccess") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *RequestAccess) MarshalJSON() ([]byte, error) {
type NoMethod RequestAccess
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Review struct {
// Author: Author of this review.
Author *ReviewAuthor `json:"author,omitempty"`
// Content: Review text.
Content string `json:"content,omitempty"`
// Date: Date of this review.
Date string `json:"date,omitempty"`
// FullTextUrl: URL for the full review text, for reviews gathered from
// the web.
FullTextUrl string `json:"fullTextUrl,omitempty"`
// Kind: Resource type for a review.
Kind string `json:"kind,omitempty"`
// Rating: Star rating for this review. Possible values are ONE, TWO,
// THREE, FOUR, FIVE or NOT_RATED.
Rating string `json:"rating,omitempty"`
// Source: Information regarding the source of this review, when the
// review is not from a Google Books user.
Source *ReviewSource `json:"source,omitempty"`
// Title: Title for this review.
Title string `json:"title,omitempty"`
// Type: Source type for this review. Possible values are EDITORIAL,
// WEB_USER or GOOGLE_USER.
Type string `json:"type,omitempty"`
// VolumeId: Volume that this review is for.
VolumeId string `json:"volumeId,omitempty"`
// 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:"-"`
// NullFields is a list of field names (e.g. "Author") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Review) MarshalJSON() ([]byte, error) {
type NoMethod Review
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ReviewAuthor: Author of this review.
type ReviewAuthor struct {
// DisplayName: Name of this person.
DisplayName string `json:"displayName,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") 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:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ReviewAuthor) MarshalJSON() ([]byte, error) {
type NoMethod ReviewAuthor
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ReviewSource: Information regarding the source of this review, when
// the review is not from a Google Books user.
type ReviewSource struct {
// Description: Name of the source.
Description string `json:"description,omitempty"`
// ExtraDescription: Extra text about the source of the review.
ExtraDescription string `json:"extraDescription,omitempty"`
// Url: URL of the source of the review.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") 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:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ReviewSource) MarshalJSON() ([]byte, error) {
type NoMethod ReviewSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Series struct {
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
Series []*SeriesSeries `json:"series,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:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Series) MarshalJSON() ([]byte, error) {
type NoMethod Series
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SeriesSeries struct {
BannerImageUrl string `json:"bannerImageUrl,omitempty"`
ImageUrl string `json:"imageUrl,omitempty"`
SeriesId string `json:"seriesId,omitempty"`
SeriesType string `json:"seriesType,omitempty"`
Title string `json:"title,omitempty"`
// ForceSendFields is a list of field names (e.g. "BannerImageUrl") 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:"-"`
// NullFields is a list of field names (e.g. "BannerImageUrl") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SeriesSeries) MarshalJSON() ([]byte, error) {
type NoMethod SeriesSeries
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Seriesmembership struct {
// Kind: Resorce type.
Kind string `json:"kind,omitempty"`
Member []*Volume `json:"member,omitempty"`
NextPageToken string `json:"nextPageToken,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:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Seriesmembership) MarshalJSON() ([]byte, error) {
type NoMethod Seriesmembership
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Usersettings struct {
// Kind: Resource type.
Kind string `json:"kind,omitempty"`
// NotesExport: User settings in sub-objects, each for different
// purposes.
NotesExport *UsersettingsNotesExport `json:"notesExport,omitempty"`
Notification *UsersettingsNotification `json:"notification,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:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Usersettings) MarshalJSON() ([]byte, error) {
type NoMethod Usersettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UsersettingsNotesExport: User settings in sub-objects, each for
// different purposes.
type UsersettingsNotesExport struct {
FolderName string `json:"folderName,omitempty"`
IsEnabled bool `json:"isEnabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "FolderName") 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:"-"`
// NullFields is a list of field names (e.g. "FolderName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UsersettingsNotesExport) MarshalJSON() ([]byte, error) {
type NoMethod UsersettingsNotesExport
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotification struct {
MatchMyInterests *UsersettingsNotificationMatchMyInterests `json:"matchMyInterests,omitempty"`
MoreFromAuthors *UsersettingsNotificationMoreFromAuthors `json:"moreFromAuthors,omitempty"`
MoreFromSeries *UsersettingsNotificationMoreFromSeries `json:"moreFromSeries,omitempty"`
PriceDrop *UsersettingsNotificationPriceDrop `json:"priceDrop,omitempty"`
RewardExpirations *UsersettingsNotificationRewardExpirations `json:"rewardExpirations,omitempty"`
// ForceSendFields is a list of field names (e.g. "MatchMyInterests") 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:"-"`
// NullFields is a list of field names (e.g. "MatchMyInterests") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *UsersettingsNotification) MarshalJSON() ([]byte, error) {
type NoMethod UsersettingsNotification
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotificationMatchMyInterests struct {
OptedState string `json:"opted_state,omitempty"`
// ForceSendFields is a list of field names (e.g. "OptedState") 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:"-"`
// NullFields is a list of field names (e.g. "OptedState") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UsersettingsNotificationMatchMyInterests) MarshalJSON() ([]byte, error) {
type NoMethod UsersettingsNotificationMatchMyInterests
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotificationMoreFromAuthors struct {
OptedState string `json:"opted_state,omitempty"`
// ForceSendFields is a list of field names (e.g. "OptedState") 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:"-"`
// NullFields is a list of field names (e.g. "OptedState") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UsersettingsNotificationMoreFromAuthors) MarshalJSON() ([]byte, error) {
type NoMethod UsersettingsNotificationMoreFromAuthors
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotificationMoreFromSeries struct {
OptedState string `json:"opted_state,omitempty"`
// ForceSendFields is a list of field names (e.g. "OptedState") 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:"-"`
// NullFields is a list of field names (e.g. "OptedState") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UsersettingsNotificationMoreFromSeries) MarshalJSON() ([]byte, error) {
type NoMethod UsersettingsNotificationMoreFromSeries
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotificationPriceDrop struct {
OptedState string `json:"opted_state,omitempty"`
// ForceSendFields is a list of field names (e.g. "OptedState") 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:"-"`
// NullFields is a list of field names (e.g. "OptedState") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UsersettingsNotificationPriceDrop) MarshalJSON() ([]byte, error) {
type NoMethod UsersettingsNotificationPriceDrop
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UsersettingsNotificationRewardExpirations struct {
OptedState string `json:"opted_state,omitempty"`
// ForceSendFields is a list of field names (e.g. "OptedState") 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:"-"`
// NullFields is a list of field names (e.g. "OptedState") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UsersettingsNotificationRewardExpirations) MarshalJSON() ([]byte, error) {
type NoMethod UsersettingsNotificationRewardExpirations
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Volume struct {
// AccessInfo: Any information about a volume related to reading or
// obtaining that volume text. This information can depend on country
// (books may be public domain in one country but not in another, e.g.).
AccessInfo *VolumeAccessInfo `json:"accessInfo,omitempty"`
// Etag: Opaque identifier for a specific version of a volume resource.
// (In LITE projection)
Etag string `json:"etag,omitempty"`
// Id: Unique identifier for a volume. (In LITE projection.)
Id string `json:"id,omitempty"`
// Kind: Resource type for a volume. (In LITE projection.)
Kind string `json:"kind,omitempty"`
// LayerInfo: What layers exist in this volume and high level
// information about them.
LayerInfo *VolumeLayerInfo `json:"layerInfo,omitempty"`
// RecommendedInfo: Recommendation related information for this volume.
RecommendedInfo *VolumeRecommendedInfo `json:"recommendedInfo,omitempty"`
// SaleInfo: Any information about a volume related to the eBookstore
// and/or purchaseability. This information can depend on the country
// where the request originates from (i.e. books may not be for sale in
// certain countries).
SaleInfo *VolumeSaleInfo `json:"saleInfo,omitempty"`
// SearchInfo: Search result information related to this volume.
SearchInfo *VolumeSearchInfo `json:"searchInfo,omitempty"`
// SelfLink: URL to this resource. (In LITE projection.)
SelfLink string `json:"selfLink,omitempty"`
// UserInfo: User specific information related to this volume. (e.g.
// page this user last read or whether they purchased this book)
UserInfo *VolumeUserInfo `json:"userInfo,omitempty"`
// VolumeInfo: General volume information.
VolumeInfo *VolumeVolumeInfo `json:"volumeInfo,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccessInfo") 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:"-"`
// NullFields is a list of field names (e.g. "AccessInfo") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Volume) MarshalJSON() ([]byte, error) {
type NoMethod Volume
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VolumeAccessInfo: Any information about a volume related to reading
// or obtaining that volume text. This information can depend on country
// (books may be public domain in one country but not in another, e.g.).
type VolumeAccessInfo struct {
// AccessViewStatus: Combines the access and viewability of this volume
// into a single status field for this user. Values can be
// FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE
// projection.)
AccessViewStatus string `json:"accessViewStatus,omitempty"`
// Country: The two-letter ISO_3166-1 country code for which this access
// information is valid. (In LITE projection.)
Country string `json:"country,omitempty"`
// DownloadAccess: Information about a volume's download license access
// restrictions.
DownloadAccess *DownloadAccessRestriction `json:"downloadAccess,omitempty"`
// DriveImportedContentLink: URL to the Google Drive viewer if this
// volume is uploaded by the user by selecting the file from Google
// Drive.
DriveImportedContentLink string `json:"driveImportedContentLink,omitempty"`
// Embeddable: Whether this volume can be embedded in a viewport using
// the Embedded Viewer API.
Embeddable bool `json:"embeddable,omitempty"`
// Epub: Information about epub content. (In LITE projection.)
Epub *VolumeAccessInfoEpub `json:"epub,omitempty"`
// ExplicitOfflineLicenseManagement: Whether this volume requires that
// the client explicitly request offline download license rather than
// have it done automatically when loading the content, if the client
// supports it.
ExplicitOfflineLicenseManagement bool `json:"explicitOfflineLicenseManagement,omitempty"`
// Pdf: Information about pdf content. (In LITE projection.)
Pdf *VolumeAccessInfoPdf `json:"pdf,omitempty"`
// PublicDomain: Whether or not this book is public domain in the
// country listed above.
PublicDomain bool `json:"publicDomain,omitempty"`
// QuoteSharingAllowed: Whether quote sharing is allowed for this
// volume.
QuoteSharingAllowed bool `json:"quoteSharingAllowed,omitempty"`
// TextToSpeechPermission: Whether text-to-speech is permitted for this
// volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or
// NOT_ALLOWED.
TextToSpeechPermission string `json:"textToSpeechPermission,omitempty"`
// ViewOrderUrl: For ordered but not yet processed orders, we give a URL
// that can be used to go to the appropriate Google Wallet page.
ViewOrderUrl string `json:"viewOrderUrl,omitempty"`
// Viewability: The read access of a volume. Possible values are
// PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the
// country listed above. A value of PARTIAL means that the publisher has
// allowed some portion of the volume to be viewed publicly, without
// purchase. This can apply to eBooks as well as non-eBooks. Public
// domain books will always have a value of ALL_PAGES.
Viewability string `json:"viewability,omitempty"`
// WebReaderLink: URL to read this volume on the Google Books site. Link
// will not allow users to read non-viewable volumes.
WebReaderLink string `json:"webReaderLink,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccessViewStatus") 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:"-"`
// NullFields is a list of field names (e.g. "AccessViewStatus") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *VolumeAccessInfo) MarshalJSON() ([]byte, error) {
type NoMethod VolumeAccessInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VolumeAccessInfoEpub: Information about epub content. (In LITE
// projection.)
type VolumeAccessInfoEpub struct {
// AcsTokenLink: URL to retrieve ACS token for epub download. (In LITE
// projection.)
AcsTokenLink string `json:"acsTokenLink,omitempty"`
// DownloadLink: URL to download epub. (In LITE projection.)
DownloadLink string `json:"downloadLink,omitempty"`
// IsAvailable: Is a flowing text epub available either as public domain
// or for purchase. (In LITE projection.)
IsAvailable bool `json:"isAvailable,omitempty"`
// ForceSendFields is a list of field names (e.g. "AcsTokenLink") 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:"-"`
// NullFields is a list of field names (e.g. "AcsTokenLink") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VolumeAccessInfoEpub) MarshalJSON() ([]byte, error) {
type NoMethod VolumeAccessInfoEpub
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VolumeAccessInfoPdf: Information about pdf content. (In LITE
// projection.)
type VolumeAccessInfoPdf struct {
// AcsTokenLink: URL to retrieve ACS token for pdf download. (In LITE
// projection.)
AcsTokenLink string `json:"acsTokenLink,omitempty"`
// DownloadLink: URL to download pdf. (In LITE projection.)
DownloadLink string `json:"downloadLink,omitempty"`
// IsAvailable: Is a scanned image pdf available either as public domain
// or for purchase. (In LITE projection.)
IsAvailable bool `json:"isAvailable,omitempty"`
// ForceSendFields is a list of field names (e.g. "AcsTokenLink") 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:"-"`
// NullFields is a list of field names (e.g. "AcsTokenLink") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VolumeAccessInfoPdf) MarshalJSON() ([]byte, error) {
type NoMethod VolumeAccessInfoPdf
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VolumeLayerInfo: What layers exist in this volume and high level
// information about them.
type VolumeLayerInfo struct {
// Layers: A layer should appear here if and only if the layer exists
// for this book.
Layers []*VolumeLayerInfoLayers `json:"layers,omitempty"`
// ForceSendFields is a list of field names (e.g. "Layers") 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:"-"`
// NullFields is a list of field names (e.g. "Layers") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VolumeLayerInfo) MarshalJSON() ([]byte, error) {
type NoMethod VolumeLayerInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type VolumeLayerInfoLayers struct {
// LayerId: The layer id of this layer (e.g. "geo").
LayerId string `json:"layerId,omitempty"`
// VolumeAnnotationsVersion: The current version of this layer's volume
// annotations. Note that this version applies only to the data in the
// books.layers.volumeAnnotations.* responses. The actual annotation
// data is versioned separately.
VolumeAnnotationsVersion string `json:"volumeAnnotationsVersion,omitempty"`
// ForceSendFields is a list of field names (e.g. "LayerId") 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:"-"`
// NullFields is a list of field names (e.g. "LayerId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VolumeLayerInfoLayers) MarshalJSON() ([]byte, error) {
type NoMethod VolumeLayerInfoLayers
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VolumeRecommendedInfo: Recommendation related information for this
// volume.
type VolumeRecommendedInfo struct {
// Explanation: A text explaining why this volume is recommended.
Explanation string `json:"explanation,omitempty"`
// ForceSendFields is a list of field names (e.g. "Explanation") 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:"-"`
// NullFields is a list of field names (e.g. "Explanation") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VolumeRecommendedInfo) MarshalJSON() ([]byte, error) {
type NoMethod VolumeRecommendedInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VolumeSaleInfo: Any information about a volume related to the
// eBookstore and/or purchaseability. This information can depend on the
// country where the request originates from (i.e. books may not be for
// sale in certain countries).
type VolumeSaleInfo struct {
// BuyLink: URL to purchase this volume on the Google Books site. (In
// LITE projection)
BuyLink string `json:"buyLink,omitempty"`
// Country: The two-letter ISO_3166-1 country code for which this sale
// information is valid. (In LITE projection.)
Country string `json:"country,omitempty"`
// IsEbook: Whether or not this volume is an eBook (can be added to the
// My eBooks shelf).
IsEbook bool `json:"isEbook,omitempty"`
// ListPrice: Suggested retail price. (In LITE projection.)
ListPrice *VolumeSaleInfoListPrice `json:"listPrice,omitempty"`
// Offers: Offers available for this volume (sales and rentals).
Offers []*VolumeSaleInfoOffers `json:"offers,omitempty"`
// OnSaleDate: The date on which this book is available for sale.
OnSaleDate string `json:"onSaleDate,omitempty"`
// RetailPrice: The actual selling price of the book. This is the same
// as the suggested retail or list price unless there are offers or
// discounts on this volume. (In LITE projection.)
RetailPrice *VolumeSaleInfoRetailPrice `json:"retailPrice,omitempty"`
// Saleability: Whether or not this book is available for sale or
// offered for free in the Google eBookstore for the country listed
// above. Possible values are FOR_SALE, FOR_RENTAL_ONLY,
// FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
Saleability string `json:"saleability,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuyLink") 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:"-"`
// NullFields is a list of field names (e.g. "BuyLink") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VolumeSaleInfo) MarshalJSON() ([]byte, error) {
type NoMethod VolumeSaleInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VolumeSaleInfoListPrice: Suggested retail price. (In LITE
// projection.)
type VolumeSaleInfoListPrice struct {
// Amount: Amount in the currency listed below. (In LITE projection.)
Amount float64 `json:"amount,omitempty"`
// CurrencyCode: An ISO 4217, three-letter currency code. (In LITE
// projection.)
CurrencyCode string `json:"currencyCode,omitempty"`
// ForceSendFields is a list of field names (e.g. "Amount") 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:"-"`
// NullFields is a list of field names (e.g. "Amount") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VolumeSaleInfoListPrice) MarshalJSON() ([]byte, error) {
type NoMethod VolumeSaleInfoListPrice
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *VolumeSaleInfoListPrice) UnmarshalJSON(data []byte) error {
type NoMethod VolumeSaleInfoListPrice
var s1 struct {
Amount gensupport.JSONFloat64 `json:"amount"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Amount = float64(s1.Amount)
return nil
}
type VolumeSaleInfoOffers struct {
// FinskyOfferType: The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
FinskyOfferType int64 `json:"finskyOfferType,omitempty"`
// Giftable: Indicates whether the offer is giftable.
Giftable bool `json:"giftable,omitempty"`
// ListPrice: Offer list (=undiscounted) price in Micros.
ListPrice *VolumeSaleInfoOffersListPrice `json:"listPrice,omitempty"`
// RentalDuration: The rental duration (for rental offers only).
RentalDuration *VolumeSaleInfoOffersRentalDuration `json:"rentalDuration,omitempty"`
// RetailPrice: Offer retail (=discounted) price in Micros
RetailPrice *VolumeSaleInfoOffersRetailPrice `json:"retailPrice,omitempty"`
// ForceSendFields is a list of field names (e.g. "FinskyOfferType") 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:"-"`
// NullFields is a list of field names (e.g. "FinskyOfferType") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *VolumeSaleInfoOffers) MarshalJSON() ([]byte, error) {
type NoMethod VolumeSaleInfoOffers
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VolumeSaleInfoOffersListPrice: Offer list (=undiscounted) price in
// Micros.
type VolumeSaleInfoOffersListPrice struct {
AmountInMicros float64 `json:"amountInMicros,omitempty"`
CurrencyCode string `json:"currencyCode,omitempty"`
// ForceSendFields is a list of field names (e.g. "AmountInMicros") 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:"-"`
// NullFields is a list of field names (e.g. "AmountInMicros") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *VolumeSaleInfoOffersListPrice) MarshalJSON() ([]byte, error) {
type NoMethod VolumeSaleInfoOffersListPrice
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *VolumeSaleInfoOffersListPrice) UnmarshalJSON(data []byte) error {
type NoMethod VolumeSaleInfoOffersListPrice
var s1 struct {
AmountInMicros gensupport.JSONFloat64 `json:"amountInMicros"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.AmountInMicros = float64(s1.AmountInMicros)
return nil
}