blob: 5051db413fc6b08edf80d37fad84db66b10786fe [file] [log] [blame]
// Copyright 2019 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package slides provides access to the Google Slides API.
//
// See https://developers.google.com/slides/
//
// Usage example:
//
// import "google.golang.org/api/slides/v1"
// ...
// slidesService, err := slides.New(oauthHttpClient)
package slides // import "google.golang.org/api/slides/v1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
const apiId = "slides:v1"
const apiName = "slides"
const apiVersion = "v1"
const basePath = "https://slides.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// 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"
// View and manage your Google Slides presentations
PresentationsScope = "https://www.googleapis.com/auth/presentations"
// View your Google Slides presentations
PresentationsReadonlyScope = "https://www.googleapis.com/auth/presentations.readonly"
// See, edit, create, and delete your spreadsheets in Google Drive
SpreadsheetsScope = "https://www.googleapis.com/auth/spreadsheets"
// View your Google Spreadsheets
SpreadsheetsReadonlyScope = "https://www.googleapis.com/auth/spreadsheets.readonly"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Presentations = NewPresentationsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Presentations *PresentationsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewPresentationsService(s *Service) *PresentationsService {
rs := &PresentationsService{s: s}
rs.Pages = NewPresentationsPagesService(s)
return rs
}
type PresentationsService struct {
s *Service
Pages *PresentationsPagesService
}
func NewPresentationsPagesService(s *Service) *PresentationsPagesService {
rs := &PresentationsPagesService{s: s}
return rs
}
type PresentationsPagesService struct {
s *Service
}
// AffineTransform: AffineTransform uses a 3x3 matrix with an implied
// last row of [ 0 0 1 ]
// to transform source coordinates (x,y) into destination coordinates
// (x', y')
// according to:
//
// x' x = shear_y scale_y translate_y
// 1 [ 1 ]
//
// After transformation,
//
// x' = scale_x * x + shear_x * y + translate_x;
// y' = scale_y * y + shear_y * x + translate_y;
//
// This message is therefore composed of these six matrix elements.
type AffineTransform struct {
// ScaleX: The X coordinate scaling element.
ScaleX float64 `json:"scaleX,omitempty"`
// ScaleY: The Y coordinate scaling element.
ScaleY float64 `json:"scaleY,omitempty"`
// ShearX: The X coordinate shearing element.
ShearX float64 `json:"shearX,omitempty"`
// ShearY: The Y coordinate shearing element.
ShearY float64 `json:"shearY,omitempty"`
// TranslateX: The X coordinate translation element.
TranslateX float64 `json:"translateX,omitempty"`
// TranslateY: The Y coordinate translation element.
TranslateY float64 `json:"translateY,omitempty"`
// Unit: The units for translate elements.
//
// Possible values:
// "UNIT_UNSPECIFIED" - The units are unknown.
// "EMU" - An English Metric Unit (EMU) is defined as 1/360,000 of a
// centimeter
// and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.
// "PT" - A point, 1/72 of an inch.
Unit string `json:"unit,omitempty"`
// ForceSendFields is a list of field names (e.g. "ScaleX") 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. "ScaleX") 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 *AffineTransform) MarshalJSON() ([]byte, error) {
type NoMethod AffineTransform
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *AffineTransform) UnmarshalJSON(data []byte) error {
type NoMethod AffineTransform
var s1 struct {
ScaleX gensupport.JSONFloat64 `json:"scaleX"`
ScaleY gensupport.JSONFloat64 `json:"scaleY"`
ShearX gensupport.JSONFloat64 `json:"shearX"`
ShearY gensupport.JSONFloat64 `json:"shearY"`
TranslateX gensupport.JSONFloat64 `json:"translateX"`
TranslateY gensupport.JSONFloat64 `json:"translateY"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.ScaleX = float64(s1.ScaleX)
s.ScaleY = float64(s1.ScaleY)
s.ShearX = float64(s1.ShearX)
s.ShearY = float64(s1.ShearY)
s.TranslateX = float64(s1.TranslateX)
s.TranslateY = float64(s1.TranslateY)
return nil
}
// AutoText: A TextElement kind that represents auto text.
type AutoText struct {
// Content: The rendered content of this auto text, if available.
Content string `json:"content,omitempty"`
// Style: The styling applied to this auto text.
Style *TextStyle `json:"style,omitempty"`
// Type: The type of this auto text.
//
// Possible values:
// "TYPE_UNSPECIFIED" - An unspecified autotext type.
// "SLIDE_NUMBER" - Type for autotext that represents the current
// slide number.
Type string `json:"type,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 *AutoText) MarshalJSON() ([]byte, error) {
type NoMethod AutoText
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BatchUpdatePresentationRequest: Request message for
// PresentationsService.BatchUpdatePresentation.
type BatchUpdatePresentationRequest struct {
// Requests: A list of updates to apply to the presentation.
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 *BatchUpdatePresentationRequest) MarshalJSON() ([]byte, error) {
type NoMethod BatchUpdatePresentationRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BatchUpdatePresentationResponse: Response message from a batch
// update.
type BatchUpdatePresentationResponse struct {
// PresentationId: The presentation the updates were applied to.
PresentationId string `json:"presentationId,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. "PresentationId") 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. "PresentationId") 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 *BatchUpdatePresentationResponse) MarshalJSON() ([]byte, error) {
type NoMethod BatchUpdatePresentationResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Bullet: Describes the bullet of a paragraph.
type Bullet struct {
// BulletStyle: The paragraph specific text style applied to this
// bullet.
BulletStyle *TextStyle `json:"bulletStyle,omitempty"`
// Glyph: The rendered bullet glyph for this paragraph.
Glyph string `json:"glyph,omitempty"`
// 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"`
// ForceSendFields is a list of field names (e.g. "BulletStyle") 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. "BulletStyle") 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)
}
// ColorScheme: The palette of predefined colors for a page.
type ColorScheme struct {
// Colors: The ThemeColorType and corresponding concrete color pairs.
Colors []*ThemeColorPair `json:"colors,omitempty"`
// ForceSendFields is a list of field names (e.g. "Colors") 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. "Colors") 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 *ColorScheme) MarshalJSON() ([]byte, error) {
type NoMethod ColorScheme
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ColorStop: A color and position in a gradient band.
type ColorStop struct {
// Alpha: The alpha value of this color in the gradient band. Defaults
// to 1.0,
// fully opaque.
Alpha float64 `json:"alpha,omitempty"`
// Color: The color of the gradient stop.
Color *OpaqueColor `json:"color,omitempty"`
// Position: The relative position of the color stop in the gradient
// band measured
// in percentage. The value should be in the interval [0.0, 1.0].
Position float64 `json:"position,omitempty"`
// ForceSendFields is a list of field names (e.g. "Alpha") 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. "Alpha") 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 *ColorStop) MarshalJSON() ([]byte, error) {
type NoMethod ColorStop
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *ColorStop) UnmarshalJSON(data []byte) error {
type NoMethod ColorStop
var s1 struct {
Alpha gensupport.JSONFloat64 `json:"alpha"`
Position gensupport.JSONFloat64 `json:"position"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Alpha = float64(s1.Alpha)
s.Position = float64(s1.Position)
return nil
}
// CreateImageRequest: Creates an image.
type CreateImageRequest struct {
// ElementProperties: The element properties for the image.
//
// When the aspect ratio of the provided size does not match the image
// aspect
// ratio, the image is scaled and centered with respect to the size in
// order
// to maintain aspect ratio. The provided transform is applied after
// this
// operation.
//
// The PageElementProperties.size property is
// optional. If you don't specify the size, the default size of the
// image is
// used.
//
// The PageElementProperties.transform property is
// optional. If you don't specify a transform, the image will be placed
// at the
// top left corner of the page.
ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
// ObjectId: A user-supplied object ID.
//
// If you specify an ID, it must be unique among all pages and page
// elements
// in the presentation. The ID must start with an alphanumeric character
// or an
// underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
// may include those as well as a hyphen or colon (matches
// regex
// `[a-zA-Z0-9_-:]`).
// The length of the ID must not be less than 5 or greater than 50.
//
// If you don't specify an ID, a unique one is generated.
ObjectId string `json:"objectId,omitempty"`
// Url: The image URL.
//
// The image is fetched once at insertion time and a copy is stored
// for
// display inside the presentation. 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 URL can be at most 2 kB in length. The URL itself is
// saved
// with the image, and exposed via the Image.source_url field.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "ElementProperties")
// 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. "ElementProperties") 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 *CreateImageRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateImageRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateImageResponse: The result of creating an image.
type CreateImageResponse struct {
// ObjectId: The object ID of the created image.
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 *CreateImageResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateImageResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateLineRequest: Creates a line.
type CreateLineRequest struct {
// Category: The category of the line to be created.
//
// The exact line type created is
// determined based on the category and how it's routed to connect to
// other
// page elements.
//
// If you specify both a `category` and a `line_category`, the
// `category`
// takes precedence.
//
// If you do not specify a value for `category`, but specify a value
// for
// `line_category`, then the specified `line_category` value is
// used.
//
// If you do not specify either, then STRAIGHT is used.
//
// Possible values:
// "LINE_CATEGORY_UNSPECIFIED" - Unspecified line category.
// "STRAIGHT" - Straight connectors, including straight connector 1.
// "BENT" - Bent connectors, including bent connector 2 to 5.
// "CURVED" - Curved connectors, including curved connector 2 to 5.
Category string `json:"category,omitempty"`
// ElementProperties: The element properties for the line.
ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
// LineCategory: The category of the line to be
// created.
//
// <b>Deprecated</b>: use `category` instead.
//
// The exact line type created is
// determined based on the category and how it's routed to connect to
// other
// page elements.
//
// If you specify both a `category` and a `line_category`, the
// `category`
// takes precedence.
//
// Possible values:
// "STRAIGHT" - Straight connectors, including straight connector 1.
// The is the default
// category when one is not specified.
// "BENT" - Bent connectors, including bent connector 2 to 5.
// "CURVED" - Curved connectors, including curved connector 2 to 5.
LineCategory string `json:"lineCategory,omitempty"`
// ObjectId: A user-supplied object ID.
//
// If you specify an ID, it must be unique among all pages and page
// elements
// in the presentation. The ID must start with an alphanumeric character
// or an
// underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
// may include those as well as a hyphen or colon (matches
// regex
// `[a-zA-Z0-9_-:]`).
// The length of the ID must not be less than 5 or greater than 50.
//
// If you don't specify an ID, a unique one is generated.
ObjectId string `json:"objectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Category") 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. "Category") 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 *CreateLineRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateLineRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateLineResponse: The result of creating a line.
type CreateLineResponse struct {
// ObjectId: The object ID of the created line.
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 *CreateLineResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateLineResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateParagraphBulletsRequest: Creates bullets for all of the
// paragraphs that overlap with the given
// text index 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. Defaults to
// the
// `BULLET_DISC_CIRCLE_SQUARE` preset.
//
// Possible values:
// "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_DIGIT_ALPHA_ROMAN" - A numbered list with `DIGIT`,
// `ALPHA` and `ROMAN` numeric glyphs for
// the first 3 list nesting levels, followed by periods.
// "NUMBERED_DIGIT_ALPHA_ROMAN_PARENS" - A numbered list with `DIGIT`,
// `ALPHA` and `ROMAN` numeric glyphs for
// the first 3 list nesting levels, followed by parenthesis.
// "NUMBERED_DIGIT_NESTED" - A numbered list with `DIGIT` 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_DIGIT" - A numbered list with
// `UPPERROMAN`, `UPPERALPHA` and `DIGIT` numeric glyphs
// for the first 3 list nesting levels, followed by periods.
// "NUMBERED_ZERODIGIT_ALPHA_ROMAN" - A numbered list with
// `ZERODIGIT`, `ALPHA` and `ROMAN` numeric glyphs for
// the first 3 list nesting levels, followed by periods.
BulletPreset string `json:"bulletPreset,omitempty"`
// CellLocation: The optional table cell location if the text to be
// modified is in a table
// cell. If present, the object_id must refer to a table.
CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
// ObjectId: The object ID of the shape or table containing the text to
// add bullets to.
ObjectId string `json:"objectId,omitempty"`
// TextRange: The range of text to apply the bullet presets to, based on
// TextElement indexes.
TextRange *Range `json:"textRange,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)
}
// CreateShapeRequest: Creates a new shape.
type CreateShapeRequest struct {
// ElementProperties: The element properties for the shape.
ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
// ObjectId: A user-supplied object ID.
//
// If you specify an ID, it must be unique among all pages and page
// elements
// in the presentation. The ID must start with an alphanumeric character
// or an
// underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
// may include those as well as a hyphen or colon (matches
// regex
// `[a-zA-Z0-9_-:]`).
// The length of the ID must not be less than 5 or greater than 50.
// If empty, a unique identifier will be generated.
ObjectId string `json:"objectId,omitempty"`
// ShapeType: The shape type.
//
// Possible values:
// "TYPE_UNSPECIFIED" - The shape type that is not predefined.
// "TEXT_BOX" - Text box shape.
// "RECTANGLE" - Rectangle shape. Corresponds to ECMA-376 ST_ShapeType
// 'rect'.
// "ROUND_RECTANGLE" - Round corner rectangle shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'roundRect'
// "ELLIPSE" - Ellipse shape. Corresponds to ECMA-376 ST_ShapeType
// 'ellipse'
// "ARC" - Curved arc shape. Corresponds to ECMA-376 ST_ShapeType
// 'arc'
// "BENT_ARROW" - Bent arrow shape. Corresponds to ECMA-376
// ST_ShapeType 'bentArrow'
// "BENT_UP_ARROW" - Bent up arrow shape. Corresponds to ECMA-376
// ST_ShapeType 'bentUpArrow'
// "BEVEL" - Bevel shape. Corresponds to ECMA-376 ST_ShapeType 'bevel'
// "BLOCK_ARC" - Block arc shape. Corresponds to ECMA-376 ST_ShapeType
// 'blockArc'
// "BRACE_PAIR" - Brace pair shape. Corresponds to ECMA-376
// ST_ShapeType 'bracePair'
// "BRACKET_PAIR" - Bracket pair shape. Corresponds to ECMA-376
// ST_ShapeType 'bracketPair'
// "CAN" - Can shape. Corresponds to ECMA-376 ST_ShapeType 'can'
// "CHEVRON" - Chevron shape. Corresponds to ECMA-376 ST_ShapeType
// 'chevron'
// "CHORD" - Chord shape. Corresponds to ECMA-376 ST_ShapeType 'chord'
// "CLOUD" - Cloud shape. Corresponds to ECMA-376 ST_ShapeType 'cloud'
// "CORNER" - Corner shape. Corresponds to ECMA-376 ST_ShapeType
// 'corner'
// "CUBE" - Cube shape. Corresponds to ECMA-376 ST_ShapeType 'cube'
// "CURVED_DOWN_ARROW" - Curved down arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'curvedDownArrow'
// "CURVED_LEFT_ARROW" - Curved left arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'curvedLeftArrow'
// "CURVED_RIGHT_ARROW" - Curved right arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'curvedRightArrow'
// "CURVED_UP_ARROW" - Curved up arrow shape. Corresponds to ECMA-376
// ST_ShapeType
// 'curvedUpArrow'
// "DECAGON" - Decagon shape. Corresponds to ECMA-376 ST_ShapeType
// 'decagon'
// "DIAGONAL_STRIPE" - Diagonal stripe shape. Corresponds to ECMA-376
// ST_ShapeType 'diagStripe'
// "DIAMOND" - Diamond shape. Corresponds to ECMA-376 ST_ShapeType
// 'diamond'
// "DODECAGON" - Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType
// 'dodecagon'
// "DONUT" - Donut shape. Corresponds to ECMA-376 ST_ShapeType 'donut'
// "DOUBLE_WAVE" - Double wave shape. Corresponds to ECMA-376
// ST_ShapeType 'doubleWave'
// "DOWN_ARROW" - Down arrow shape. Corresponds to ECMA-376
// ST_ShapeType 'downArrow'
// "DOWN_ARROW_CALLOUT" - Callout down arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'downArrowCallout'
// "FOLDED_CORNER" - Folded corner shape. Corresponds to ECMA-376
// ST_ShapeType 'foldedCorner'
// "FRAME" - Frame shape. Corresponds to ECMA-376 ST_ShapeType 'frame'
// "HALF_FRAME" - Half frame shape. Corresponds to ECMA-376
// ST_ShapeType 'halfFrame'
// "HEART" - Heart shape. Corresponds to ECMA-376 ST_ShapeType 'heart'
// "HEPTAGON" - Heptagon shape. Corresponds to ECMA-376 ST_ShapeType
// 'heptagon'
// "HEXAGON" - Hexagon shape. Corresponds to ECMA-376 ST_ShapeType
// 'hexagon'
// "HOME_PLATE" - Home plate shape. Corresponds to ECMA-376
// ST_ShapeType 'homePlate'
// "HORIZONTAL_SCROLL" - Horizontal scroll shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'horizontalScroll'
// "IRREGULAR_SEAL_1" - Irregular seal 1 shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'irregularSeal1'
// "IRREGULAR_SEAL_2" - Irregular seal 2 shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'irregularSeal2'
// "LEFT_ARROW" - Left arrow shape. Corresponds to ECMA-376
// ST_ShapeType 'leftArrow'
// "LEFT_ARROW_CALLOUT" - Callout left arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'leftArrowCallout'
// "LEFT_BRACE" - Left brace shape. Corresponds to ECMA-376
// ST_ShapeType 'leftBrace'
// "LEFT_BRACKET" - Left bracket shape. Corresponds to ECMA-376
// ST_ShapeType 'leftBracket'
// "LEFT_RIGHT_ARROW" - Left right arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'leftRightArrow'
// "LEFT_RIGHT_ARROW_CALLOUT" - Callout left right arrow shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'leftRightArrowCallout'
// "LEFT_RIGHT_UP_ARROW" - Left right up arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'leftRightUpArrow'
// "LEFT_UP_ARROW" - Left up arrow shape. Corresponds to ECMA-376
// ST_ShapeType 'leftUpArrow'
// "LIGHTNING_BOLT" - Lightning bolt shape. Corresponds to ECMA-376
// ST_ShapeType
// 'lightningBolt'
// "MATH_DIVIDE" - Divide math shape. Corresponds to ECMA-376
// ST_ShapeType 'mathDivide'
// "MATH_EQUAL" - Equal math shape. Corresponds to ECMA-376
// ST_ShapeType 'mathEqual'
// "MATH_MINUS" - Minus math shape. Corresponds to ECMA-376
// ST_ShapeType 'mathMinus'
// "MATH_MULTIPLY" - Multiply math shape. Corresponds to ECMA-376
// ST_ShapeType 'mathMultiply'
// "MATH_NOT_EQUAL" - Not equal math shape. Corresponds to ECMA-376
// ST_ShapeType 'mathNotEqual'
// "MATH_PLUS" - Plus math shape. Corresponds to ECMA-376 ST_ShapeType
// 'mathPlus'
// "MOON" - Moon shape. Corresponds to ECMA-376 ST_ShapeType 'moon'
// "NO_SMOKING" - No smoking shape. Corresponds to ECMA-376
// ST_ShapeType 'noSmoking'
// "NOTCHED_RIGHT_ARROW" - Notched right arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'notchedRightArrow'
// "OCTAGON" - Octagon shape. Corresponds to ECMA-376 ST_ShapeType
// 'octagon'
// "PARALLELOGRAM" - Parallelogram shape. Corresponds to ECMA-376
// ST_ShapeType 'parallelogram'
// "PENTAGON" - Pentagon shape. Corresponds to ECMA-376 ST_ShapeType
// 'pentagon'
// "PIE" - Pie shape. Corresponds to ECMA-376 ST_ShapeType 'pie'
// "PLAQUE" - Plaque shape. Corresponds to ECMA-376 ST_ShapeType
// 'plaque'
// "PLUS" - Plus shape. Corresponds to ECMA-376 ST_ShapeType 'plus'
// "QUAD_ARROW" - Quad-arrow shape. Corresponds to ECMA-376
// ST_ShapeType 'quadArrow'
// "QUAD_ARROW_CALLOUT" - Callout quad-arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'quadArrowCallout'
// "RIBBON" - Ribbon shape. Corresponds to ECMA-376 ST_ShapeType
// 'ribbon'
// "RIBBON_2" - Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType
// 'ribbon2'
// "RIGHT_ARROW" - Right arrow shape. Corresponds to ECMA-376
// ST_ShapeType 'rightArrow'
// "RIGHT_ARROW_CALLOUT" - Callout right arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'rightArrowCallout'
// "RIGHT_BRACE" - Right brace shape. Corresponds to ECMA-376
// ST_ShapeType 'rightBrace'
// "RIGHT_BRACKET" - Right bracket shape. Corresponds to ECMA-376
// ST_ShapeType 'rightBracket'
// "ROUND_1_RECTANGLE" - One round corner rectangle shape. Corresponds
// to ECMA-376 ST_ShapeType
// 'round1Rect'
// "ROUND_2_DIAGONAL_RECTANGLE" - Two diagonal round corner rectangle
// shape. Corresponds to ECMA-376
// ST_ShapeType 'round2DiagRect'
// "ROUND_2_SAME_RECTANGLE" - Two same-side round corner rectangle
// shape. Corresponds to ECMA-376
// ST_ShapeType 'round2SameRect'
// "RIGHT_TRIANGLE" - Right triangle shape. Corresponds to ECMA-376
// ST_ShapeType 'rtTriangle'
// "SMILEY_FACE" - Smiley face shape. Corresponds to ECMA-376
// ST_ShapeType 'smileyFace'
// "SNIP_1_RECTANGLE" - One snip corner rectangle shape. Corresponds
// to ECMA-376 ST_ShapeType
// 'snip1Rect'
// "SNIP_2_DIAGONAL_RECTANGLE" - Two diagonal snip corner rectangle
// shape. Corresponds to ECMA-376
// ST_ShapeType 'snip2DiagRect'
// "SNIP_2_SAME_RECTANGLE" - Two same-side snip corner rectangle
// shape. Corresponds to ECMA-376
// ST_ShapeType 'snip2SameRect'
// "SNIP_ROUND_RECTANGLE" - One snip one round corner rectangle shape.
// Corresponds to ECMA-376
// ST_ShapeType 'snipRoundRect'
// "STAR_10" - Ten pointed star shape. Corresponds to ECMA-376
// ST_ShapeType 'star10'
// "STAR_12" - Twelve pointed star shape. Corresponds to ECMA-376
// ST_ShapeType 'star12'
// "STAR_16" - Sixteen pointed star shape. Corresponds to ECMA-376
// ST_ShapeType 'star16'
// "STAR_24" - Twenty four pointed star shape. Corresponds to ECMA-376
// ST_ShapeType
// 'star24'
// "STAR_32" - Thirty two pointed star shape. Corresponds to ECMA-376
// ST_ShapeType
// 'star32'
// "STAR_4" - Four pointed star shape. Corresponds to ECMA-376
// ST_ShapeType 'star4'
// "STAR_5" - Five pointed star shape. Corresponds to ECMA-376
// ST_ShapeType 'star5'
// "STAR_6" - Six pointed star shape. Corresponds to ECMA-376
// ST_ShapeType 'star6'
// "STAR_7" - Seven pointed star shape. Corresponds to ECMA-376
// ST_ShapeType 'star7'
// "STAR_8" - Eight pointed star shape. Corresponds to ECMA-376
// ST_ShapeType 'star8'
// "STRIPED_RIGHT_ARROW" - Striped right arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'stripedRightArrow'
// "SUN" - Sun shape. Corresponds to ECMA-376 ST_ShapeType 'sun'
// "TRAPEZOID" - Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType
// 'trapezoid'
// "TRIANGLE" - Triangle shape. Corresponds to ECMA-376 ST_ShapeType
// 'triangle'
// "UP_ARROW" - Up arrow shape. Corresponds to ECMA-376 ST_ShapeType
// 'upArrow'
// "UP_ARROW_CALLOUT" - Callout up arrow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'upArrowCallout'
// "UP_DOWN_ARROW" - Up down arrow shape. Corresponds to ECMA-376
// ST_ShapeType 'upDownArrow'
// "UTURN_ARROW" - U-turn arrow shape. Corresponds to ECMA-376
// ST_ShapeType 'uturnArrow'
// "VERTICAL_SCROLL" - Vertical scroll shape. Corresponds to ECMA-376
// ST_ShapeType
// 'verticalScroll'
// "WAVE" - Wave shape. Corresponds to ECMA-376 ST_ShapeType 'wave'
// "WEDGE_ELLIPSE_CALLOUT" - Callout wedge ellipse shape. Corresponds
// to ECMA-376 ST_ShapeType
// 'wedgeEllipseCallout'
// "WEDGE_RECTANGLE_CALLOUT" - Callout wedge rectangle shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'wedgeRectCallout'
// "WEDGE_ROUND_RECTANGLE_CALLOUT" - Callout wedge round rectangle
// shape. Corresponds to ECMA-376 ST_ShapeType
// 'wedgeRoundRectCallout'
// "FLOW_CHART_ALTERNATE_PROCESS" - Alternate process flow shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'flowChartAlternateProcess'
// "FLOW_CHART_COLLATE" - Collate flow shape. Corresponds to ECMA-376
// ST_ShapeType
// 'flowChartCollate'
// "FLOW_CHART_CONNECTOR" - Connector flow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'flowChartConnector'
// "FLOW_CHART_DECISION" - Decision flow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'flowChartDecision'
// "FLOW_CHART_DELAY" - Delay flow shape. Corresponds to ECMA-376
// ST_ShapeType 'flowChartDelay'
// "FLOW_CHART_DISPLAY" - Display flow shape. Corresponds to ECMA-376
// ST_ShapeType
// 'flowChartDisplay'
// "FLOW_CHART_DOCUMENT" - Document flow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'flowChartDocument'
// "FLOW_CHART_EXTRACT" - Extract flow shape. Corresponds to ECMA-376
// ST_ShapeType
// 'flowChartExtract'
// "FLOW_CHART_INPUT_OUTPUT" - Input output flow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'flowChartInputOutput'
// "FLOW_CHART_INTERNAL_STORAGE" - Internal storage flow shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'flowChartInternalStorage'
// "FLOW_CHART_MAGNETIC_DISK" - Magnetic disk flow shape. Corresponds
// to ECMA-376 ST_ShapeType
// 'flowChartMagneticDisk'
// "FLOW_CHART_MAGNETIC_DRUM" - Magnetic drum flow shape. Corresponds
// to ECMA-376 ST_ShapeType
// 'flowChartMagneticDrum'
// "FLOW_CHART_MAGNETIC_TAPE" - Magnetic tape flow shape. Corresponds
// to ECMA-376 ST_ShapeType
// 'flowChartMagneticTape'
// "FLOW_CHART_MANUAL_INPUT" - Manual input flow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'flowChartManualInput'
// "FLOW_CHART_MANUAL_OPERATION" - Manual operation flow shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'flowChartManualOperation'
// "FLOW_CHART_MERGE" - Merge flow shape. Corresponds to ECMA-376
// ST_ShapeType 'flowChartMerge'
// "FLOW_CHART_MULTIDOCUMENT" - Multi-document flow shape. Corresponds
// to ECMA-376 ST_ShapeType
// 'flowChartMultidocument'
// "FLOW_CHART_OFFLINE_STORAGE" - Offline storage flow shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'flowChartOfflineStorage'
// "FLOW_CHART_OFFPAGE_CONNECTOR" - Off-page connector flow shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'flowChartOffpageConnector'
// "FLOW_CHART_ONLINE_STORAGE" - Online storage flow shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'flowChartOnlineStorage'
// "FLOW_CHART_OR" - Or flow shape. Corresponds to ECMA-376
// ST_ShapeType 'flowChartOr'
// "FLOW_CHART_PREDEFINED_PROCESS" - Predefined process flow shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'flowChartPredefinedProcess'
// "FLOW_CHART_PREPARATION" - Preparation flow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'flowChartPreparation'
// "FLOW_CHART_PROCESS" - Process flow shape. Corresponds to ECMA-376
// ST_ShapeType
// 'flowChartProcess'
// "FLOW_CHART_PUNCHED_CARD" - Punched card flow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'flowChartPunchedCard'
// "FLOW_CHART_PUNCHED_TAPE" - Punched tape flow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'flowChartPunchedTape'
// "FLOW_CHART_SORT" - Sort flow shape. Corresponds to ECMA-376
// ST_ShapeType 'flowChartSort'
// "FLOW_CHART_SUMMING_JUNCTION" - Summing junction flow shape.
// Corresponds to ECMA-376 ST_ShapeType
// 'flowChartSummingJunction'
// "FLOW_CHART_TERMINATOR" - Terminator flow shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'flowChartTerminator'
// "ARROW_EAST" - East arrow shape.
// "ARROW_NORTH_EAST" - Northeast arrow shape.
// "ARROW_NORTH" - North arrow shape.
// "SPEECH" - Speech shape.
// "STARBURST" - Star burst shape.
// "TEARDROP" - Teardrop shape. Corresponds to ECMA-376 ST_ShapeType
// 'teardrop'
// "ELLIPSE_RIBBON" - Ellipse ribbon shape. Corresponds to ECMA-376
// ST_ShapeType
// 'ellipseRibbon'
// "ELLIPSE_RIBBON_2" - Ellipse ribbon 2 shape. Corresponds to
// ECMA-376 ST_ShapeType
// 'ellipseRibbon2'
// "CLOUD_CALLOUT" - Callout cloud shape. Corresponds to ECMA-376
// ST_ShapeType 'cloudCallout'
// "CUSTOM" - Custom shape.
ShapeType string `json:"shapeType,omitempty"`
// ForceSendFields is a list of field names (e.g. "ElementProperties")
// 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. "ElementProperties") 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 *CreateShapeRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateShapeRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateShapeResponse: The result of creating a shape.
type CreateShapeResponse struct {
// ObjectId: The object ID of the created shape.
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 *CreateShapeResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateShapeResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateSheetsChartRequest: Creates an embedded Google Sheets
// chart.
//
// NOTE: Chart creation requires at least one of the
// spreadsheets.readonly,
// spreadsheets, drive.readonly, drive.file, or drive OAuth scopes.
type CreateSheetsChartRequest struct {
// ChartId: The ID of the specific chart in the Google Sheets
// spreadsheet.
ChartId int64 `json:"chartId,omitempty"`
// ElementProperties: The element properties for the chart.
//
// When the aspect ratio of the provided size does not match the chart
// aspect
// ratio, the chart is scaled and centered with respect to the size in
// order
// to maintain aspect ratio. The provided transform is applied after
// this
// operation.
ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
// LinkingMode: The mode with which the chart is linked to the source
// spreadsheet. When
// not specified, the chart will be an image that is not linked.
//
// Possible values:
// "NOT_LINKED_IMAGE" - The chart is not associated with the source
// spreadsheet and cannot be
// updated. A chart that is not linked will be inserted as an image.
// "LINKED" - Linking the chart allows it to be updated, and other
// collaborators will
// see a link to the spreadsheet.
LinkingMode string `json:"linkingMode,omitempty"`
// ObjectId: A user-supplied object ID.
//
// If specified, the ID must be unique among all pages and page elements
// in
// the presentation. The ID should start with a word character
// [a-zA-Z0-9_]
// and then followed by any number of the following characters
// [a-zA-Z0-9_-:].
// The length of the ID should not be less than 5 or greater than 50.
// If empty, a unique identifier will be generated.
ObjectId string `json:"objectId,omitempty"`
// SpreadsheetId: The ID of the Google Sheets spreadsheet that contains
// the chart.
SpreadsheetId string `json:"spreadsheetId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChartId") 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. "ChartId") 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 *CreateSheetsChartRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateSheetsChartRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateSheetsChartResponse: The result of creating an embedded Google
// Sheets chart.
type CreateSheetsChartResponse struct {
// ObjectId: The object ID of the created 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 *CreateSheetsChartResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateSheetsChartResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateSlideRequest: Creates a new slide.
type CreateSlideRequest struct {
// InsertionIndex: The optional zero-based index indicating where to
// insert the slides.
//
// If you don't specify an index, the new slide is created at the end.
InsertionIndex int64 `json:"insertionIndex,omitempty"`
// ObjectId: A user-supplied object ID.
//
// If you specify an ID, it must be unique among all pages and page
// elements
// in the presentation. The ID must start with an alphanumeric character
// or an
// underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
// may include those as well as a hyphen or colon (matches
// regex
// `[a-zA-Z0-9_-:]`).
// The length of the ID must not be less than 5 or greater than 50.
//
// If you don't specify an ID, a unique one is generated.
ObjectId string `json:"objectId,omitempty"`
// PlaceholderIdMappings: An optional list of object ID mappings from
// the placeholder(s) on the layout to the placeholder(s)
// that will be created on the new slide from that specified layout. Can
// only
// be used when `slide_layout_reference` is specified.
PlaceholderIdMappings []*LayoutPlaceholderIdMapping `json:"placeholderIdMappings,omitempty"`
// SlideLayoutReference: Layout reference of the slide to be inserted,
// based on the *current
// master*, which is one of the following:
//
// - The master of the previous slide index.
// - The master of the first slide, if the insertion_index is zero.
// - The first master in the presentation, if there are no slides.
//
// If the LayoutReference is not found in the current master, a 400
// bad
// request error is returned.
//
// If you don't specify a layout reference, then the new slide will use
// the
// predefined layout `BLANK`.
SlideLayoutReference *LayoutReference `json:"slideLayoutReference,omitempty"`
// ForceSendFields is a list of field names (e.g. "InsertionIndex") 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. "InsertionIndex") 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 *CreateSlideRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateSlideRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateSlideResponse: The result of creating a slide.
type CreateSlideResponse struct {
// ObjectId: The object ID of the created slide.
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 *CreateSlideResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateSlideResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateTableRequest: Creates a new table.
type CreateTableRequest struct {
// Columns: Number of columns in the table.
Columns int64 `json:"columns,omitempty"`
// ElementProperties: The element properties for the table.
//
// The table will be created at the provided size, subject to a minimum
// size.
// If no size is provided, the table will be automatically sized.
//
// Table transforms must have a scale of 1 and no shear components. If
// no
// transform is provided, the table will be centered on the page.
ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
// ObjectId: A user-supplied object ID.
//
// If you specify an ID, it must be unique among all pages and page
// elements
// in the presentation. The ID must start with an alphanumeric character
// or an
// underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
// may include those as well as a hyphen or colon (matches
// regex
// `[a-zA-Z0-9_-:]`).
// The length of the ID must not be less than 5 or greater than 50.
//
// If you don't specify an ID, a unique one is generated.
ObjectId string `json:"objectId,omitempty"`
// Rows: 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 *CreateTableRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateTableRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateTableResponse: The result of creating a table.
type CreateTableResponse struct {
// ObjectId: The object ID of the created table.
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 *CreateTableResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateTableResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVideoRequest: Creates a video.
//
// NOTE: Creating a video from Google Drive requires that the requesting
// app
// have at least one of the drive, drive.readonly, or drive.file OAuth
// scopes.
type CreateVideoRequest struct {
// ElementProperties: The element properties for the video.
//
// The PageElementProperties.size property is
// optional. If you don't specify a size, a default size is chosen by
// the
// server.
//
// The PageElementProperties.transform property is
// optional. The transform must not have shear components.
// If you don't specify a transform, the video will be placed at the top
// left
// corner of the page.
ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
// Id: The video source's unique identifier for this video.
//
// e.g. For YouTube video
// https://www.youtube.com/watch?v=7U3axjORYZ0,
// the ID is 7U3axjORYZ0. For a Google Drive
// video
// https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5
// Q the ID
// is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q.
Id string `json:"id,omitempty"`
// ObjectId: A user-supplied object ID.
//
// If you specify an ID, it must be unique among all pages and page
// elements
// in the presentation. The ID must start with an alphanumeric character
// or an
// underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
// may include those as well as a hyphen or colon (matches
// regex
// `[a-zA-Z0-9_-:]`).
// The length of the ID must not be less than 5 or greater than 50.
//
// If you don't specify an ID, a unique one is generated.
ObjectId string `json:"objectId,omitempty"`
// Source: The video source.
//
// Possible values:
// "SOURCE_UNSPECIFIED" - The video source is unspecified.
// "YOUTUBE" - The video source is YouTube.
// "DRIVE" - The video source is Google Drive.
Source string `json:"source,omitempty"`
// ForceSendFields is a list of field names (e.g. "ElementProperties")
// 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. "ElementProperties") 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 *CreateVideoRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateVideoRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateVideoResponse: The result of creating a video.
type CreateVideoResponse struct {
// ObjectId: The object ID of the created video.
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 *CreateVideoResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateVideoResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CropProperties: The crop properties of an object enclosed in a
// container. For example, an
// Image.
//
// The crop properties is represented by the offsets of four edges which
// define
// a crop rectangle. The offsets are measured in percentage from
// the
// corresponding edges of the object's original bounding rectangle
// towards
// inside, relative to the object's original dimensions.
//
// - If the offset is in the interval (0, 1), the corresponding edge of
// crop
// rectangle is positioned inside of the object's original bounding
// rectangle.
// - If the offset is negative or greater than 1, the corresponding edge
// of crop
// rectangle is positioned outside of the object's original bounding
// rectangle.
// - If the left edge of the crop rectangle is on the right side of its
// right
// edge, the object will be flipped horizontally.
// - If the top edge of the crop rectangle is below its bottom edge, the
// object
// will be flipped vertically.
// - If all offsets and rotation angle is 0, the object is not
// cropped.
//
// After cropping, the content in the crop rectangle will be stretched
// to fit
// its container.
type CropProperties struct {
// Angle: The rotation angle of the crop window around its center, in
// radians.
// Rotation angle is applied after the offset.
Angle float64 `json:"angle,omitempty"`
// BottomOffset: The offset specifies the bottom edge of the crop
// rectangle that is located
// above the original bounding rectangle bottom edge, relative to the
// object's
// original height.
BottomOffset float64 `json:"bottomOffset,omitempty"`
// LeftOffset: The offset specifies the left edge of the crop rectangle
// that is located to
// the right of the original bounding rectangle left edge, relative to
// the
// object's original width.
LeftOffset float64 `json:"leftOffset,omitempty"`
// RightOffset: The offset specifies the right edge of the crop
// rectangle that is located
// to the left of the original bounding rectangle right edge, relative
// to the
// object's original width.
RightOffset float64 `json:"rightOffset,omitempty"`
// TopOffset: The offset specifies the top edge of the crop rectangle
// that is located
// below the original bounding rectangle top edge, relative to the
// object's
// original height.
TopOffset float64 `json:"topOffset,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"`
BottomOffset gensupport.JSONFloat64 `json:"bottomOffset"`
LeftOffset gensupport.JSONFloat64 `json:"leftOffset"`
RightOffset gensupport.JSONFloat64 `json:"rightOffset"`
TopOffset gensupport.JSONFloat64 `json:"topOffset"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Angle = float64(s1.Angle)
s.BottomOffset = float64(s1.BottomOffset)
s.LeftOffset = float64(s1.LeftOffset)
s.RightOffset = float64(s1.RightOffset)
s.TopOffset = float64(s1.TopOffset)
return nil
}
// DeleteObjectRequest: Deletes an object, either pages or
// page elements, from the
// presentation.
type DeleteObjectRequest struct {
// ObjectId: The object ID of the page or page element to delete.
//
// If after a delete operation a group contains
// only 1 or no page elements, the group is also deleted.
//
// If a placeholder is deleted on a layout, any empty inheriting shapes
// are
// also deleted.
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 *DeleteObjectRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeleteObjectRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeleteParagraphBulletsRequest: Deletes bullets from all of the
// paragraphs that overlap with the given text
// index range.
//
// The nesting level of each paragraph will be visually preserved by
// adding
// indent to the start of the corresponding paragraph.
type DeleteParagraphBulletsRequest struct {
// CellLocation: The optional table cell location if the text to be
// modified is in a table
// cell. If present, the object_id must refer to a table.
CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
// ObjectId: The object ID of the shape or table containing the text to
// delete bullets
// from.
ObjectId string `json:"objectId,omitempty"`
// TextRange: The range of text to delete bullets from, based on
// TextElement indexes.
TextRange *Range `json:"textRange,omitempty"`
// ForceSendFields is a list of field names (e.g. "CellLocation") 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. "CellLocation") 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)
}
// DeleteTableColumnRequest: Deletes a column from a table.
type DeleteTableColumnRequest struct {
// CellLocation: The reference table cell location from which a column
// will be deleted.
//
// The column this cell spans will be deleted. If this is a merged
// cell,
// multiple columns will be deleted. If no columns remain in the table
// after
// this deletion, the whole table is deleted.
CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
// TableObjectId: The table to delete columns from.
TableObjectId string `json:"tableObjectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CellLocation") 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. "CellLocation") 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 {
// CellLocation: The reference table cell location from which a row will
// be deleted.
//
// The row this cell spans will be deleted. If this is a merged cell,
// multiple
// rows will be deleted. If no rows remain in the table after this
// deletion,
// the whole table is deleted.
CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
// TableObjectId: The table to delete rows from.
TableObjectId string `json:"tableObjectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CellLocation") 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. "CellLocation") 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)
}
// DeleteTextRequest: Deletes text from a shape or a table cell.
type DeleteTextRequest struct {
// CellLocation: The optional table cell location if the text is to be
// deleted from a table
// cell. If present, the object_id must refer to a table.
CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
// ObjectId: The object ID of the shape or table from which the text
// will be deleted.
ObjectId string `json:"objectId,omitempty"`
// TextRange: The range of text to delete, based on TextElement
// indexes.
//
// There is always an implicit newline character at the end of a shape's
// or
// table cell's text that cannot be deleted. `Range.Type.ALL` will use
// the
// correct bounds, but care must be taken when specifying explicit
// bounds for
// range types `FROM_START_INDEX` and `FIXED_RANGE`. For example, if the
// text
// is "ABC", followed by an implicit newline, then the maximum value is
// 2 for
// `text_range.start_index` and 3 for `text_range.end_index`.
//
// Deleting text that crosses a paragraph boundary may result in
// changes
// to paragraph styles and lists as the two paragraphs are
// merged.
//
// Ranges that include only one code unit of a surrogate pair are
// expanded to
// include both code units.
TextRange *Range `json:"textRange,omitempty"`
// ForceSendFields is a list of field names (e.g. "CellLocation") 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. "CellLocation") 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 *DeleteTextRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeleteTextRequest
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.
// "EMU" - An English Metric Unit (EMU) is defined as 1/360,000 of a
// centimeter
// and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.
// "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
}
// DuplicateObjectRequest: Duplicates a slide or page element.
//
// When duplicating a slide, the duplicate slide will be created
// immediately
// following the specified slide. When duplicating a page element, the
// duplicate
// will be placed on the same page at the same position as the original.
type DuplicateObjectRequest struct {
// ObjectId: The ID of the object to duplicate.
ObjectId string `json:"objectId,omitempty"`
// ObjectIds: The object being duplicated may contain other objects, for
// example when
// duplicating a slide or a group page element. This map defines how the
// IDs
// of duplicated objects are generated: the keys are the IDs of the
// original
// objects and its values are the IDs that will be assigned to
// the
// corresponding duplicate object. The ID of the source object's
// duplicate
// may be specified in this map as well, using the same value of
// the
// `object_id` field as a key and the newly desired ID as the
// value.
//
// All keys must correspond to existing IDs in the presentation. All
// values
// must be unique in the presentation and must start with an
// alphanumeric
// character or an underscore (matches regex `[a-zA-Z0-9_]`);
// remaining
// characters may include those as well as a hyphen or colon (matches
// regex
// `[a-zA-Z0-9_-:]`). The length of the new ID must not be less than 5
// or
// greater than 50.
//
// If any IDs of source objects are omitted from the map, a new random
// ID will
// be assigned. If the map is empty or unset, all duplicate objects
// will
// receive a new random ID.
ObjectIds map[string]string `json:"objectIds,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 *DuplicateObjectRequest) MarshalJSON() ([]byte, error) {
type NoMethod DuplicateObjectRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DuplicateObjectResponse: The response of duplicating an object.
type DuplicateObjectResponse struct {
// ObjectId: The ID of the new duplicate object.
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 *DuplicateObjectResponse) MarshalJSON() ([]byte, error) {
type NoMethod DuplicateObjectResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Group: A PageElement kind representing a
// joined collection of PageElements.
type Group struct {
// Children: The collection of elements in the group. The minimum size
// of a group is 2.
Children []*PageElement `json:"children,omitempty"`
// ForceSendFields is a list of field names (e.g. "Children") 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. "Children") 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 *Group) MarshalJSON() ([]byte, error) {
type NoMethod Group
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GroupObjectsRequest: Groups objects to create an object group. For
// example, groups PageElements to create a Group on the same page as
// all the children.
type GroupObjectsRequest struct {
// ChildrenObjectIds: The object IDs of the objects to group.
//
// Only page elements can be grouped. There should be at least two
// page
// elements on the same page that are not already in another group. Some
// page
// elements, such as videos, tables and placeholder shapes cannot be
// grouped.
ChildrenObjectIds []string `json:"childrenObjectIds,omitempty"`
// GroupObjectId: A user-supplied object ID for the group to be
// created.
//
// If you specify an ID, it must be unique among all pages and page
// elements
// in the presentation. The ID must start with an alphanumeric character
// or an
// underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
// may include those as well as a hyphen or colon (matches
// regex
// `[a-zA-Z0-9_-:]`).
// The length of the ID must not be less than 5 or greater than 50.
//
// If you don't specify an ID, a unique one is generated.
GroupObjectId string `json:"groupObjectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChildrenObjectIds")
// 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. "ChildrenObjectIds") 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 *GroupObjectsRequest) MarshalJSON() ([]byte, error) {
type NoMethod GroupObjectsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GroupObjectsResponse: The result of grouping objects.
type GroupObjectsResponse struct {
// ObjectId: The object ID of the created group.
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 *GroupObjectsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GroupObjectsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Image: A PageElement kind representing an
// image.
type Image struct {
// ContentUrl: An URL to an image with a default lifetime of 30
// minutes.
// This URL is tagged with the account of the requester. Anyone with the
// URL
// effectively accesses the image as the original requester. Access to
// the
// image may be lost if the presentation's sharing settings change.
ContentUrl string `json:"contentUrl,omitempty"`
// ImageProperties: The properties of the image.
ImageProperties *ImageProperties `json:"imageProperties,omitempty"`
// SourceUrl: The source URL is the URL used to insert the image. The
// source URL can be
// empty.
SourceUrl string `json:"sourceUrl,omitempty"`
// ForceSendFields is a list of field names (e.g. "ContentUrl") 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. "ContentUrl") 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 *Image) MarshalJSON() ([]byte, error) {
type NoMethod Image
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ImageProperties: The properties of the Image.
type ImageProperties struct {
// Brightness: The brightness effect of the image. The value should be
// in the interval
// [-1.0, 1.0], where 0 means no effect. This property is read-only.
Brightness float64 `json:"brightness,omitempty"`
// Contrast: The contrast effect of the image. The value should be in
// the interval
// [-1.0, 1.0], where 0 means no effect. This property is read-only.
Contrast float64 `json:"contrast,omitempty"`
// CropProperties: The crop properties of the image. If not set, the
// image is not cropped.
// This property is read-only.
CropProperties *CropProperties `json:"cropProperties,omitempty"`
// Link: The hyperlink destination of the image. If unset, there is no
// link.
Link *Link `json:"link,omitempty"`
// Outline: The outline of the image. If not set, the image has no
// outline.
Outline *Outline `json:"outline,omitempty"`
// Recolor: The recolor effect of the image. If not set, the image is
// not recolored.
// This property is read-only.
Recolor *Recolor `json:"recolor,omitempty"`
// Shadow: The shadow of the image. If not set, the image has no shadow.
// This property
// is read-only.
Shadow *Shadow `json:"shadow,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.
// This property is read-only.
Transparency float64 `json:"transparency,omitempty"`
// ForceSendFields is a list of field names (e.g. "Brightness") 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. "Brightness") 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 {
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.Brightness = float64(s1.Brightness)
s.Contrast = float64(s1.Contrast)
s.Transparency = float64(s1.Transparency)
return nil
}
// InsertTableColumnsRequest: Inserts columns into a table.
//
// Other columns in the table will be resized to fit the new column.
type InsertTableColumnsRequest struct {
// CellLocation: 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.
CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
// InsertRight: Whether to insert new columns to the right of the
// reference cell location.
//
// - `True`: insert to the right.
// - `False`: insert to the left.
InsertRight bool `json:"insertRight,omitempty"`
// Number: The number of columns to be inserted. Maximum 20 per request.
Number int64 `json:"number,omitempty"`
// TableObjectId: The table to insert columns into.
TableObjectId string `json:"tableObjectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CellLocation") 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. "CellLocation") 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 *InsertTableColumnsRequest) MarshalJSON() ([]byte, error) {
type NoMethod InsertTableColumnsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertTableRowsRequest: Inserts rows into a table.
type InsertTableRowsRequest struct {
// CellLocation: 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.
CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
// InsertBelow: Whether to insert new rows below the reference cell
// location.
//
// - `True`: insert below the cell.
// - `False`: insert above the cell.
InsertBelow bool `json:"insertBelow,omitempty"`
// Number: The number of rows to be inserted. Maximum 20 per request.
Number int64 `json:"number,omitempty"`
// TableObjectId: The table to insert rows into.
TableObjectId string `json:"tableObjectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "CellLocation") 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. "CellLocation") 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 *InsertTableRowsRequest) MarshalJSON() ([]byte, error) {
type NoMethod InsertTableRowsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertTextRequest: Inserts text into a shape or a table cell.
type InsertTextRequest struct {
// CellLocation: The optional table cell location if the text is to be
// inserted into a table
// cell. If present, the object_id must refer to a table.
CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
// InsertionIndex: The index where the text will be inserted, in Unicode
// code units, based
// on TextElement indexes.
//
// The index is zero-based and is computed from the start of the
// string.
// The index may be adjusted to prevent insertions inside Unicode
// grapheme
// clusters. In these cases, the text will be inserted immediately after
// the
// grapheme cluster.
InsertionIndex int64 `json:"insertionIndex,omitempty"`
// ObjectId: The object ID of the shape or table where the text will be
// inserted.
ObjectId string `json:"objectId,omitempty"`
// Text: The text to be inserted.
//
// Inserting a newline character will implicitly create a
// new
// ParagraphMarker 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
// will be
// added to the TextRun that exists at 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. "CellLocation") 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. "CellLocation") 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)
}
// LayoutPlaceholderIdMapping: The user-specified ID mapping for a
// placeholder that will be created on a
// slide from a specified layout.
type LayoutPlaceholderIdMapping struct {
// LayoutPlaceholder: The placeholder on a layout that will be applied
// to a slide. Only type and index are needed. For example, a
// predefined `TITLE_AND_BODY` layout may usually have a TITLE
// placeholder
// with index 0 and a BODY placeholder with index 0.
LayoutPlaceholder *Placeholder `json:"layoutPlaceholder,omitempty"`
// LayoutPlaceholderObjectId: The object ID of the placeholder on a
// layout that will be applied
// to a slide.
LayoutPlaceholderObjectId string `json:"layoutPlaceholderObjectId,omitempty"`
// ObjectId: A user-supplied object ID for the placeholder identified
// above that to be
// created onto a slide.
//
// If you specify an ID, it must be unique among all pages and page
// elements
// in the presentation. The ID must start with an alphanumeric character
// or an
// underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
// may include those as well as a hyphen or colon (matches
// regex
// `[a-zA-Z0-9_-:]`).
// The length of the ID must not be less than 5 or greater than 50.
//
// If you don't specify an ID, a unique one is generated.
ObjectId string `json:"objectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "LayoutPlaceholder")
// 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. "LayoutPlaceholder") 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 *LayoutPlaceholderIdMapping) MarshalJSON() ([]byte, error) {
type NoMethod LayoutPlaceholderIdMapping
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LayoutProperties: The properties of Page are only
// relevant for pages with page_type LAYOUT.
type LayoutProperties struct {
// DisplayName: The human-readable name of the layout.
DisplayName string `json:"displayName,omitempty"`
// MasterObjectId: The object ID of the master that this layout is based
// on.
MasterObjectId string `json:"masterObjectId,omitempty"`
// Name: The name of the layout.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LayoutProperties) MarshalJSON() ([]byte, error) {
type NoMethod LayoutProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LayoutReference: Slide layout reference. This may reference
// either:
//
// - A predefined layout
// - One of the layouts in the presentation.
type LayoutReference struct {
// LayoutId: Layout ID: the object ID of one of the layouts in the
// presentation.
LayoutId string `json:"layoutId,omitempty"`
// PredefinedLayout: Predefined layout.
//
// Possible values:
// "PREDEFINED_LAYOUT_UNSPECIFIED" - Unspecified layout.
// "BLANK" - Blank layout, with no placeholders.
// "CAPTION_ONLY" - Layout with a caption at the bottom.
// "TITLE" - Layout with a title and a subtitle.
// "TITLE_AND_BODY" - Layout with a title and body.
// "TITLE_AND_TWO_COLUMNS" - Layout with a title and two columns.
// "TITLE_ONLY" - Layout with only a title.
// "SECTION_HEADER" - Layout with a section title.
// "SECTION_TITLE_AND_DESCRIPTION" - Layout with a title and subtitle
// on one side and description on the other.
// "ONE_COLUMN_TEXT" - Layout with one title and one body, arranged in
// a single column.
// "MAIN_POINT" - Layout with a main point.
// "BIG_NUMBER" - Layout with a big number heading.
PredefinedLayout string `json:"predefinedLayout,omitempty"`
// ForceSendFields is a list of field names (e.g. "LayoutId") 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. "LayoutId") 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 *LayoutReference) MarshalJSON() ([]byte, error) {
type NoMethod LayoutReference
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Line: A PageElement kind representing a
// non-connector line, straight connector, curved connector, or bent
// connector.
type Line struct {
// LineCategory: The category of the line.
//
// It matches the `category` specified in CreateLineRequest, and can be
// updated with
// UpdateLineCategoryRequest.
//
// Possible values:
// "LINE_CATEGORY_UNSPECIFIED" - Unspecified line category.
// "STRAIGHT" - Straight connectors, including straight connector 1.
// "BENT" - Bent connectors, including bent connector 2 to 5.
// "CURVED" - Curved connectors, including curved connector 2 to 5.
LineCategory string `json:"lineCategory,omitempty"`
// LineProperties: The properties of the line.
LineProperties *LineProperties `json:"lineProperties,omitempty"`
// LineType: The type of the line.
//
// Possible values:
// "TYPE_UNSPECIFIED" - An unspecified line type.
// "STRAIGHT_CONNECTOR_1" - Straight connector 1 form. Corresponds to
// ECMA-376 ST_ShapeType
// 'straightConnector1'.
// "BENT_CONNECTOR_2" - Bent connector 2 form. Corresponds to ECMA-376
// ST_ShapeType
// 'bentConnector2'.
// "BENT_CONNECTOR_3" - Bent connector 3 form. Corresponds to ECMA-376
// ST_ShapeType
// 'bentConnector3'.
// "BENT_CONNECTOR_4" - Bent connector 4 form. Corresponds to ECMA-376
// ST_ShapeType
// 'bentConnector4'.
// "BENT_CONNECTOR_5" - Bent connector 5 form. Corresponds to ECMA-376
// ST_ShapeType
// 'bentConnector5'.
// "CURVED_CONNECTOR_2" - Curved connector 2 form. Corresponds to
// ECMA-376 ST_ShapeType
// 'curvedConnector2'.
// "CURVED_CONNECTOR_3" - Curved connector 3 form. Corresponds to
// ECMA-376 ST_ShapeType
// 'curvedConnector3'.
// "CURVED_CONNECTOR_4" - Curved connector 4 form. Corresponds to
// ECMA-376 ST_ShapeType
// 'curvedConnector4'.
// "CURVED_CONNECTOR_5" - Curved connector 5 form. Corresponds to
// ECMA-376 ST_ShapeType
// 'curvedConnector5'.
// "STRAIGHT_LINE" - Straight line. Corresponds to ECMA-376
// ST_ShapeType 'line'. This line
// type is not a connector.
LineType string `json:"lineType,omitempty"`
// ForceSendFields is a list of field names (e.g. "LineCategory") 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. "LineCategory") 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 *Line) MarshalJSON() ([]byte, error) {
type NoMethod Line
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LineConnection: The properties for one end of a Line
// connection.
type LineConnection struct {
// ConnectedObjectId: The object ID of the connected page element.
//
// Some page elements, such as groups, tables, and lines
// do not have connection sites and therefore cannot be connected to
// a
// connector line.
ConnectedObjectId string `json:"connectedObjectId,omitempty"`
// ConnectionSiteIndex: The index of the connection site on the
// connected page element.
//
// In most cases, it corresponds to the predefined connection site index
// from
// the ECMA-376 standard. More information on those connection sites can
// be
// found in the description of the "cnx" attribute in section 20.1.9.9
// and
// Annex H. "Predefined DrawingML Shape and Text Geometries" of "Office
// Open
// XML File Formats-Fundamentals and Markup Language Reference", part 1
// of
// [ECMA-376 5th
// edition]
// (http://www.ecma-international.org/publications/standards/Ecm
// a-376.htm).
//
// The position of each connection site can also be viewed from Slides
// editor.
ConnectionSiteIndex int64 `json:"connectionSiteIndex,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConnectedObjectId")
// 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. "ConnectedObjectId") 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 *LineConnection) MarshalJSON() ([]byte, error) {
type NoMethod LineConnection
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LineFill: The fill of the line.
type LineFill struct {
// SolidFill: Solid color fill.
SolidFill *SolidFill `json:"solidFill,omitempty"`
// ForceSendFields is a list of field names (e.g. "SolidFill") 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. "SolidFill") 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 *LineFill) MarshalJSON() ([]byte, error) {
type NoMethod LineFill
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LineProperties: The properties of the Line.
//
// When unset, these fields default to values that match the appearance
// of
// new lines created in the Slides editor.
type LineProperties struct {
// DashStyle: The dash style of the line.
//
// 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'.
// "DASH_DOT" - Alternating dashes and dots. Corresponds to ECMA-376
// ST_PresetLineDashVal
// value 'dashDot'.
// "LONG_DASH" - Line with large dashes. Corresponds to ECMA-376
// ST_PresetLineDashVal
// value 'lgDash'.
// "LONG_DASH_DOT" - Alternating large dashes and dots. Corresponds to
// ECMA-376
// ST_PresetLineDashVal value 'lgDashDot'.
DashStyle string `json:"dashStyle,omitempty"`
// EndArrow: The style of the arrow at the end of the line.
//
// Possible values:
// "ARROW_STYLE_UNSPECIFIED" - An unspecified arrow style.
// "NONE" - No arrow.
// "STEALTH_ARROW" - Arrow with notched back. Corresponds to ECMA-376
// ST_LineEndType value
// 'stealth'.
// "FILL_ARROW" - Filled arrow. Corresponds to ECMA-376 ST_LineEndType
// value 'triangle'.
// "FILL_CIRCLE" - Filled circle. Corresponds to ECMA-376
// ST_LineEndType value 'oval'.
// "FILL_SQUARE" - Filled square.
// "FILL_DIAMOND" - Filled diamond. Corresponds to ECMA-376
// ST_LineEndType value 'diamond'.
// "OPEN_ARROW" - Hollow arrow.
// "OPEN_CIRCLE" - Hollow circle.
// "OPEN_SQUARE" - Hollow square.
// "OPEN_DIAMOND" - Hollow diamond.
EndArrow string `json:"endArrow,omitempty"`
// EndConnection: The connection at the end of the line. If unset, there
// is no connection.
//
// Only lines with a Type indicating it is
// a "connector" can have an `end_connection`.
EndConnection *LineConnection `json:"endConnection,omitempty"`
// LineFill: The fill of the line. The default line fill matches the
// defaults for new
// lines created in the Slides editor.
LineFill *LineFill `json:"lineFill,omitempty"`
// Link: The hyperlink destination of the line. If unset, there is no
// link.
Link *Link `json:"link,omitempty"`
// StartArrow: The style of the arrow at the beginning of the line.
//
// Possible values:
// "ARROW_STYLE_UNSPECIFIED" - An unspecified arrow style.
// "NONE" - No arrow.
// "STEALTH_ARROW" - Arrow with notched back. Corresponds to ECMA-376
// ST_LineEndType value
// 'stealth'.
// "FILL_ARROW" - Filled arrow. Corresponds to ECMA-376 ST_LineEndType
// value 'triangle'.
// "FILL_CIRCLE" - Filled circle. Corresponds to ECMA-376
// ST_LineEndType value 'oval'.
// "FILL_SQUARE" - Filled square.
// "FILL_DIAMOND" - Filled diamond. Corresponds to ECMA-376
// ST_LineEndType value 'diamond'.
// "OPEN_ARROW" - Hollow arrow.
// "OPEN_CIRCLE" - Hollow circle.
// "OPEN_SQUARE" - Hollow square.
// "OPEN_DIAMOND" - Hollow diamond.
StartArrow string `json:"startArrow,omitempty"`
// StartConnection: The connection at the beginning of the line. If
// unset, there is no
// connection.
//
// Only lines with a Type indicating it is
// a "connector" can have a `start_connection`.
StartConnection *LineConnection `json:"startConnection,omitempty"`
// Weight: The thickness of the line.
Weight *Dimension `json:"weight,omitempty"`
// ForceSendFields is a list of field names (e.g. "DashStyle") 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. "DashStyle") 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 *LineProperties) MarshalJSON() ([]byte, error) {
type NoMethod LineProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Link: A hypertext link.
type Link struct {
// PageObjectId: If set, indicates this is a link to the specific page
// in this
// presentation with this ID. A page with this ID may not exist.
PageObjectId string `json:"pageObjectId,omitempty"`
// RelativeLink: If set, indicates this is a link to a slide in this
// presentation,
// addressed by its position.
//
// Possible values:
// "RELATIVE_SLIDE_LINK_UNSPECIFIED" - An unspecified relative slide
// link.
// "NEXT_SLIDE" - A link to the next slide.
// "PREVIOUS_SLIDE" - A link to the previous slide.
// "FIRST_SLIDE" - A link to the first slide in the presentation.
// "LAST_SLIDE" - A link to the last slide in the presentation.
RelativeLink string `json:"relativeLink,omitempty"`
// SlideIndex: If set, indicates this is a link to the slide at this
// zero-based index
// in the presentation. There may not be a slide at this index.
SlideIndex int64 `json:"slideIndex,omitempty"`
// Url: If set, indicates this is a link to the external web page at
// this URL.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "PageObjectId") 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. "PageObjectId") 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)
}
// List: A List describes the look and feel of bullets belonging to
// paragraphs
// associated with a list. A paragraph that is part of a list has an
// implicit
// reference to that list's ID.
type List struct {
// ListId: The ID of the list.
ListId string `json:"listId,omitempty"`
// NestingLevel: A map of nesting levels to the properties of bullets at
// the associated
// level. A list has at most nine levels of nesting, so the possible
// values
// for the keys of this map are 0 through 8, inclusive.
NestingLevel map[string]NestingLevel `json:"nestingLevel,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 *List) MarshalJSON() ([]byte, error) {
type NoMethod List
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MasterProperties: The properties of Page that are only
// relevant for pages with page_type MASTER.
type MasterProperties struct {
// DisplayName: The human-readable name of the master.
DisplayName string `json:"displayName,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MasterProperties) MarshalJSON() ([]byte, error) {
type NoMethod MasterProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MergeTableCellsRequest: Merges cells in a Table.
type MergeTableCellsRequest struct {
// ObjectId: The object ID of the table.
ObjectId string `json:"objectId,omitempty"`
// 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
// upper-left ("head") cell of the range. If the range is
// non-rectangular
// (which can occur in some cases where the range covers cells that
// are
// already merged), a 400 bad request error is returned.
TableRange *TableRange `json:"tableRange,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 *MergeTableCellsRequest) MarshalJSON() ([]byte, error) {
type NoMethod MergeTableCellsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NestingLevel: Contains properties describing the look and feel of a
// list bullet at a given
// level of nesting.
type NestingLevel struct {
// BulletStyle: The style of a bullet at this level of nesting.
BulletStyle *TextStyle `json:"bulletStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "BulletStyle") 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. "BulletStyle") 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 *NestingLevel) MarshalJSON() ([]byte, error) {
type NoMethod NestingLevel
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NotesProperties: The properties of Page that are only
// relevant for pages with page_type NOTES.
type NotesProperties struct {
// SpeakerNotesObjectId: The object ID of the shape on this notes page
// that contains the speaker
// notes for the corresponding slide.
// The actual shape may not always exist on the notes page. Inserting
// text
// using this object ID will automatically create the shape. In this
// case, the
// actual shape may have different object ID. The `GetPresentation`
// or
// `GetPage` action will always return the latest object ID.
SpeakerNotesObjectId string `json:"speakerNotesObjectId,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SpeakerNotesObjectId") 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. "SpeakerNotesObjectId") 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 *NotesProperties) MarshalJSON() ([]byte, error) {
type NoMethod NotesProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OpaqueColor: A themeable solid color value.
type OpaqueColor struct {
// RgbColor: An opaque RGB color.
RgbColor *RgbColor `json:"rgbColor,omitempty"`
// ThemeColor: An opaque theme color.
//
// Possible values:
// "THEME_COLOR_TYPE_UNSPECIFIED" - Unspecified theme color. This
// value should not be used.
// "DARK1" - Represents the first dark color.
// "LIGHT1" - Represents the first light color.
// "DARK2" - Represents the second dark color.
// "LIGHT2" - Represents the second light color.
// "ACCENT1" - Represents the first accent color.
// "ACCENT2" - Represents the second accent color.
// "ACCENT3" - Represents the third accent color.
// "ACCENT4" - Represents the fourth accent color.
// "ACCENT5" - Represents the fifth accent color.
// "ACCENT6" - Represents the sixth accent color.
// "HYPERLINK" - Represents the color to use for hyperlinks.
// "FOLLOWED_HYPERLINK" - Represents the color to use for visited
// hyperlinks.
// "TEXT1" - Represents the first text color.
// "BACKGROUND1" - Represents the first background color.
// "TEXT2" - Represents the second text color.
// "BACKGROUND2" - Represents the second background color.
ThemeColor string `json:"themeColor,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 *OpaqueColor) MarshalJSON() ([]byte, error) {
type NoMethod OpaqueColor
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OptionalColor: A color that can either be fully opaque or fully
// transparent.
type OptionalColor struct {
// OpaqueColor: If set, this will be used as an opaque color. If unset,
// this represents
// a transparent color.
OpaqueColor *OpaqueColor `json:"opaqueColor,omitempty"`
// ForceSendFields is a list of field names (e.g. "OpaqueColor") 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. "OpaqueColor") 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 *OptionalColor) MarshalJSON() ([]byte, error) {
type NoMethod OptionalColor
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Outline: The outline of a PageElement.
//
// If these fields are unset, they may be inherited from a parent
// placeholder
// if it exists. If there is no parent, the fields will default to the
// value
// used for new page elements created in the Slides editor, which may
// depend on
// the page element kind.
type Outline struct {
// DashStyle: The dash style of the outline.
//
// 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'.
// "DASH_DOT" - Alternating dashes and dots. Corresponds to ECMA-376
// ST_PresetLineDashVal
// value 'dashDot'.
// "LONG_DASH" - Line with large dashes. Corresponds to ECMA-376
// ST_PresetLineDashVal
// value 'lgDash'.
// "LONG_DASH_DOT" - Alternating large dashes and dots. Corresponds to
// ECMA-376
// ST_PresetLineDashVal value 'lgDashDot'.
DashStyle string `json:"dashStyle,omitempty"`
// OutlineFill: The fill of the outline.
OutlineFill *OutlineFill `json:"outlineFill,omitempty"`
// PropertyState: The outline property state.
//
// Updating the outline on a page element will implicitly update this
// field
// to `RENDERED`, unless another value is specified in the same request.
// To
// have no outline on a page element, set this field to `NOT_RENDERED`.
// In
// this case, any other outline fields set in the same request will
// be
// ignored.
//
// Possible values:
// "RENDERED" - If a property's state is RENDERED, then the element
// has the corresponding
// property when rendered on a page. If the element is a placeholder
// shape as
// determined by the placeholder
// field, and it inherits from a placeholder shape, the corresponding
// field
// may be unset, meaning that the property value is inherited from a
// parent
// placeholder. If the element does not inherit, then the field will
// contain
// the rendered value. 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 on a page. However, the field
// may
// still be set so it can be inherited by child shapes. To remove a
// property
// from a rendered element, set its property_state to NOT_RENDERED.
// "INHERIT" - If a property's state is INHERIT, then the property
// state uses the value of
// corresponding `property_state` field on the parent shape. Elements
// that do
// not inherit will never have an INHERIT property state.
PropertyState string `json:"propertyState,omitempty"`
// Weight: The thickness of the outline.
Weight *Dimension `json:"weight,omitempty"`
// ForceSendFields is a list of field names (e.g. "DashStyle") 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. "DashStyle") 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 *Outline) MarshalJSON() ([]byte, error) {
type NoMethod Outline
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OutlineFill: The fill of the outline.
type OutlineFill struct {
// SolidFill: Solid color fill.
SolidFill *SolidFill `json:"solidFill,omitempty"`
// ForceSendFields is a list of field names (e.g. "SolidFill") 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. "SolidFill") 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 *OutlineFill) MarshalJSON() ([]byte, error) {
type NoMethod OutlineFill
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Page: A page in a presentation.
type Page struct {
// LayoutProperties: Layout specific properties. Only set if page_type =
// LAYOUT.
LayoutProperties *LayoutProperties `json:"layoutProperties,omitempty"`
// MasterProperties: Master specific properties. Only set if page_type =
// MASTER.
MasterProperties *MasterProperties `json:"masterProperties,omitempty"`
// NotesProperties: Notes specific properties. Only set if page_type =
// NOTES.
NotesProperties *NotesProperties `json:"notesProperties,omitempty"`
// ObjectId: The object ID for this page. Object IDs used by
// Page and
// PageElement share the same namespace.
ObjectId string `json:"objectId,omitempty"`
// PageElements: The page elements rendered on the page.
PageElements []*PageElement `json:"pageElements,omitempty"`
// PageProperties: The properties of the page.
PageProperties *PageProperties `json:"pageProperties,omitempty"`
// PageType: The type of the page.
//
// Possible values:
// "SLIDE" - A slide page.
// "MASTER" - A master slide page.
// "LAYOUT" - A layout page.
// "NOTES" - A notes page.
// "NOTES_MASTER" - A notes master page.
PageType string `json:"pageType,omitempty"`
// RevisionId: The revision ID of the presentation containing this page.
// Can be used in
// update requests to assert that the presentation revision hasn't
// changed
// since the last read operation. Only populated if the user has edit
// access
// to the presentation.
//
// 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 presentation has
// not
// changed. Conversely, a changed ID (for the same presentation and
// user)
// usually means the presentation has been updated; however, a changed
// ID can
// also be due to internal factors such as ID format changes.
RevisionId string `json:"revisionId,omitempty"`
// SlideProperties: Slide specific properties. Only set if page_type =
// SLIDE.
SlideProperties *SlideProperties `json:"slideProperties,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "LayoutProperties") 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. "LayoutProperties") 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 *Page) MarshalJSON() ([]byte, error) {
type NoMethod Page
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}