| // Copyright 2019 Google LLC. |
| // 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 docs provides access to the Google Docs API. |
| // |
| // For product documentation, see: https://developers.google.com/docs/ |
| // |
| // Creating a client |
| // |
| // Usage example: |
| // |
| // import "google.golang.org/api/docs/v1" |
| // ... |
| // ctx := context.Background() |
| // docsService, err := docs.NewService(ctx) |
| // |
| // In this example, Google Application Default Credentials are used for authentication. |
| // |
| // For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. |
| // |
| // Other authentication options |
| // |
| // By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: |
| // |
| // docsService, err := docs.NewService(ctx, option.WithScopes(docs.DriveReadonlyScope)) |
| // |
| // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: |
| // |
| // docsService, err := docs.NewService(ctx, option.WithAPIKey("AIza...")) |
| // |
| // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: |
| // |
| // config := &oauth2.Config{...} |
| // // ... |
| // token, err := config.Exchange(ctx, ...) |
| // docsService, err := docs.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) |
| // |
| // See https://godoc.org/google.golang.org/api/option/ for details on options. |
| package docs // import "google.golang.org/api/docs/v1" |
| |
| import ( |
| "bytes" |
| "context" |
| "encoding/json" |
| "errors" |
| "fmt" |
| "io" |
| "net/http" |
| "net/url" |
| "strconv" |
| "strings" |
| |
| googleapi "google.golang.org/api/googleapi" |
| gensupport "google.golang.org/api/internal/gensupport" |
| option "google.golang.org/api/option" |
| htransport "google.golang.org/api/transport/http" |
| ) |
| |
| // 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 = "docs:v1" |
| const apiName = "docs" |
| const apiVersion = "v1" |
| const basePath = "https://docs.googleapis.com/" |
| |
| // OAuth2 scopes used by this API. |
| const ( |
| // View and manage your Google Docs documents |
| DocumentsScope = "https://www.googleapis.com/auth/documents" |
| |
| // View your Google Docs documents |
| DocumentsReadonlyScope = "https://www.googleapis.com/auth/documents.readonly" |
| |
| // See, edit, create, and delete all of your Google Drive files |
| DriveScope = "https://www.googleapis.com/auth/drive" |
| |
| // View and manage Google Drive files and folders that you have opened |
| // or created with this app |
| DriveFileScope = "https://www.googleapis.com/auth/drive.file" |
| |
| // See and download all your Google Drive files |
| DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly" |
| ) |
| |
| // NewService creates a new Service. |
| func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { |
| scopesOption := option.WithScopes( |
| "https://www.googleapis.com/auth/documents", |
| "https://www.googleapis.com/auth/documents.readonly", |
| "https://www.googleapis.com/auth/drive", |
| "https://www.googleapis.com/auth/drive.file", |
| "https://www.googleapis.com/auth/drive.readonly", |
| ) |
| // NOTE: prepend, so we don't override user-specified scopes. |
| opts = append([]option.ClientOption{scopesOption}, opts...) |
| client, endpoint, err := htransport.NewClient(ctx, opts...) |
| if err != nil { |
| return nil, err |
| } |
| s, err := New(client) |
| if err != nil { |
| return nil, err |
| } |
| if endpoint != "" { |
| s.BasePath = endpoint |
| } |
| return s, nil |
| } |
| |
| // New creates a new Service. It uses the provided http.Client for requests. |
| // |
| // Deprecated: please use NewService instead. |
| // To provide a custom HTTP client, use option.WithHTTPClient. |
| // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. |
| func New(client *http.Client) (*Service, error) { |
| if client == nil { |
| return nil, errors.New("client is nil") |
| } |
| s := &Service{client: client, BasePath: basePath} |
| s.Documents = NewDocumentsService(s) |
| return s, nil |
| } |
| |
| type Service struct { |
| client *http.Client |
| BasePath string // API endpoint base URL |
| UserAgent string // optional additional User-Agent fragment |
| |
| Documents *DocumentsService |
| } |
| |
| func (s *Service) userAgent() string { |
| if s.UserAgent == "" { |
| return googleapi.UserAgent |
| } |
| return googleapi.UserAgent + " " + s.UserAgent |
| } |
| |
| func NewDocumentsService(s *Service) *DocumentsService { |
| rs := &DocumentsService{s: s} |
| return rs |
| } |
| |
| type DocumentsService struct { |
| s *Service |
| } |
| |
| // AutoText: A ParagraphElement representing a |
| // spot in the text that is dynamically replaced with content that can |
| // change |
| // over time, like a page number. |
| type AutoText struct { |
| // SuggestedDeletionIds: The suggested deletion IDs. If empty, then |
| // there are no suggested deletions |
| // of this content. |
| SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"` |
| |
| // SuggestedInsertionIds: The suggested insertion IDs. An AutoText |
| // may have multiple insertion IDs if it is a nested suggested change. |
| // If |
| // empty, then this is not a suggested insertion. |
| SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"` |
| |
| // SuggestedTextStyleChanges: The suggested text style changes to this |
| // AutoText, keyed by suggestion ID. |
| SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"` |
| |
| // TextStyle: The text style of this AutoText. |
| TextStyle *TextStyle `json:"textStyle,omitempty"` |
| |
| // Type: The type of this auto text. |
| // |
| // Possible values: |
| // "TYPE_UNSPECIFIED" - An unspecified auto text type. |
| // "PAGE_NUMBER" - Type for auto text that represents the current page |
| // number. |
| // "PAGE_COUNT" - Type for auto text that represents the total number |
| // of pages in the |
| // document. |
| Type string `json:"type,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "SuggestedDeletionIds") 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. "SuggestedDeletionIds") 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 *AutoText) MarshalJSON() ([]byte, error) { |
| type NoMethod AutoText |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Background: Represents the background of a document. |
| type Background struct { |
| // Color: The background color. |
| Color *OptionalColor `json:"color,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Color") 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. "Color") 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 *Background) MarshalJSON() ([]byte, error) { |
| type NoMethod Background |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // BackgroundSuggestionState: A mask that indicates which of the fields |
| // on the base Background have been changed in this suggestion. |
| // For any field set to true, the Backgound has a new suggested value. |
| type BackgroundSuggestionState struct { |
| // BackgroundColorSuggested: Indicates whether the current background |
| // color has been modified in this |
| // suggestion. |
| BackgroundColorSuggested bool `json:"backgroundColorSuggested,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "BackgroundColorSuggested") 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. "BackgroundColorSuggested") |
| // 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 *BackgroundSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod BackgroundSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // BatchUpdateDocumentRequest: Request message for BatchUpdateDocument. |
| type BatchUpdateDocumentRequest struct { |
| // Requests: A list of updates to apply to the document. |
| Requests []*Request `json:"requests,omitempty"` |
| |
| // WriteControl: Provides control over how write requests are executed. |
| WriteControl *WriteControl `json:"writeControl,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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 *BatchUpdateDocumentRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod BatchUpdateDocumentRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // BatchUpdateDocumentResponse: Response message from a |
| // BatchUpdateDocument request. |
| type BatchUpdateDocumentResponse struct { |
| // DocumentId: The ID of the document to which the updates were applied |
| // to. |
| DocumentId string `json:"documentId,omitempty"` |
| |
| // Replies: The reply of the updates. This maps 1:1 with the updates, |
| // although replies |
| // to some requests may be empty. |
| Replies []*Response `json:"replies,omitempty"` |
| |
| // WriteControl: The updated write control after applying the request. |
| WriteControl *WriteControl `json:"writeControl,omitempty"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // ForceSendFields is a list of field names (e.g. "DocumentId") 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. "DocumentId") 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 *BatchUpdateDocumentResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod BatchUpdateDocumentResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Body: The document body. |
| // |
| // The body typically contains the full document contents except |
| // for |
| // headers, footers |
| // and footnotes. |
| type Body struct { |
| // Content: The contents of the body. |
| // |
| // The indexes for the body's content begin at zero. |
| Content []*StructuralElement `json:"content,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 *Body) MarshalJSON() ([]byte, error) { |
| type NoMethod Body |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Bullet: Describes the bullet of a paragraph. |
| type Bullet struct { |
| // ListId: The ID of the list this paragraph belongs to. |
| ListId string `json:"listId,omitempty"` |
| |
| // NestingLevel: The nesting level of this paragraph in the list. |
| NestingLevel int64 `json:"nestingLevel,omitempty"` |
| |
| // TextStyle: The paragraph specific text style applied to this bullet. |
| TextStyle *TextStyle `json:"textStyle,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "ListId") 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. "ListId") 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 *Bullet) MarshalJSON() ([]byte, error) { |
| type NoMethod Bullet |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // BulletSuggestionState: A mask that indicates which of the fields on |
| // the base |
| // Bullet have been changed in this suggestion. |
| // For any field set to true, there is a new suggested value. |
| type BulletSuggestionState struct { |
| // ListIdSuggested: Indicates if there was a suggested change to |
| // the |
| // list_id. |
| ListIdSuggested bool `json:"listIdSuggested,omitempty"` |
| |
| // NestingLevelSuggested: Indicates if there was a suggested change to |
| // the |
| // nesting_level. |
| NestingLevelSuggested bool `json:"nestingLevelSuggested,omitempty"` |
| |
| // TextStyleSuggestionState: A mask that indicates which of the fields |
| // in text style have been changed in this |
| // suggestion. |
| TextStyleSuggestionState *TextStyleSuggestionState `json:"textStyleSuggestionState,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "ListIdSuggested") 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. "ListIdSuggested") 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 *BulletSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod BulletSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Color: A solid color. |
| type Color struct { |
| // RgbColor: The RGB color value. |
| RgbColor *RgbColor `json:"rgbColor,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "RgbColor") 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. "RgbColor") 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 *Color) MarshalJSON() ([]byte, error) { |
| type NoMethod Color |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // ColumnBreak: A ParagraphElement representing a |
| // column break. A column break makes the subsequent text start at the |
| // top of |
| // the next column. |
| type ColumnBreak struct { |
| // SuggestedDeletionIds: The suggested deletion IDs. If empty, then |
| // there are no suggested deletions |
| // of this content. |
| SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"` |
| |
| // SuggestedInsertionIds: The suggested insertion IDs. A ColumnBreak may |
| // have multiple insertion IDs if it is |
| // a nested suggested change. If empty, then this is not a |
| // suggested |
| // insertion. |
| SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"` |
| |
| // SuggestedTextStyleChanges: The suggested text style changes to this |
| // ColumnBreak, keyed by suggestion |
| // ID. |
| SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"` |
| |
| // TextStyle: The text style of this ColumnBreak. |
| // |
| // Similar to text content, like text runs and footnote references, the |
| // text |
| // style of a column break can affect content layout as well as the |
| // styling of |
| // text inserted adjacent to it. |
| TextStyle *TextStyle `json:"textStyle,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "SuggestedDeletionIds") 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. "SuggestedDeletionIds") 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 *ColumnBreak) MarshalJSON() ([]byte, error) { |
| type NoMethod ColumnBreak |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CreateFooterRequest: Creates a Footer. The new footer will be |
| // applied to the DocumentStyle. |
| // |
| // If a footer of the specified type already exists then a 400 bad |
| // request error |
| // will be returned. |
| type CreateFooterRequest struct { |
| // Type: The type of footer to create. |
| // |
| // Possible values: |
| // "HEADER_FOOTER_TYPE_UNSPECIFIED" - The header/footer type is |
| // unspecified. |
| // "DEFAULT" - A default header/footer. |
| Type string `json:"type,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 *CreateFooterRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod CreateFooterRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CreateFooterResponse: The result of creating a footer. |
| type CreateFooterResponse struct { |
| // FooterId: The ID of the created footer. |
| FooterId string `json:"footerId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "FooterId") 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. "FooterId") 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 *CreateFooterResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod CreateFooterResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CreateHeaderRequest: Creates a Header. The new header will be |
| // applied to the DocumentStyle. |
| // |
| // If a header of the specified type already exists then a 400 bad |
| // request error |
| // will be returned. |
| type CreateHeaderRequest struct { |
| // Type: The type of header to create. |
| // |
| // Possible values: |
| // "HEADER_FOOTER_TYPE_UNSPECIFIED" - The header/footer type is |
| // unspecified. |
| // "DEFAULT" - A default header/footer. |
| Type string `json:"type,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 *CreateHeaderRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod CreateHeaderRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CreateHeaderResponse: The result of creating a header. |
| type CreateHeaderResponse struct { |
| // HeaderId: The ID of the created header. |
| HeaderId string `json:"headerId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "HeaderId") 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. "HeaderId") 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 *CreateHeaderResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod CreateHeaderResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CreateNamedRangeRequest: Creates a NamedRange referencing the |
| // given |
| // range. |
| type CreateNamedRangeRequest struct { |
| // Name: The name of the NamedRange. Names do not need to be |
| // unique. |
| // |
| // Names must be at least 1 character and no more than 256 |
| // characters, |
| // measured in UTF-16 code units. |
| Name string `json:"name,omitempty"` |
| |
| // Range: The range to apply the name to. |
| Range *Range `json:"range,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *CreateNamedRangeRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod CreateNamedRangeRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CreateNamedRangeResponse: The result of creating a named range. |
| type CreateNamedRangeResponse struct { |
| // NamedRangeId: The ID of the created named range. |
| NamedRangeId string `json:"namedRangeId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "NamedRangeId") 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. "NamedRangeId") 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 *CreateNamedRangeResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod CreateNamedRangeResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CreateParagraphBulletsRequest: Creates bullets for all of the |
| // paragraphs that overlap with the given range. |
| // |
| // The nesting level of each paragraph will be determined by counting |
| // leading |
| // tabs in front of each paragraph. To avoid excess space between the |
| // bullet and |
| // the corresponding paragraph, these leading tabs are removed by this |
| // request. |
| // This may change the indices of parts of the text. |
| // |
| // If the paragraph immediately before paragraphs being updated is in a |
| // list |
| // with a matching preset, the paragraphs being updated are added to |
| // that |
| // preceding list. |
| type CreateParagraphBulletsRequest struct { |
| // BulletPreset: The kinds of bullet glyphs to be used. |
| // |
| // Possible values: |
| // "BULLET_GLYPH_PRESET_UNSPECIFIED" - The bullet glyph preset is |
| // unspecified. |
| // "BULLET_DISC_CIRCLE_SQUARE" - A bulleted list with a `DISC`, |
| // `CIRCLE` and `SQUARE` bullet glyph for the |
| // first 3 list nesting levels. |
| // "BULLET_DIAMONDX_ARROW3D_SQUARE" - A bulleted list with a |
| // `DIAMONDX`, `ARROW3D` and `SQUARE` bullet glyph for |
| // the first 3 list nesting levels. |
| // "BULLET_CHECKBOX" - A bulleted list with `CHECKBOX` bullet glyphs |
| // for all list nesting levels. |
| // "BULLET_ARROW_DIAMOND_DISC" - A bulleted list with a `ARROW`, |
| // `DIAMOND` and `DISC` bullet glyph for |
| // the first 3 list nesting levels. |
| // "BULLET_STAR_CIRCLE_SQUARE" - A bulleted list with a `STAR`, |
| // `CIRCLE` and `SQUARE` bullet glyph for |
| // the first 3 list nesting levels. |
| // "BULLET_ARROW3D_CIRCLE_SQUARE" - A bulleted list with a `ARROW3D`, |
| // `CIRCLE` and `SQUARE` bullet glyph for |
| // the first 3 list nesting levels. |
| // "BULLET_LEFTTRIANGLE_DIAMOND_DISC" - A bulleted list with a |
| // `LEFTTRIANGLE`, `DIAMOND` and `DISC` bullet glyph |
| // for the first 3 list nesting levels. |
| // "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE" - A bulleted list with a |
| // `DIAMONDX`, `HOLLOWDIAMOND` and `SQUARE` bullet |
| // glyph for the first 3 list nesting levels. |
| // "BULLET_DIAMOND_CIRCLE_SQUARE" - A bulleted list with a `DIAMOND`, |
| // `CIRCLE` and `SQUARE` bullet glyph |
| // for the first 3 list nesting levels. |
| // "NUMBERED_DECIMAL_ALPHA_ROMAN" - A numbered list with `DECIMAL`, |
| // `ALPHA` and `ROMAN` numeric glyphs for |
| // the first 3 list nesting levels, followed by periods. |
| // "NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS" - A numbered list with |
| // `DECIMAL`, `ALPHA` and `ROMAN` numeric glyphs for |
| // the first 3 list nesting levels, followed by parenthesis. |
| // "NUMBERED_DECIMAL_NESTED" - A numbered list with `DECIMAL` numeric |
| // glyphs separated by periods, where |
| // each nesting level uses the previous nesting level's glyph as a |
| // prefix. |
| // For example: '1.', '1.1.', '2.', '2.2.'. |
| // "NUMBERED_UPPERALPHA_ALPHA_ROMAN" - A numbered list with |
| // `UPPERALPHA`, `ALPHA` and `ROMAN` numeric glyphs for |
| // the first 3 list nesting levels, followed by periods. |
| // "NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL" - A numbered list with |
| // `UPPERROMAN`, `UPPERALPHA` and `DECIMAL` numeric |
| // glyphs for the first 3 list nesting levels, followed by periods. |
| // "NUMBERED_ZERODECIMAL_ALPHA_ROMAN" - A numbered list with |
| // `ZERODECIMAL`, `ALPHA` and `ROMAN` numeric glyphs for |
| // the first 3 list nesting levels, followed by periods. |
| BulletPreset string `json:"bulletPreset,omitempty"` |
| |
| // Range: The range to apply the bullet preset to. |
| Range *Range `json:"range,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "BulletPreset") 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. "BulletPreset") 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 *CreateParagraphBulletsRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod CreateParagraphBulletsRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CropProperties: The crop properties of an image. |
| // |
| // The crop rectangle is represented using fractional offsets from the |
| // original |
| // content's four edges. |
| // |
| // - If the offset is in the interval (0, 1), the corresponding edge of |
| // crop |
| // rectangle is positioned inside of the image's original bounding |
| // rectangle. |
| // - If the offset is negative or greater than 1, the corresponding edge |
| // of crop |
| // rectangle is positioned outside of the image's original bounding |
| // rectangle. |
| // - If all offsets and rotation angle are 0, the image is not cropped. |
| type CropProperties struct { |
| // Angle: The clockwise rotation angle of the crop rectangle around its |
| // center, in |
| // radians. Rotation is applied after the offsets. |
| Angle float64 `json:"angle,omitempty"` |
| |
| // OffsetBottom: The offset specifies how far inwards the bottom edge of |
| // the crop rectangle |
| // is from the bottom edge of the original content as a fraction of |
| // the |
| // original content's height. |
| OffsetBottom float64 `json:"offsetBottom,omitempty"` |
| |
| // OffsetLeft: The offset specifies how far inwards the left edge of the |
| // crop rectangle is |
| // from the left edge of the original content as a fraction of the |
| // original |
| // content's width. |
| OffsetLeft float64 `json:"offsetLeft,omitempty"` |
| |
| // OffsetRight: The offset specifies how far inwards the right edge of |
| // the crop rectangle |
| // is from the right edge of the original content as a fraction of |
| // the |
| // original content's width. |
| OffsetRight float64 `json:"offsetRight,omitempty"` |
| |
| // OffsetTop: The offset specifies how far inwards the top edge of the |
| // crop rectangle is |
| // from the top edge of the original content as a fraction of the |
| // original |
| // content's height. |
| OffsetTop float64 `json:"offsetTop,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Angle") 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. "Angle") 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 *CropProperties) MarshalJSON() ([]byte, error) { |
| type NoMethod CropProperties |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| func (s *CropProperties) UnmarshalJSON(data []byte) error { |
| type NoMethod CropProperties |
| var s1 struct { |
| Angle gensupport.JSONFloat64 `json:"angle"` |
| OffsetBottom gensupport.JSONFloat64 `json:"offsetBottom"` |
| OffsetLeft gensupport.JSONFloat64 `json:"offsetLeft"` |
| OffsetRight gensupport.JSONFloat64 `json:"offsetRight"` |
| OffsetTop gensupport.JSONFloat64 `json:"offsetTop"` |
| *NoMethod |
| } |
| s1.NoMethod = (*NoMethod)(s) |
| if err := json.Unmarshal(data, &s1); err != nil { |
| return err |
| } |
| s.Angle = float64(s1.Angle) |
| s.OffsetBottom = float64(s1.OffsetBottom) |
| s.OffsetLeft = float64(s1.OffsetLeft) |
| s.OffsetRight = float64(s1.OffsetRight) |
| s.OffsetTop = float64(s1.OffsetTop) |
| return nil |
| } |
| |
| // CropPropertiesSuggestionState: A mask that indicates which of the |
| // fields on the base CropProperties have been changed in this |
| // suggestion. |
| // For any field set to true, there is a new suggested value. |
| type CropPropertiesSuggestionState struct { |
| // AngleSuggested: Indicates if there was a suggested change to angle. |
| AngleSuggested bool `json:"angleSuggested,omitempty"` |
| |
| // OffsetBottomSuggested: Indicates if there was a suggested change to |
| // offset_bottom. |
| OffsetBottomSuggested bool `json:"offsetBottomSuggested,omitempty"` |
| |
| // OffsetLeftSuggested: Indicates if there was a suggested change to |
| // offset_left. |
| OffsetLeftSuggested bool `json:"offsetLeftSuggested,omitempty"` |
| |
| // OffsetRightSuggested: Indicates if there was a suggested change to |
| // offset_right. |
| OffsetRightSuggested bool `json:"offsetRightSuggested,omitempty"` |
| |
| // OffsetTopSuggested: Indicates if there was a suggested change to |
| // offset_top. |
| OffsetTopSuggested bool `json:"offsetTopSuggested,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "AngleSuggested") 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. "AngleSuggested") 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 *CropPropertiesSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod CropPropertiesSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // DeleteContentRangeRequest: Deletes content from the document. |
| type DeleteContentRangeRequest struct { |
| // Range: The range of content to delete. |
| // |
| // Deleting text that crosses a paragraph boundary may result in |
| // changes |
| // to paragraph styles, lists, positioned objects and bookmarks as the |
| // two |
| // paragraphs are merged. |
| // |
| // Attempting to delete certain ranges can result in an invalid |
| // document |
| // structure in which case a 400 bad request error is returned. |
| // |
| // Some examples of invalid delete requests include: |
| // |
| // * Deleting one code unit of a surrogate pair. |
| // * Deleting the last newline character of a Body, Header, |
| // Footer, Footnote, TableCell or TableOfContents. |
| // * Deleting the start or end of a Table, |
| // TableOfContents or Equation without deleting the entire element. |
| // * Deleting the newline character before a |
| // Table, |
| // TableOfContents or |
| // SectionBreak without deleting the |
| // element. |
| // * Deleting individual rows or cells of a table. Deleting the content |
| // within |
| // a table cell is allowed. |
| Range *Range `json:"range,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Range") 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. "Range") 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 *DeleteContentRangeRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod DeleteContentRangeRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // DeleteNamedRangeRequest: Deletes a NamedRange. |
| type DeleteNamedRangeRequest struct { |
| // Name: The name of the range(s) to delete. All named ranges with the |
| // given |
| // name will be deleted. |
| Name string `json:"name,omitempty"` |
| |
| // NamedRangeId: The ID of the named range to delete. |
| NamedRangeId string `json:"namedRangeId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *DeleteNamedRangeRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod DeleteNamedRangeRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // DeleteParagraphBulletsRequest: Deletes bullets from all of the |
| // paragraphs that overlap with the given range. |
| // |
| // The nesting level of each paragraph will be visually preserved by |
| // adding |
| // indent to the start of the corresponding paragraph. |
| type DeleteParagraphBulletsRequest struct { |
| // Range: The range to delete bullets from. |
| Range *Range `json:"range,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Range") 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. "Range") 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 *DeleteParagraphBulletsRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod DeleteParagraphBulletsRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // DeletePositionedObjectRequest: Deletes a PositionedObject from |
| // the |
| // document. |
| type DeletePositionedObjectRequest struct { |
| // ObjectId: The ID of the positioned object to delete. |
| ObjectId string `json:"objectId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "ObjectId") 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. "ObjectId") 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 *DeletePositionedObjectRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod DeletePositionedObjectRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // DeleteTableColumnRequest: Deletes a column from a table. |
| type DeleteTableColumnRequest struct { |
| // TableCellLocation: The reference table cell location from which the |
| // column will be deleted. |
| // |
| // The column this cell spans will be deleted. If this is a merged cell |
| // that |
| // spans multiple columns, all columns that the cell spans will be |
| // deleted. If |
| // no columns remain in the table after this deletion, the whole table |
| // is |
| // deleted. |
| TableCellLocation *TableCellLocation `json:"tableCellLocation,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "TableCellLocation") |
| // 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. "TableCellLocation") 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 *DeleteTableColumnRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod DeleteTableColumnRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // DeleteTableRowRequest: Deletes a row from a table. |
| type DeleteTableRowRequest struct { |
| // TableCellLocation: The reference table cell location from which the |
| // row will be deleted. |
| // |
| // The row this cell spans will be deleted. If this is a merged cell |
| // that |
| // spans multiple rows, all rows that the cell spans will be deleted. If |
| // no |
| // rows remain in the table after this deletion, the whole table is |
| // deleted. |
| TableCellLocation *TableCellLocation `json:"tableCellLocation,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "TableCellLocation") |
| // 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. "TableCellLocation") 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 *DeleteTableRowRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod DeleteTableRowRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Dimension: A magnitude in a single direction in the specified units. |
| type Dimension struct { |
| // Magnitude: The magnitude. |
| Magnitude float64 `json:"magnitude,omitempty"` |
| |
| // Unit: The units for magnitude. |
| // |
| // Possible values: |
| // "UNIT_UNSPECIFIED" - The units are unknown. |
| // "PT" - A point, 1/72 of an inch. |
| Unit string `json:"unit,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Magnitude") 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. "Magnitude") 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 *Dimension) MarshalJSON() ([]byte, error) { |
| type NoMethod Dimension |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| func (s *Dimension) UnmarshalJSON(data []byte) error { |
| type NoMethod Dimension |
| var s1 struct { |
| Magnitude gensupport.JSONFloat64 `json:"magnitude"` |
| *NoMethod |
| } |
| s1.NoMethod = (*NoMethod)(s) |
| if err := json.Unmarshal(data, &s1); err != nil { |
| return err |
| } |
| s.Magnitude = float64(s1.Magnitude) |
| return nil |
| } |
| |
| // Document: A Google Docs document. |
| type Document struct { |
| // Body: Output only. The main body of the document. |
| Body *Body `json:"body,omitempty"` |
| |
| // DocumentId: Output only. The ID of the document. |
| DocumentId string `json:"documentId,omitempty"` |
| |
| // DocumentStyle: Output only. The style of the document. |
| DocumentStyle *DocumentStyle `json:"documentStyle,omitempty"` |
| |
| // Footers: Output only. The footers in the document, keyed by footer |
| // ID. |
| Footers map[string]Footer `json:"footers,omitempty"` |
| |
| // Footnotes: Output only. The footnotes in the document, keyed by |
| // footnote ID. |
| Footnotes map[string]Footnote `json:"footnotes,omitempty"` |
| |
| // Headers: Output only. The headers in the document, keyed by header |
| // ID. |
| Headers map[string]Header `json:"headers,omitempty"` |
| |
| // InlineObjects: Output only. The inline objects in the document, keyed |
| // by object ID. |
| InlineObjects map[string]InlineObject `json:"inlineObjects,omitempty"` |
| |
| // Lists: Output only. The lists in the document, keyed by list ID. |
| Lists map[string]List `json:"lists,omitempty"` |
| |
| // NamedRanges: Output only. The named ranges in the document, keyed by |
| // name. |
| NamedRanges map[string]NamedRanges `json:"namedRanges,omitempty"` |
| |
| // NamedStyles: Output only. The named styles of the document. |
| NamedStyles *NamedStyles `json:"namedStyles,omitempty"` |
| |
| // PositionedObjects: Output only. The positioned objects in the |
| // document, keyed by object ID. |
| PositionedObjects map[string]PositionedObject `json:"positionedObjects,omitempty"` |
| |
| // RevisionId: Output only. The revision ID of the document. Can be used |
| // in update |
| // requests to specify which revision of a document to apply updates to |
| // and |
| // how the request should behave if the document has been edited since |
| // that |
| // revision. Only populated if the user has edit access to the |
| // document. |
| // |
| // The format of the revision ID may change over time, so it should be |
| // treated |
| // opaquely. A returned revision ID is only guaranteed to be valid for |
| // 24 |
| // hours after it has been returned and cannot be shared across users. |
| // If the |
| // revision ID is unchanged between calls, then the document has not |
| // changed. |
| // Conversely, a changed ID (for the same document and user) usually |
| // means the |
| // document has been updated; however, a changed ID can also be due |
| // to |
| // internal factors such as ID format changes. |
| RevisionId string `json:"revisionId,omitempty"` |
| |
| // SuggestedDocumentStyleChanges: Output only. The suggested changes to |
| // the style of the document, keyed by |
| // suggestion ID. |
| SuggestedDocumentStyleChanges map[string]SuggestedDocumentStyle `json:"suggestedDocumentStyleChanges,omitempty"` |
| |
| // SuggestedNamedStylesChanges: Output only. The suggested changes to |
| // the named styles of the document, |
| // keyed by suggestion ID. |
| SuggestedNamedStylesChanges map[string]SuggestedNamedStyles `json:"suggestedNamedStylesChanges,omitempty"` |
| |
| // SuggestionsViewMode: Output only. The suggestions view mode applied |
| // to the document. |
| // |
| // Note: When editing a document, changes must be based on a document |
| // with |
| // SUGGESTIONS_INLINE. |
| // |
| // Possible values: |
| // "DEFAULT_FOR_CURRENT_ACCESS" - The SuggestionsViewMode applied to |
| // the returned document depends on the |
| // user's current access level. If the user only has view |
| // access, |
| // PREVIEW_WITHOUT_SUGGESTIONS is |
| // applied. Otherwise, SUGGESTIONS_INLINE is applied. |
| // This is the default suggestions view mode. |
| // "SUGGESTIONS_INLINE" - The returned document has suggestions |
| // inline. Suggested changes will be |
| // differentiated from base content within the document. |
| // |
| // Requests to retrieve a document using this mode will return a 403 |
| // error if |
| // the user does not have permission to view suggested changes. |
| // "PREVIEW_SUGGESTIONS_ACCEPTED" - The returned document is a preview |
| // with all suggested changes accepted. |
| // |
| // Requests to retrieve a document using this mode will return a 403 |
| // error if |
| // the user does not have permission to view suggested changes. |
| // "PREVIEW_WITHOUT_SUGGESTIONS" - The returned document is a preview |
| // with all suggested changes rejected if |
| // there are any suggestions in the document. |
| SuggestionsViewMode string `json:"suggestionsViewMode,omitempty"` |
| |
| // Title: The title of the document. |
| 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 *Document) MarshalJSON() ([]byte, error) { |
| type NoMethod Document |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // DocumentStyle: The style of the document. |
| type DocumentStyle struct { |
| // Background: The background of the document. Documents cannot have a |
| // transparent |
| // background color. |
| Background *Background `json:"background,omitempty"` |
| |
| // DefaultFooterId: The ID of the default footer. If not set, there is |
| // no default footer. |
| // |
| // This property is read-only. |
| DefaultFooterId string `json:"defaultFooterId,omitempty"` |
| |
| // DefaultHeaderId: The ID of the default header. If not set, there is |
| // no default header. |
| // |
| // This property is read-only. |
| DefaultHeaderId string `json:"defaultHeaderId,omitempty"` |
| |
| // EvenPageFooterId: The ID of the footer used only for even pages. The |
| // value of |
| // use_even_page_header_footer determines |
| // whether to use the default_footer_id or this value for the |
| // footer on even pages. If not set, there is no even page footer. |
| // |
| // This property is read-only. |
| EvenPageFooterId string `json:"evenPageFooterId,omitempty"` |
| |
| // EvenPageHeaderId: The ID of the header used only for even pages. The |
| // value of |
| // use_even_page_header_footer determines |
| // whether to use the default_header_id or this value for the |
| // header on even pages. If not set, there is no even page header. |
| // |
| // This property is read-only. |
| EvenPageHeaderId string `json:"evenPageHeaderId,omitempty"` |
| |
| // FirstPageFooterId: The ID of the footer used only for the first page. |
| // If not set then |
| // a unique footer for the first page does not exist. The value |
| // of |
| // use_first_page_header_footer determines |
| // whether to use the default_footer_id or this value for the |
| // footer on the first page. If not set, there is no first page |
| // footer. |
| // |
| // This property is read-only. |
| FirstPageFooterId string `json:"firstPageFooterId,omitempty"` |
| |
| // FirstPageHeaderId: The ID of the header used only for the first page. |
| // If not set then |
| // a unique header for the first page does not exist. |
| // The value of use_first_page_header_footer determines |
| // whether to use the default_header_id or this value for the |
| // header on the first page. If not set, there is no first page |
| // header. |
| // |
| // This property is read-only. |
| FirstPageHeaderId string `json:"firstPageHeaderId,omitempty"` |
| |
| // MarginBottom: The bottom page margin. |
| // |
| // Updating the bottom page margin on the document style clears the |
| // bottom |
| // page margin on all section styles. |
| MarginBottom *Dimension `json:"marginBottom,omitempty"` |
| |
| // MarginLeft: The left page margin. |
| // |
| // Updating the left page margin on the document style clears the left |
| // page |
| // margin on all section styles. It may also cause columns to resize in |
| // all |
| // sections. |
| MarginLeft *Dimension `json:"marginLeft,omitempty"` |
| |
| // MarginRight: The right page margin. |
| // |
| // Updating the right page margin on the document style clears the right |
| // page |
| // margin on all section styles. It may also cause columns to resize in |
| // all |
| // sections. |
| MarginRight *Dimension `json:"marginRight,omitempty"` |
| |
| // MarginTop: The top page margin. |
| // |
| // Updating the top page margin on the document style clears the top |
| // page |
| // margin on all section styles. |
| MarginTop *Dimension `json:"marginTop,omitempty"` |
| |
| // PageNumberStart: The page number from which to start counting the |
| // number of pages. |
| PageNumberStart int64 `json:"pageNumberStart,omitempty"` |
| |
| // PageSize: The size of a page in the document. |
| PageSize *Size `json:"pageSize,omitempty"` |
| |
| // UseEvenPageHeaderFooter: Indicates whether to use the even page |
| // header / footer IDs for the even |
| // pages. |
| // |
| // This property is read-only. |
| UseEvenPageHeaderFooter bool `json:"useEvenPageHeaderFooter,omitempty"` |
| |
| // UseFirstPageHeaderFooter: Indicates whether to use the first page |
| // header / footer IDs for the first |
| // page. |
| // |
| // This property is read-only. |
| UseFirstPageHeaderFooter bool `json:"useFirstPageHeaderFooter,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Background") 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. "Background") 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 *DocumentStyle) MarshalJSON() ([]byte, error) { |
| type NoMethod DocumentStyle |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // DocumentStyleSuggestionState: A mask that indicates which of the |
| // fields on the base DocumentStyle have been changed in this |
| // suggestion. |
| // For any field set to true, there is a new suggested value. |
| type DocumentStyleSuggestionState struct { |
| // BackgroundSuggestionState: A mask that indicates which of the fields |
| // in background have been changed in this |
| // suggestion. |
| BackgroundSuggestionState *BackgroundSuggestionState `json:"backgroundSuggestionState,omitempty"` |
| |
| // DefaultFooterIdSuggested: Indicates if there was a suggested change |
| // to default_footer_id. |
| DefaultFooterIdSuggested bool `json:"defaultFooterIdSuggested,omitempty"` |
| |
| // DefaultHeaderIdSuggested: Indicates if there was a suggested change |
| // to default_header_id. |
| DefaultHeaderIdSuggested bool `json:"defaultHeaderIdSuggested,omitempty"` |
| |
| // EvenPageFooterIdSuggested: Indicates if there was a suggested change |
| // to even_page_footer_id. |
| EvenPageFooterIdSuggested bool `json:"evenPageFooterIdSuggested,omitempty"` |
| |
| // EvenPageHeaderIdSuggested: Indicates if there was a suggested change |
| // to even_page_header_id. |
| EvenPageHeaderIdSuggested bool `json:"evenPageHeaderIdSuggested,omitempty"` |
| |
| // FirstPageFooterIdSuggested: Indicates if there was a suggested change |
| // to first_page_footer_id. |
| FirstPageFooterIdSuggested bool `json:"firstPageFooterIdSuggested,omitempty"` |
| |
| // FirstPageHeaderIdSuggested: Indicates if there was a suggested change |
| // to first_page_header_id. |
| FirstPageHeaderIdSuggested bool `json:"firstPageHeaderIdSuggested,omitempty"` |
| |
| // MarginBottomSuggested: Indicates if there was a suggested change to |
| // margin_bottom. |
| MarginBottomSuggested bool `json:"marginBottomSuggested,omitempty"` |
| |
| // MarginLeftSuggested: Indicates if there was a suggested change to |
| // margin_left. |
| MarginLeftSuggested bool `json:"marginLeftSuggested,omitempty"` |
| |
| // MarginRightSuggested: Indicates if there was a suggested change to |
| // margin_right. |
| MarginRightSuggested bool `json:"marginRightSuggested,omitempty"` |
| |
| // MarginTopSuggested: Indicates if there was a suggested change to |
| // margin_top. |
| MarginTopSuggested bool `json:"marginTopSuggested,omitempty"` |
| |
| // PageNumberStartSuggested: Indicates if there was a suggested change |
| // to page_number_start. |
| PageNumberStartSuggested bool `json:"pageNumberStartSuggested,omitempty"` |
| |
| // PageSizeSuggestionState: A mask that indicates which of the fields in |
| // size have been changed in this |
| // suggestion. |
| PageSizeSuggestionState *SizeSuggestionState `json:"pageSizeSuggestionState,omitempty"` |
| |
| // UseEvenPageHeaderFooterSuggested: Indicates if there was a suggested |
| // change to use_even_page_header_footer. |
| UseEvenPageHeaderFooterSuggested bool `json:"useEvenPageHeaderFooterSuggested,omitempty"` |
| |
| // UseFirstPageHeaderFooterSuggested: Indicates if there was a suggested |
| // change to use_first_page_header_footer. |
| UseFirstPageHeaderFooterSuggested bool `json:"useFirstPageHeaderFooterSuggested,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "BackgroundSuggestionState") 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. |
| // "BackgroundSuggestionState") 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 *DocumentStyleSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod DocumentStyleSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EmbeddedDrawingProperties: The properties of an embedded drawing. |
| type EmbeddedDrawingProperties struct { |
| } |
| |
| // EmbeddedDrawingPropertiesSuggestionState: A mask that indicates which |
| // of the fields on the base |
| // EmbeddedDrawingProperties |
| // have been changed in this suggestion. For any field set to true, |
| // there is a |
| // new suggested value. |
| type EmbeddedDrawingPropertiesSuggestionState struct { |
| } |
| |
| // EmbeddedObject: An embedded object in the document. |
| type EmbeddedObject struct { |
| // Description: The description of the embedded object. The `title` and |
| // `description` are |
| // both combined to display alt text. |
| Description string `json:"description,omitempty"` |
| |
| // EmbeddedDrawingProperties: The properties of an embedded drawing. |
| EmbeddedDrawingProperties *EmbeddedDrawingProperties `json:"embeddedDrawingProperties,omitempty"` |
| |
| // EmbeddedObjectBorder: The border of the embedded object. |
| EmbeddedObjectBorder *EmbeddedObjectBorder `json:"embeddedObjectBorder,omitempty"` |
| |
| // ImageProperties: The properties of an image. |
| ImageProperties *ImageProperties `json:"imageProperties,omitempty"` |
| |
| // LinkedContentReference: A reference to the external linked source |
| // content. For example, it contains |
| // a reference to the source Sheets chart when the embedded object is a |
| // linked |
| // chart. |
| // |
| // If unset, then the embedded object is not linked. |
| LinkedContentReference *LinkedContentReference `json:"linkedContentReference,omitempty"` |
| |
| // MarginBottom: The bottom margin of the embedded object. |
| MarginBottom *Dimension `json:"marginBottom,omitempty"` |
| |
| // MarginLeft: The left margin of the embedded object. |
| MarginLeft *Dimension `json:"marginLeft,omitempty"` |
| |
| // MarginRight: The right margin of the embedded object. |
| MarginRight *Dimension `json:"marginRight,omitempty"` |
| |
| // MarginTop: The top margin of the embedded object. |
| MarginTop *Dimension `json:"marginTop,omitempty"` |
| |
| // Size: The visible size of the image after cropping. |
| Size *Size `json:"size,omitempty"` |
| |
| // Title: The title of the embedded object. The `title` and |
| // `description` are both |
| // combined to display alt text. |
| Title string `json:"title,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 *EmbeddedObject) MarshalJSON() ([]byte, error) { |
| type NoMethod EmbeddedObject |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EmbeddedObjectBorder: A border around an EmbeddedObject. |
| type EmbeddedObjectBorder struct { |
| // Color: The color of the border. |
| Color *OptionalColor `json:"color,omitempty"` |
| |
| // DashStyle: The dash style of the border. |
| // |
| // Possible values: |
| // "DASH_STYLE_UNSPECIFIED" - Unspecified dash style. |
| // "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal |
| // value 'solid'. |
| // This is the default dash style. |
| // "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal |
| // value 'dot'. |
| // "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal |
| // value 'dash'. |
| DashStyle string `json:"dashStyle,omitempty"` |
| |
| // PropertyState: The property state of the border property. |
| // |
| // Possible values: |
| // "RENDERED" - If a property's state is RENDERED, then the element |
| // has the corresponding |
| // property when rendered in the document. This is the default value. |
| // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the |
| // element does not have the |
| // corresponding property when rendered in the document. |
| PropertyState string `json:"propertyState,omitempty"` |
| |
| // Width: The width of the border. |
| Width *Dimension `json:"width,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Color") 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. "Color") 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 *EmbeddedObjectBorder) MarshalJSON() ([]byte, error) { |
| type NoMethod EmbeddedObjectBorder |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EmbeddedObjectBorderSuggestionState: A mask that indicates which of |
| // the fields on the base EmbeddedObjectBorder have been changed in |
| // this |
| // suggestion. For any field set to true, there is a new suggested |
| // value. |
| type EmbeddedObjectBorderSuggestionState struct { |
| // ColorSuggested: Indicates if there was a suggested change to color. |
| ColorSuggested bool `json:"colorSuggested,omitempty"` |
| |
| // DashStyleSuggested: Indicates if there was a suggested change to |
| // dash_style. |
| DashStyleSuggested bool `json:"dashStyleSuggested,omitempty"` |
| |
| // PropertyStateSuggested: Indicates if there was a suggested change to |
| // property_state. |
| PropertyStateSuggested bool `json:"propertyStateSuggested,omitempty"` |
| |
| // WidthSuggested: Indicates if there was a suggested change to width. |
| WidthSuggested bool `json:"widthSuggested,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "ColorSuggested") 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. "ColorSuggested") 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 *EmbeddedObjectBorderSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod EmbeddedObjectBorderSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EmbeddedObjectSuggestionState: A mask that indicates which of the |
| // fields on the base EmbeddedObject have been changed in this |
| // suggestion. |
| // For any field set to true, there is a new suggested value. |
| type EmbeddedObjectSuggestionState struct { |
| // DescriptionSuggested: Indicates if there was a suggested change to |
| // description. |
| DescriptionSuggested bool `json:"descriptionSuggested,omitempty"` |
| |
| // EmbeddedDrawingPropertiesSuggestionState: A mask that indicates which |
| // of the fields in embedded_drawing_properties have been |
| // changed in this suggestion. |
| EmbeddedDrawingPropertiesSuggestionState *EmbeddedDrawingPropertiesSuggestionState `json:"embeddedDrawingPropertiesSuggestionState,omitempty"` |
| |
| // EmbeddedObjectBorderSuggestionState: A mask that indicates which of |
| // the fields in embedded_object_border have been |
| // changed in this suggestion. |
| EmbeddedObjectBorderSuggestionState *EmbeddedObjectBorderSuggestionState `json:"embeddedObjectBorderSuggestionState,omitempty"` |
| |
| // ImagePropertiesSuggestionState: A mask that indicates which of the |
| // fields in image_properties have been changed in |
| // this suggestion. |
| ImagePropertiesSuggestionState *ImagePropertiesSuggestionState `json:"imagePropertiesSuggestionState,omitempty"` |
| |
| // LinkedContentReferenceSuggestionState: A mask that indicates which of |
| // the fields in linked_content_reference have been |
| // changed in this suggestion. |
| LinkedContentReferenceSuggestionState *LinkedContentReferenceSuggestionState `json:"linkedContentReferenceSuggestionState,omitempty"` |
| |
| // MarginBottomSuggested: Indicates if there was a suggested change to |
| // margin_bottom. |
| MarginBottomSuggested bool `json:"marginBottomSuggested,omitempty"` |
| |
| // MarginLeftSuggested: Indicates if there was a suggested change to |
| // margin_left. |
| MarginLeftSuggested bool `json:"marginLeftSuggested,omitempty"` |
| |
| // MarginRightSuggested: Indicates if there was a suggested change to |
| // margin_right. |
| MarginRightSuggested bool `json:"marginRightSuggested,omitempty"` |
| |
| // MarginTopSuggested: Indicates if there was a suggested change to |
| // margin_top. |
| MarginTopSuggested bool `json:"marginTopSuggested,omitempty"` |
| |
| // SizeSuggestionState: A mask that indicates which of the fields in |
| // size have been changed in this |
| // suggestion. |
| SizeSuggestionState *SizeSuggestionState `json:"sizeSuggestionState,omitempty"` |
| |
| // TitleSuggested: Indicates if there was a suggested change to title. |
| TitleSuggested bool `json:"titleSuggested,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "DescriptionSuggested") 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. "DescriptionSuggested") 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 *EmbeddedObjectSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod EmbeddedObjectSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EndOfSegmentLocation: Location at the end of a body, header, footer |
| // or footnote. The location is |
| // immediately before the last newline in the document segment. |
| type EndOfSegmentLocation struct { |
| // SegmentId: The ID of the header, footer or footnote the location is |
| // in. An empty |
| // segment ID signifies the document's body. |
| SegmentId string `json:"segmentId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "SegmentId") 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. "SegmentId") 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 *EndOfSegmentLocation) MarshalJSON() ([]byte, error) { |
| type NoMethod EndOfSegmentLocation |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Equation: A ParagraphElement representing an |
| // equation. |
| type Equation struct { |
| // SuggestedDeletionIds: The suggested deletion IDs. If empty, then |
| // there are no suggested deletions |
| // of this content. |
| SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"` |
| |
| // SuggestedInsertionIds: The suggested insertion IDs. A Equation |
| // may have multiple insertion IDs if it is a nested suggested change. |
| // If |
| // empty, then this is not a suggested insertion. |
| SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "SuggestedDeletionIds") 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. "SuggestedDeletionIds") 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 *Equation) MarshalJSON() ([]byte, error) { |
| type NoMethod Equation |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Footer: A document footer. |
| type Footer struct { |
| // Content: The contents of the footer. |
| // |
| // The indexes for a footer's content begin at zero. |
| Content []*StructuralElement `json:"content,omitempty"` |
| |
| // FooterId: The ID of the footer. |
| FooterId string `json:"footerId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 *Footer) MarshalJSON() ([]byte, error) { |
| type NoMethod Footer |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Footnote: A document footnote. |
| type Footnote struct { |
| // Content: The contents of the footnote. |
| // |
| // The indexes for a footnote's content begin at zero. |
| Content []*StructuralElement `json:"content,omitempty"` |
| |
| // FootnoteId: The ID of the footnote. |
| FootnoteId string `json:"footnoteId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 *Footnote) MarshalJSON() ([]byte, error) { |
| type NoMethod Footnote |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // FootnoteReference: A ParagraphElement representing a |
| // footnote reference. A footnote reference is the inline content |
| // rendered with |
| // a number and is used to identify the footnote. |
| type FootnoteReference struct { |
| // FootnoteId: The ID of the footnote that |
| // contains the content of this footnote reference. |
| FootnoteId string `json:"footnoteId,omitempty"` |
| |
| // FootnoteNumber: The rendered number of this footnote. |
| FootnoteNumber string `json:"footnoteNumber,omitempty"` |
| |
| // SuggestedDeletionIds: The suggested deletion IDs. If empty, then |
| // there are no suggested deletions |
| // of this content. |
| SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"` |
| |
| // SuggestedInsertionIds: The suggested insertion IDs. A |
| // FootnoteReference may have multiple insertion IDs if |
| // it is a nested suggested change. If empty, then this is not a |
| // suggested |
| // insertion. |
| SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"` |
| |
| // SuggestedTextStyleChanges: The suggested text style changes to this |
| // FootnoteReference, keyed by |
| // suggestion ID. |
| SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"` |
| |
| // TextStyle: The text style of this FootnoteReference. |
| TextStyle *TextStyle `json:"textStyle,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "FootnoteId") 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. "FootnoteId") 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 *FootnoteReference) MarshalJSON() ([]byte, error) { |
| type NoMethod FootnoteReference |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Header: A document header. |
| type Header struct { |
| // Content: The contents of the header. |
| // |
| // The indexes for a header's content begin at zero. |
| Content []*StructuralElement `json:"content,omitempty"` |
| |
| // HeaderId: The ID of the header. |
| HeaderId string `json:"headerId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 *Header) MarshalJSON() ([]byte, error) { |
| type NoMethod Header |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // HorizontalRule: A ParagraphElement representing a |
| // horizontal line. |
| type HorizontalRule struct { |
| // SuggestedDeletionIds: The suggested deletion IDs. If empty, then |
| // there are no suggested deletions |
| // of this content. |
| SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"` |
| |
| // SuggestedInsertionIds: The suggested insertion IDs. A HorizontalRule |
| // may have multiple insertion IDs if it |
| // is a nested suggested change. If empty, then this is not a |
| // suggested |
| // insertion. |
| SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"` |
| |
| // SuggestedTextStyleChanges: The suggested text style changes to this |
| // HorizontalRule, keyed by |
| // suggestion ID. |
| SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"` |
| |
| // TextStyle: The text style of this HorizontalRule. |
| // |
| // Similar to text content, like text runs and footnote references, the |
| // text |
| // style of a horizontal rule can affect content layout as well as the |
| // styling |
| // of text inserted adjacent to it. |
| TextStyle *TextStyle `json:"textStyle,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "SuggestedDeletionIds") 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. "SuggestedDeletionIds") 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 *HorizontalRule) MarshalJSON() ([]byte, error) { |
| type NoMethod HorizontalRule |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // ImageProperties: The properties of an image. |
| type ImageProperties struct { |
| // Angle: The clockwise rotation angle of the image, in radians. |
| Angle float64 `json:"angle,omitempty"` |
| |
| // Brightness: The brightness effect of the image. The value should be |
| // in the interval |
| // [-1.0, 1.0], where 0 means no effect. |
| Brightness float64 `json:"brightness,omitempty"` |
| |
| // ContentUri: A URI to the image with a default lifetime of 30 |
| // minutes. |
| // This URI is tagged with the account of the requester. Anyone with the |
| // URI |
| // effectively accesses the image as the original requester. Access to |
| // the |
| // image may be lost if the document's sharing settings change. |
| ContentUri string `json:"contentUri,omitempty"` |
| |
| // Contrast: The contrast effect of the image. The value should be in |
| // the interval |
| // [-1.0, 1.0], where 0 means no effect. |
| Contrast float64 `json:"contrast,omitempty"` |
| |
| // CropProperties: The crop properties of the image. |
| CropProperties *CropProperties `json:"cropProperties,omitempty"` |
| |
| // SourceUri: The source URI is the URI used to insert the image. The |
| // source URI can be |
| // empty. |
| SourceUri string `json:"sourceUri,omitempty"` |
| |
| // Transparency: The transparency effect of the image. The value should |
| // be in the interval |
| // [0.0, 1.0], where 0 means no effect and 1 means completely |
| // transparent. |
| Transparency float64 `json:"transparency,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Angle") 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. "Angle") 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 *ImageProperties) MarshalJSON() ([]byte, error) { |
| type NoMethod ImageProperties |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| func (s *ImageProperties) UnmarshalJSON(data []byte) error { |
| type NoMethod ImageProperties |
| var s1 struct { |
| Angle gensupport.JSONFloat64 `json:"angle"` |
| Brightness gensupport.JSONFloat64 `json:"brightness"` |
| Contrast gensupport.JSONFloat64 `json:"contrast"` |
| Transparency gensupport.JSONFloat64 `json:"transparency"` |
| *NoMethod |
| } |
| s1.NoMethod = (*NoMethod)(s) |
| if err := json.Unmarshal(data, &s1); err != nil { |
| return err |
| } |
| s.Angle = float64(s1.Angle) |
| s.Brightness = float64(s1.Brightness) |
| s.Contrast = float64(s1.Contrast) |
| s.Transparency = float64(s1.Transparency) |
| return nil |
| } |
| |
| // ImagePropertiesSuggestionState: A mask that indicates which of the |
| // fields on the base ImageProperties have been changed in this |
| // suggestion. |
| // For any field set to true, there is a new suggested value. |
| type ImagePropertiesSuggestionState struct { |
| // AngleSuggested: Indicates if there was a suggested change to angle. |
| AngleSuggested bool `json:"angleSuggested,omitempty"` |
| |
| // BrightnessSuggested: Indicates if there was a suggested change to |
| // brightness. |
| BrightnessSuggested bool `json:"brightnessSuggested,omitempty"` |
| |
| // ContentUriSuggested: Indicates if there was a suggested change |
| // to |
| // content_uri. |
| ContentUriSuggested bool `json:"contentUriSuggested,omitempty"` |
| |
| // ContrastSuggested: Indicates if there was a suggested change to |
| // contrast. |
| ContrastSuggested bool `json:"contrastSuggested,omitempty"` |
| |
| // CropPropertiesSuggestionState: A mask that indicates which of the |
| // fields in crop_properties have been changed in |
| // this suggestion. |
| CropPropertiesSuggestionState *CropPropertiesSuggestionState `json:"cropPropertiesSuggestionState,omitempty"` |
| |
| // SourceUriSuggested: Indicates if there was a suggested change to |
| // source_uri. |
| SourceUriSuggested bool `json:"sourceUriSuggested,omitempty"` |
| |
| // TransparencySuggested: Indicates if there was a suggested change to |
| // transparency. |
| TransparencySuggested bool `json:"transparencySuggested,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "AngleSuggested") 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. "AngleSuggested") 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 *ImagePropertiesSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod ImagePropertiesSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InlineObject: An object that appears inline with text. An |
| // InlineObject contains |
| // an EmbeddedObject such as an image. |
| type InlineObject struct { |
| // InlineObjectProperties: The properties of this inline object. |
| InlineObjectProperties *InlineObjectProperties `json:"inlineObjectProperties,omitempty"` |
| |
| // ObjectId: The ID of this inline object. |
| ObjectId string `json:"objectId,omitempty"` |
| |
| // SuggestedDeletionIds: The suggested deletion IDs. If empty, then |
| // there are no suggested deletions |
| // of this content. |
| SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"` |
| |
| // SuggestedInlineObjectPropertiesChanges: The suggested changes to the |
| // inline object properties, keyed by suggestion |
| // ID. |
| SuggestedInlineObjectPropertiesChanges map[string]SuggestedInlineObjectProperties `json:"suggestedInlineObjectPropertiesChanges,omitempty"` |
| |
| // SuggestedInsertionId: The suggested insertion ID. If empty, then this |
| // is not a suggested |
| // insertion. |
| SuggestedInsertionId string `json:"suggestedInsertionId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "InlineObjectProperties") 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. "InlineObjectProperties") |
| // 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 *InlineObject) MarshalJSON() ([]byte, error) { |
| type NoMethod InlineObject |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InlineObjectElement: A ParagraphElement that contains |
| // an InlineObject. |
| type InlineObjectElement struct { |
| // InlineObjectId: The ID of the InlineObject this |
| // element contains. |
| InlineObjectId string `json:"inlineObjectId,omitempty"` |
| |
| // SuggestedDeletionIds: The suggested deletion IDs. If empty, then |
| // there are no suggested deletions |
| // of this content. |
| SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"` |
| |
| // SuggestedInsertionIds: The suggested insertion IDs. An |
| // InlineObjectElement may have multiple insertion IDs |
| // if it is a nested suggested change. If empty, then this is not a |
| // suggested |
| // insertion. |
| SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"` |
| |
| // SuggestedTextStyleChanges: The suggested text style changes to this |
| // InlineObject, keyed by suggestion |
| // ID. |
| SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"` |
| |
| // TextStyle: The text style of this InlineObjectElement. |
| // |
| // Similar to text content, like text runs and footnote references, the |
| // text |
| // style of an inline object element can affect content layout as well |
| // as the |
| // styling of text inserted adjacent to it. |
| TextStyle *TextStyle `json:"textStyle,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "InlineObjectId") 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. "InlineObjectId") 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 *InlineObjectElement) MarshalJSON() ([]byte, error) { |
| type NoMethod InlineObjectElement |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InlineObjectProperties: Properties of an InlineObject. |
| type InlineObjectProperties struct { |
| // EmbeddedObject: The embedded object of this inline object. |
| EmbeddedObject *EmbeddedObject `json:"embeddedObject,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "EmbeddedObject") 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. "EmbeddedObject") 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 *InlineObjectProperties) MarshalJSON() ([]byte, error) { |
| type NoMethod InlineObjectProperties |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InlineObjectPropertiesSuggestionState: A mask that indicates which of |
| // the fields on the base |
| // InlineObjectProperties have |
| // been changed in this suggestion. For any field set to true, there is |
| // a new |
| // suggested value. |
| type InlineObjectPropertiesSuggestionState struct { |
| // EmbeddedObjectSuggestionState: A mask that indicates which of the |
| // fields in embedded_object have been |
| // changed in this suggestion. |
| EmbeddedObjectSuggestionState *EmbeddedObjectSuggestionState `json:"embeddedObjectSuggestionState,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "EmbeddedObjectSuggestionState") 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. |
| // "EmbeddedObjectSuggestionState") 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 *InlineObjectPropertiesSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod InlineObjectPropertiesSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InsertInlineImageRequest: Inserts an InlineObject containing an |
| // image at the given location. |
| type InsertInlineImageRequest struct { |
| // EndOfSegmentLocation: Inserts the text at the end of a header, footer |
| // or the document body. |
| // |
| // Inline images cannot be inserted inside a footnote. |
| EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"` |
| |
| // Location: Inserts the image at a specific index in the document. |
| // |
| // The image must be inserted inside the bounds of an |
| // existing |
| // Paragraph. For instance, it cannot be |
| // inserted at a table's start index (i.e. between the table and |
| // its |
| // preceding paragraph). |
| // |
| // Inline images cannot be inserted inside a footnote or equation. |
| Location *Location `json:"location,omitempty"` |
| |
| // ObjectSize: The size that the image should appear as in the document. |
| // This property is |
| // optional and the final size of the image in the document is |
| // determined by |
| // the following rules: |
| // * If neither width nor height is specified, then a default size of |
| // the |
| // image is calculated based on its resolution. |
| // * If one dimension is specified then the other dimension is |
| // calculated to |
| // preserve the aspect ratio of the image. |
| // * If both width and height are specified, the image is scaled to |
| // fit |
| // within the provided dimensions while maintaining its aspect ratio. |
| ObjectSize *Size `json:"objectSize,omitempty"` |
| |
| // Uri: The image URI. |
| // |
| // The image is fetched once at insertion time and a copy is stored |
| // for |
| // display inside the document. Images must be less than 50MB in size, |
| // cannot |
| // exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF |
| // format. |
| // |
| // The provided URI can be at most 2 kB in length. The URI itself is |
| // saved |
| // with the image, and exposed via the ImageProperties.content_uri |
| // field. |
| Uri string `json:"uri,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "EndOfSegmentLocation") 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. "EndOfSegmentLocation") 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 *InsertInlineImageRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod InsertInlineImageRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InsertInlineImageResponse: The result of inserting an inline image. |
| type InsertInlineImageResponse struct { |
| // ObjectId: The ID of the created InlineObject. |
| ObjectId string `json:"objectId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "ObjectId") 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. "ObjectId") 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 *InsertInlineImageResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod InsertInlineImageResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InsertInlineSheetsChartResponse: The result of inserting an embedded |
| // Google Sheets chart. |
| type InsertInlineSheetsChartResponse struct { |
| // ObjectId: The object ID of the inserted chart. |
| ObjectId string `json:"objectId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "ObjectId") 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. "ObjectId") 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 *InsertInlineSheetsChartResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod InsertInlineSheetsChartResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InsertPageBreakRequest: Inserts a page break followed by a newline at |
| // the specified location. |
| type InsertPageBreakRequest struct { |
| // EndOfSegmentLocation: Inserts the page break at the end of the |
| // document body. |
| // |
| // Page breaks cannot be inserted inside a footnote, header or |
| // footer. |
| // Since page breaks can only be inserted inside the body, the segment |
| // ID field must be |
| // empty. |
| EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"` |
| |
| // Location: Inserts the page break at a specific index in the |
| // document. |
| // |
| // The page break must be inserted inside the bounds of an |
| // existing |
| // Paragraph. For instance, it cannot be |
| // inserted at a table's start index (i.e. between the table and |
| // its |
| // preceding paragraph). |
| // |
| // Page breaks cannot be inserted inside a table, equation, footnote, |
| // header |
| // or footer. Since page breaks can only be inserted inside the body, |
| // the |
| // segment ID field must be |
| // empty. |
| Location *Location `json:"location,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "EndOfSegmentLocation") 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. "EndOfSegmentLocation") 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 *InsertPageBreakRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod InsertPageBreakRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InsertTableColumnRequest: Inserts an empty column into a table. |
| type InsertTableColumnRequest struct { |
| // InsertRight: Whether to insert new column to the right of the |
| // reference cell location. |
| // |
| // - `True`: insert to the right. |
| // - `False`: insert to the left. |
| InsertRight bool `json:"insertRight,omitempty"` |
| |
| // TableCellLocation: The reference table cell location from which |
| // columns will be inserted. |
| // |
| // A new column will be inserted to the left (or right) of the column |
| // where |
| // the reference cell is. If the reference cell is a merged cell, a |
| // new |
| // column will be inserted to the left (or right) of the merged cell. |
| TableCellLocation *TableCellLocation `json:"tableCellLocation,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "InsertRight") 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. "InsertRight") 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 *InsertTableColumnRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod InsertTableColumnRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InsertTableRequest: Inserts a table at the specified location. |
| // |
| // A newline character will be inserted before the inserted table. |
| type InsertTableRequest struct { |
| // Columns: The number of columns in the table. |
| Columns int64 `json:"columns,omitempty"` |
| |
| // EndOfSegmentLocation: Inserts the table at the end of the given |
| // header, footer or document |
| // body. A newline character will be inserted before the inserted |
| // table. |
| // |
| // Tables cannot be inserted inside a footnote. |
| EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"` |
| |
| // Location: Inserts the table at a specific model index. |
| // |
| // A newline character will be inserted before the inserted table, |
| // therefore |
| // the table start index will be at the specified location index + |
| // 1. |
| // |
| // The table must be inserted inside the bounds of an |
| // existing |
| // Paragraph. For instance, it cannot be |
| // inserted at a table's start index (i.e. between an existing table and |
| // its |
| // preceding paragraph). |
| // |
| // Tables cannot be inserted inside a footnote or equation. |
| Location *Location `json:"location,omitempty"` |
| |
| // Rows: The number of rows in the table. |
| Rows int64 `json:"rows,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Columns") 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. "Columns") 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 *InsertTableRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod InsertTableRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InsertTableRowRequest: Inserts an empty row into a table. |
| type InsertTableRowRequest struct { |
| // InsertBelow: Whether to insert new row below the reference cell |
| // location. |
| // |
| // - `True`: insert below the cell. |
| // - `False`: insert above the cell. |
| InsertBelow bool `json:"insertBelow,omitempty"` |
| |
| // TableCellLocation: The reference table cell location from which rows |
| // will be inserted. |
| // |
| // A new row will be inserted above (or below) the row where the |
| // reference |
| // cell is. If the reference cell is a merged cell, a new row will |
| // be |
| // inserted above (or below) the merged cell. |
| TableCellLocation *TableCellLocation `json:"tableCellLocation,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "InsertBelow") 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. "InsertBelow") 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 *InsertTableRowRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod InsertTableRowRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // InsertTextRequest: Inserts text at the specified location. |
| type InsertTextRequest struct { |
| // EndOfSegmentLocation: Inserts the text at the end of a header, |
| // footer, footnote or |
| // the document body. |
| EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"` |
| |
| // Location: Inserts the text at a specific index in the document. |
| // |
| // Text must be inserted inside the bounds of an existing |
| // Paragraph. For instance, text cannot be |
| // inserted at a table's start index (i.e. between the table and |
| // its |
| // preceding paragraph). The text must be inserted in the |
| // preceding |
| // paragraph. |
| Location *Location `json:"location,omitempty"` |
| |
| // Text: The text to be inserted. |
| // |
| // Inserting a newline character will implicitly create a new |
| // Paragraph at that index. |
| // The paragraph style of the new paragraph will be copied from the |
| // paragraph |
| // at the current insertion index, including lists and bullets. |
| // |
| // Text styles for inserted text will be determined automatically, |
| // generally |
| // preserving the styling of neighboring text. In most cases, the text |
| // style |
| // for the inserted text will match the text immediately before the |
| // insertion |
| // index. |
| // |
| // Some control characters (U+0000-U+0008, U+000C-U+001F) and |
| // characters |
| // from the Unicode Basic Multilingual Plane Private Use Area |
| // (U+E000-U+F8FF) |
| // will be stripped out of the inserted text. |
| Text string `json:"text,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "EndOfSegmentLocation") 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. "EndOfSegmentLocation") 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 *InsertTextRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod InsertTextRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Link: A reference to another portion of a document or an external URL |
| // resource. |
| type Link struct { |
| // BookmarkId: The ID of a bookmark in this document. |
| BookmarkId string `json:"bookmarkId,omitempty"` |
| |
| // HeadingId: The ID of a heading in this document. |
| HeadingId string `json:"headingId,omitempty"` |
| |
| // Url: An external URL. |
| Url string `json:"url,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "BookmarkId") 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. "BookmarkId") 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 *Link) MarshalJSON() ([]byte, error) { |
| type NoMethod Link |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // LinkedContentReference: A reference to the external linked source |
| // content. |
| type LinkedContentReference struct { |
| // SheetsChartReference: A reference to the linked chart. |
| SheetsChartReference *SheetsChartReference `json:"sheetsChartReference,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "SheetsChartReference") 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. "SheetsChartReference") 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 *LinkedContentReference) MarshalJSON() ([]byte, error) { |
| type NoMethod LinkedContentReference |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // LinkedContentReferenceSuggestionState: A mask that indicates which of |
| // the fields on the base |
| // LinkedContentReference have |
| // been changed in this suggestion. For any field set to true, there is |
| // a new |
| // suggested value. |
| type LinkedContentReferenceSuggestionState struct { |
| // SheetsChartReferenceSuggestionState: A mask that indicates which of |
| // the fields in sheets_chart_reference have |
| // been changed in this suggestion. |
| SheetsChartReferenceSuggestionState *SheetsChartReferenceSuggestionState `json:"sheetsChartReferenceSuggestionState,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "SheetsChartReferenceSuggestionState") 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. |
| // "SheetsChartReferenceSuggestionState") 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 *LinkedContentReferenceSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod LinkedContentReferenceSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // List: A List represents the list attributes for a group of paragraphs |
| // that all |
| // belong to the same list. A paragraph that is part of a list has a |
| // reference |
| // to the list's ID in its bullet. |
| type List struct { |
| // ListProperties: The properties of the list. |
| ListProperties *ListProperties `json:"listProperties,omitempty"` |
| |
| // SuggestedDeletionIds: The suggested deletion IDs. If empty, then |
| // there are no suggested deletions |
| // of this list. |
| SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"` |
| |
| // SuggestedInsertionId: The suggested insertion ID. If empty, then this |
| // is not a suggested |
| // insertion. |
| SuggestedInsertionId string `json:"suggestedInsertionId,omitempty"` |
| |
| // SuggestedListPropertiesChanges: The suggested changes to the list |
| // properties, keyed by suggestion |
| // ID. |
| SuggestedListPropertiesChanges map[string]SuggestedListProperties `json:"suggestedListPropertiesChanges,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "ListProperties") 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. "ListProperties") 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 *List) MarshalJSON() ([]byte, error) { |
| type NoMethod List |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // ListProperties: The properties of a list which describe the look |
| // and feel of bullets belonging to paragraphs associated with a list. |
| type ListProperties struct { |
| // NestingLevels: Describes the properties of the bullets at the |
| // associated level. |
| // |
| // A list has at most nine levels of nesting with nesting level |
| // 0 |
| // corresponding to the top-most level and nesting level 8 corresponding |
| // to |
| // the most nested level. The nesting levels are returned in ascending |
| // order |
| // with the least nested returned first. |
| NestingLevels []*NestingLevel `json:"nestingLevels,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "NestingLevels") 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. "NestingLevels") 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 *ListProperties) MarshalJSON() ([]byte, error) { |
| type NoMethod ListProperties |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // ListPropertiesSuggestionState: A mask that indicates which of the |
| // fields on the base ListProperties have been changed in this |
| // suggestion. |
| // For any field set to true, there is a new suggested value. |
| type ListPropertiesSuggestionState struct { |
| // NestingLevelsSuggestionStates: A mask that indicates which of the |
| // fields on the corresponding |
| // NestingLevel in nesting_levels have been changed in |
| // this suggestion. |
| // |
| // The nesting level suggestion states are returned in ascending order |
| // of the |
| // nesting level with the least nested returned first. |
| NestingLevelsSuggestionStates []*NestingLevelSuggestionState `json:"nestingLevelsSuggestionStates,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "NestingLevelsSuggestionStates") 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. |
| // "NestingLevelsSuggestionStates") 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 *ListPropertiesSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod ListPropertiesSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Location: A particular location in the document. |
| type Location struct { |
| // Index: The zero-based index, in UTF-16 code units. |
| // |
| // The index is relative to the beginning of the segment specified |
| // by |
| // segment_id. |
| Index int64 `json:"index,omitempty"` |
| |
| // SegmentId: The ID of the header, footer or footnote the location is |
| // in. An empty |
| // segment ID signifies the document's body. |
| SegmentId string `json:"segmentId,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Index") 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. "Index") 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 *Location) MarshalJSON() ([]byte, error) { |
| type NoMethod Location |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // MergeTableCellsRequest: Merges cells in a Table. |
| type MergeTableCellsRequest struct { |
| // TableRange: The table range specifying which cells of the table to |
| // merge. |
| // |
| // Any text in the cells being merged will be concatenated and stored in |
| // the |
| // "head" cell of the range. This is the upper-left cell of the range |
| // when |
| // the content direction is left to right, and the upper-right cell of |
| // the |
| // range otherwise. |
| // |
| // If the range is non-rectangular (which can occur in some cases where |
| // the |
| // range covers cells that are already merged or where the table |
| // is |
| // non-rectangular), a 400 bad request error is returned. |
| TableRange *TableRange `json:"tableRange,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "TableRange") 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. "TableRange") 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 *MergeTableCellsRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod MergeTableCellsRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // NamedRange: A collection of Ranges with the same named |
| // range |
| // ID. |
| // |
| // Named ranges allow developers to associate parts of a document with |
| // an |
| // arbitrary user-defined label so their contents can be |
| // programmatically read |
| // or edited at a later time. A document can contain multiple named |
| // ranges with |
| // the same name, but every named range has a unique ID. |
| // |
| // A named range is created with a single Range, |
| // and content inserted inside a named range generally expands that |
| // range. |
| // However, certain document changes can cause the range to be split |
| // into |
| // multiple ranges. |
| // |
| // Named ranges are not private. All applications and collaborators that |
| // have |
| // access to the document can see its named ranges. |
| type NamedRange struct { |
| // Name: The name of the named range. |
| Name string `json:"name,omitempty"` |
| |
| // NamedRangeId: The ID of the named range. |
| NamedRangeId string `json:"namedRangeId,omitempty"` |
| |
| // Ranges: The ranges that belong to this named range. |
| Ranges []*Range `json:"ranges,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *NamedRange) MarshalJSON() ([]byte, error) { |
| type NoMethod NamedRange |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // NamedRanges: A collection of all the NamedRanges in the |
| // document that share a given name. |
| type NamedRanges struct { |
| // Name: The name that all the named ranges share. |
| Name string `json:"name,omitempty"` |
| |
| // NamedRanges: The NamedRanges that share the same name. |
| NamedRanges []*NamedRange `json:"namedRanges,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *NamedRanges) MarshalJSON() ([]byte, error) { |
| type NoMethod NamedRanges |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // NamedStyle: A named style. Paragraphs in the document can inherit |
| // their |
| // TextStyle and |
| // ParagraphStyle from this named style |
| // when they have the same named style type. |
| type NamedStyle struct { |
| // NamedStyleType: The type of this named style. |
| // |
| // Possible values: |
| // "NAMED_STYLE_TYPE_UNSPECIFIED" - The type of named style is |
| // unspecified. |
| // "NORMAL_TEXT" - Normal text. |
| // "TITLE" - Title. |
| // "SUBTITLE" - Subtitle. |
| // "HEADING_1" - Heading 1. |
| // "HEADING_2" - Heading 2. |
| // "HEADING_3" - Heading 3. |
| // "HEADING_4" - Heading 4. |
| // "HEADING_5" - Heading 5. |
| // "HEADING_6" - Heading 6. |
| NamedStyleType string `json:"namedStyleType,omitempty"` |
| |
| // ParagraphStyle: The paragraph style of this named style. |
| ParagraphStyle *ParagraphStyle `json:"paragraphStyle,omitempty"` |
| |
| // TextStyle: The text style of this named style. |
| TextStyle *TextStyle `json:"textStyle,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "NamedStyleType") 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. "NamedStyleType") 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 *NamedStyle) MarshalJSON() ([]byte, error) { |
| type NoMethod NamedStyle |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // NamedStyleSuggestionState: A suggestion state of a NamedStyle |
| // message. |
| type NamedStyleSuggestionState struct { |
| // NamedStyleType: The named style type that this suggestion state |
| // corresponds to. |
| // |
| // This field is provided as a convenience for matching |
| // the |
| // NamedStyleSuggestionState with its corresponding NamedStyle. |
| // |
| // Possible values: |
| // "NAMED_STYLE_TYPE_UNSPECIFIED" - The type of named style is |
| // unspecified. |
| // "NORMAL_TEXT" - Normal text. |
| // "TITLE" - Title. |
| // "SUBTITLE" - Subtitle. |
| // "HEADING_1" - Heading 1. |
| // "HEADING_2" - Heading 2. |
| // "HEADING_3" - Heading 3. |
| // "HEADING_4" - Heading 4. |
| // "HEADING_5" - Heading 5. |
| // "HEADING_6" - Heading 6. |
| NamedStyleType string `json:"namedStyleType,omitempty"` |
| |
| // ParagraphStyleSuggestionState: A mask that indicates which of the |
| // fields in paragraph style have been changed in this |
| // suggestion. |
| ParagraphStyleSuggestionState *ParagraphStyleSuggestionState `json:"paragraphStyleSuggestionState,omitempty"` |
| |
| // TextStyleSuggestionState: A mask that indicates which of the fields |
| // in text style have been changed in this |
| // suggestion. |
| TextStyleSuggestionState *TextStyleSuggestionState `json:"textStyleSuggestionState,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "NamedStyleType") 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. "NamedStyleType") 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 *NamedStyleSuggestionState) MarshalJSON() ([]byte, error) { |
| type NoMethod NamedStyleSuggestionState |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // NamedStyles: The named styles. Paragraphs in the document can inherit |
| // their |
| // TextStyle and |
| // ParagraphStyle from these named styles. |
| type NamedStyles struct { |
| // Styles: The named styles. |
| // |
| // There is an entry for each of the possible named style types. |
| Styles []*NamedStyle `json:"styles,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Styles") 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. "Styles") 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 *NamedStyles) MarshalJSON() ([]byte, error) { |
| type NoMethod NamedStyles |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // NamedStylesSuggestionState: The suggestion state of a |
| // NamedStyles |
| // message. |
| type NamedStylesSuggestionState struct { |
| // StylesSuggestionStates: A mask that indicates which of the fields on |
| // the corresponding NamedStyle in styles have been changed in |
| // this |
| // suggestion. |
| // |
| // The order of these named style suggestion states match the order of |
| // the |
| // corresponding named style within the named styles suggestion. |
| StylesSuggestionStates []*NamedStyleSuggestionState `json:"stylesSuggestionStates,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "StylesSuggestionStates") 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. "StylesSuggestionStates") |
| // 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 |
| |