25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

8873 satır
352 KiB

  1. // Copyright 2019 Google LLC.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Code generated file. DO NOT EDIT.
  5. // Package slides provides access to the Google Slides API.
  6. //
  7. // For product documentation, see: https://developers.google.com/slides/
  8. //
  9. // Creating a client
  10. //
  11. // Usage example:
  12. //
  13. // import "google.golang.org/api/slides/v1"
  14. // ...
  15. // ctx := context.Background()
  16. // slidesService, err := slides.NewService(ctx)
  17. //
  18. // In this example, Google Application Default Credentials are used for authentication.
  19. //
  20. // For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
  21. //
  22. // Other authentication options
  23. //
  24. // By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
  25. //
  26. // slidesService, err := slides.NewService(ctx, option.WithScopes(slides.SpreadsheetsReadonlyScope))
  27. //
  28. // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
  29. //
  30. // slidesService, err := slides.NewService(ctx, option.WithAPIKey("AIza..."))
  31. //
  32. // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
  33. //
  34. // config := &oauth2.Config{...}
  35. // // ...
  36. // token, err := config.Exchange(ctx, ...)
  37. // slidesService, err := slides.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
  38. //
  39. // See https://godoc.org/google.golang.org/api/option/ for details on options.
  40. package slides // import "google.golang.org/api/slides/v1"
  41. import (
  42. "bytes"
  43. "context"
  44. "encoding/json"
  45. "errors"
  46. "fmt"
  47. "io"
  48. "net/http"
  49. "net/url"
  50. "strconv"
  51. "strings"
  52. gensupport "google.golang.org/api/gensupport"
  53. googleapi "google.golang.org/api/googleapi"
  54. option "google.golang.org/api/option"
  55. htransport "google.golang.org/api/transport/http"
  56. )
  57. // Always reference these packages, just in case the auto-generated code
  58. // below doesn't.
  59. var _ = bytes.NewBuffer
  60. var _ = strconv.Itoa
  61. var _ = fmt.Sprintf
  62. var _ = json.NewDecoder
  63. var _ = io.Copy
  64. var _ = url.Parse
  65. var _ = gensupport.MarshalJSON
  66. var _ = googleapi.Version
  67. var _ = errors.New
  68. var _ = strings.Replace
  69. var _ = context.Canceled
  70. const apiId = "slides:v1"
  71. const apiName = "slides"
  72. const apiVersion = "v1"
  73. const basePath = "https://slides.googleapis.com/"
  74. // OAuth2 scopes used by this API.
  75. const (
  76. // See, edit, create, and delete all of your Google Drive files
  77. DriveScope = "https://www.googleapis.com/auth/drive"
  78. // View and manage Google Drive files and folders that you have opened
  79. // or created with this app
  80. DriveFileScope = "https://www.googleapis.com/auth/drive.file"
  81. // See and download all your Google Drive files
  82. DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"
  83. // View and manage your Google Slides presentations
  84. PresentationsScope = "https://www.googleapis.com/auth/presentations"
  85. // View your Google Slides presentations
  86. PresentationsReadonlyScope = "https://www.googleapis.com/auth/presentations.readonly"
  87. // See, edit, create, and delete your spreadsheets in Google Drive
  88. SpreadsheetsScope = "https://www.googleapis.com/auth/spreadsheets"
  89. // View your Google Spreadsheets
  90. SpreadsheetsReadonlyScope = "https://www.googleapis.com/auth/spreadsheets.readonly"
  91. )
  92. // NewService creates a new Service.
  93. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
  94. scopesOption := option.WithScopes(
  95. "https://www.googleapis.com/auth/drive",
  96. "https://www.googleapis.com/auth/drive.file",
  97. "https://www.googleapis.com/auth/drive.readonly",
  98. "https://www.googleapis.com/auth/presentations",
  99. "https://www.googleapis.com/auth/presentations.readonly",
  100. "https://www.googleapis.com/auth/spreadsheets",
  101. "https://www.googleapis.com/auth/spreadsheets.readonly",
  102. )
  103. // NOTE: prepend, so we don't override user-specified scopes.
  104. opts = append([]option.ClientOption{scopesOption}, opts...)
  105. client, endpoint, err := htransport.NewClient(ctx, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. s, err := New(client)
  110. if err != nil {
  111. return nil, err
  112. }
  113. if endpoint != "" {
  114. s.BasePath = endpoint
  115. }
  116. return s, nil
  117. }
  118. // New creates a new Service. It uses the provided http.Client for requests.
  119. //
  120. // Deprecated: please use NewService instead.
  121. // To provide a custom HTTP client, use option.WithHTTPClient.
  122. // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
  123. func New(client *http.Client) (*Service, error) {
  124. if client == nil {
  125. return nil, errors.New("client is nil")
  126. }
  127. s := &Service{client: client, BasePath: basePath}
  128. s.Presentations = NewPresentationsService(s)
  129. return s, nil
  130. }
  131. type Service struct {
  132. client *http.Client
  133. BasePath string // API endpoint base URL
  134. UserAgent string // optional additional User-Agent fragment
  135. Presentations *PresentationsService
  136. }
  137. func (s *Service) userAgent() string {
  138. if s.UserAgent == "" {
  139. return googleapi.UserAgent
  140. }
  141. return googleapi.UserAgent + " " + s.UserAgent
  142. }
  143. func NewPresentationsService(s *Service) *PresentationsService {
  144. rs := &PresentationsService{s: s}
  145. rs.Pages = NewPresentationsPagesService(s)
  146. return rs
  147. }
  148. type PresentationsService struct {
  149. s *Service
  150. Pages *PresentationsPagesService
  151. }
  152. func NewPresentationsPagesService(s *Service) *PresentationsPagesService {
  153. rs := &PresentationsPagesService{s: s}
  154. return rs
  155. }
  156. type PresentationsPagesService struct {
  157. s *Service
  158. }
  159. // AffineTransform: AffineTransform uses a 3x3 matrix with an implied
  160. // last row of [ 0 0 1 ]
  161. // to transform source coordinates (x,y) into destination coordinates
  162. // (x', y')
  163. // according to:
  164. //
  165. // x' x = shear_y scale_y translate_y
  166. // 1 [ 1 ]
  167. //
  168. // After transformation,
  169. //
  170. // x' = scale_x * x + shear_x * y + translate_x;
  171. // y' = scale_y * y + shear_y * x + translate_y;
  172. //
  173. // This message is therefore composed of these six matrix elements.
  174. type AffineTransform struct {
  175. // ScaleX: The X coordinate scaling element.
  176. ScaleX float64 `json:"scaleX,omitempty"`
  177. // ScaleY: The Y coordinate scaling element.
  178. ScaleY float64 `json:"scaleY,omitempty"`
  179. // ShearX: The X coordinate shearing element.
  180. ShearX float64 `json:"shearX,omitempty"`
  181. // ShearY: The Y coordinate shearing element.
  182. ShearY float64 `json:"shearY,omitempty"`
  183. // TranslateX: The X coordinate translation element.
  184. TranslateX float64 `json:"translateX,omitempty"`
  185. // TranslateY: The Y coordinate translation element.
  186. TranslateY float64 `json:"translateY,omitempty"`
  187. // Unit: The units for translate elements.
  188. //
  189. // Possible values:
  190. // "UNIT_UNSPECIFIED" - The units are unknown.
  191. // "EMU" - An English Metric Unit (EMU) is defined as 1/360,000 of a
  192. // centimeter
  193. // and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.
  194. // "PT" - A point, 1/72 of an inch.
  195. Unit string `json:"unit,omitempty"`
  196. // ForceSendFields is a list of field names (e.g. "ScaleX") to
  197. // unconditionally include in API requests. By default, fields with
  198. // empty values are omitted from API requests. However, any non-pointer,
  199. // non-interface field appearing in ForceSendFields will be sent to the
  200. // server regardless of whether the field is empty or not. This may be
  201. // used to include empty fields in Patch requests.
  202. ForceSendFields []string `json:"-"`
  203. // NullFields is a list of field names (e.g. "ScaleX") to include in API
  204. // requests with the JSON null value. By default, fields with empty
  205. // values are omitted from API requests. However, any field with an
  206. // empty value appearing in NullFields will be sent to the server as
  207. // null. It is an error if a field in this list has a non-empty value.
  208. // This may be used to include null fields in Patch requests.
  209. NullFields []string `json:"-"`
  210. }
  211. func (s *AffineTransform) MarshalJSON() ([]byte, error) {
  212. type NoMethod AffineTransform
  213. raw := NoMethod(*s)
  214. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  215. }
  216. func (s *AffineTransform) UnmarshalJSON(data []byte) error {
  217. type NoMethod AffineTransform
  218. var s1 struct {
  219. ScaleX gensupport.JSONFloat64 `json:"scaleX"`
  220. ScaleY gensupport.JSONFloat64 `json:"scaleY"`
  221. ShearX gensupport.JSONFloat64 `json:"shearX"`
  222. ShearY gensupport.JSONFloat64 `json:"shearY"`
  223. TranslateX gensupport.JSONFloat64 `json:"translateX"`
  224. TranslateY gensupport.JSONFloat64 `json:"translateY"`
  225. *NoMethod
  226. }
  227. s1.NoMethod = (*NoMethod)(s)
  228. if err := json.Unmarshal(data, &s1); err != nil {
  229. return err
  230. }
  231. s.ScaleX = float64(s1.ScaleX)
  232. s.ScaleY = float64(s1.ScaleY)
  233. s.ShearX = float64(s1.ShearX)
  234. s.ShearY = float64(s1.ShearY)
  235. s.TranslateX = float64(s1.TranslateX)
  236. s.TranslateY = float64(s1.TranslateY)
  237. return nil
  238. }
  239. // AutoText: A TextElement kind that represents auto text.
  240. type AutoText struct {
  241. // Content: The rendered content of this auto text, if available.
  242. Content string `json:"content,omitempty"`
  243. // Style: The styling applied to this auto text.
  244. Style *TextStyle `json:"style,omitempty"`
  245. // Type: The type of this auto text.
  246. //
  247. // Possible values:
  248. // "TYPE_UNSPECIFIED" - An unspecified autotext type.
  249. // "SLIDE_NUMBER" - Type for autotext that represents the current
  250. // slide number.
  251. Type string `json:"type,omitempty"`
  252. // ForceSendFields is a list of field names (e.g. "Content") to
  253. // unconditionally include in API requests. By default, fields with
  254. // empty values are omitted from API requests. However, any non-pointer,
  255. // non-interface field appearing in ForceSendFields will be sent to the
  256. // server regardless of whether the field is empty or not. This may be
  257. // used to include empty fields in Patch requests.
  258. ForceSendFields []string `json:"-"`
  259. // NullFields is a list of field names (e.g. "Content") to include in
  260. // API requests with the JSON null value. By default, fields with empty
  261. // values are omitted from API requests. However, any field with an
  262. // empty value appearing in NullFields will be sent to the server as
  263. // null. It is an error if a field in this list has a non-empty value.
  264. // This may be used to include null fields in Patch requests.
  265. NullFields []string `json:"-"`
  266. }
  267. func (s *AutoText) MarshalJSON() ([]byte, error) {
  268. type NoMethod AutoText
  269. raw := NoMethod(*s)
  270. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  271. }
  272. // BatchUpdatePresentationRequest: Request message for
  273. // PresentationsService.BatchUpdatePresentation.
  274. type BatchUpdatePresentationRequest struct {
  275. // Requests: A list of updates to apply to the presentation.
  276. Requests []*Request `json:"requests,omitempty"`
  277. // WriteControl: Provides control over how write requests are executed.
  278. WriteControl *WriteControl `json:"writeControl,omitempty"`
  279. // ForceSendFields is a list of field names (e.g. "Requests") to
  280. // unconditionally include in API requests. By default, fields with
  281. // empty values are omitted from API requests. However, any non-pointer,
  282. // non-interface field appearing in ForceSendFields will be sent to the
  283. // server regardless of whether the field is empty or not. This may be
  284. // used to include empty fields in Patch requests.
  285. ForceSendFields []string `json:"-"`
  286. // NullFields is a list of field names (e.g. "Requests") to include in
  287. // API requests with the JSON null value. By default, fields with empty
  288. // values are omitted from API requests. However, any field with an
  289. // empty value appearing in NullFields will be sent to the server as
  290. // null. It is an error if a field in this list has a non-empty value.
  291. // This may be used to include null fields in Patch requests.
  292. NullFields []string `json:"-"`
  293. }
  294. func (s *BatchUpdatePresentationRequest) MarshalJSON() ([]byte, error) {
  295. type NoMethod BatchUpdatePresentationRequest
  296. raw := NoMethod(*s)
  297. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  298. }
  299. // BatchUpdatePresentationResponse: Response message from a batch
  300. // update.
  301. type BatchUpdatePresentationResponse struct {
  302. // PresentationId: The presentation the updates were applied to.
  303. PresentationId string `json:"presentationId,omitempty"`
  304. // Replies: The reply of the updates. This maps 1:1 with the updates,
  305. // although
  306. // replies to some requests may be empty.
  307. Replies []*Response `json:"replies,omitempty"`
  308. // WriteControl: The updated write control after applying the request.
  309. WriteControl *WriteControl `json:"writeControl,omitempty"`
  310. // ServerResponse contains the HTTP response code and headers from the
  311. // server.
  312. googleapi.ServerResponse `json:"-"`
  313. // ForceSendFields is a list of field names (e.g. "PresentationId") to
  314. // unconditionally include in API requests. By default, fields with
  315. // empty values are omitted from API requests. However, any non-pointer,
  316. // non-interface field appearing in ForceSendFields will be sent to the
  317. // server regardless of whether the field is empty or not. This may be
  318. // used to include empty fields in Patch requests.
  319. ForceSendFields []string `json:"-"`
  320. // NullFields is a list of field names (e.g. "PresentationId") to
  321. // include in API requests with the JSON null value. By default, fields
  322. // with empty values are omitted from API requests. However, any field
  323. // with an empty value appearing in NullFields will be sent to the
  324. // server as null. It is an error if a field in this list has a
  325. // non-empty value. This may be used to include null fields in Patch
  326. // requests.
  327. NullFields []string `json:"-"`
  328. }
  329. func (s *BatchUpdatePresentationResponse) MarshalJSON() ([]byte, error) {
  330. type NoMethod BatchUpdatePresentationResponse
  331. raw := NoMethod(*s)
  332. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  333. }
  334. // Bullet: Describes the bullet of a paragraph.
  335. type Bullet struct {
  336. // BulletStyle: The paragraph specific text style applied to this
  337. // bullet.
  338. BulletStyle *TextStyle `json:"bulletStyle,omitempty"`
  339. // Glyph: The rendered bullet glyph for this paragraph.
  340. Glyph string `json:"glyph,omitempty"`
  341. // ListId: The ID of the list this paragraph belongs to.
  342. ListId string `json:"listId,omitempty"`
  343. // NestingLevel: The nesting level of this paragraph in the list.
  344. NestingLevel int64 `json:"nestingLevel,omitempty"`
  345. // ForceSendFields is a list of field names (e.g. "BulletStyle") to
  346. // unconditionally include in API requests. By default, fields with
  347. // empty values are omitted from API requests. However, any non-pointer,
  348. // non-interface field appearing in ForceSendFields will be sent to the
  349. // server regardless of whether the field is empty or not. This may be
  350. // used to include empty fields in Patch requests.
  351. ForceSendFields []string `json:"-"`
  352. // NullFields is a list of field names (e.g. "BulletStyle") to include
  353. // in API requests with the JSON null value. By default, fields with
  354. // empty values are omitted from API requests. However, any field with
  355. // an empty value appearing in NullFields will be sent to the server as
  356. // null. It is an error if a field in this list has a non-empty value.
  357. // This may be used to include null fields in Patch requests.
  358. NullFields []string `json:"-"`
  359. }
  360. func (s *Bullet) MarshalJSON() ([]byte, error) {
  361. type NoMethod Bullet
  362. raw := NoMethod(*s)
  363. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  364. }
  365. // ColorScheme: The palette of predefined colors for a page.
  366. type ColorScheme struct {
  367. // Colors: The ThemeColorType and corresponding concrete color pairs.
  368. Colors []*ThemeColorPair `json:"colors,omitempty"`
  369. // ForceSendFields is a list of field names (e.g. "Colors") to
  370. // unconditionally include in API requests. By default, fields with
  371. // empty values are omitted from API requests. However, any non-pointer,
  372. // non-interface field appearing in ForceSendFields will be sent to the
  373. // server regardless of whether the field is empty or not. This may be
  374. // used to include empty fields in Patch requests.
  375. ForceSendFields []string `json:"-"`
  376. // NullFields is a list of field names (e.g. "Colors") to include in API
  377. // requests with the JSON null value. By default, fields with empty
  378. // values are omitted from API requests. However, any field with an
  379. // empty value appearing in NullFields will be sent to the server as
  380. // null. It is an error if a field in this list has a non-empty value.
  381. // This may be used to include null fields in Patch requests.
  382. NullFields []string `json:"-"`
  383. }
  384. func (s *ColorScheme) MarshalJSON() ([]byte, error) {
  385. type NoMethod ColorScheme
  386. raw := NoMethod(*s)
  387. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  388. }
  389. // ColorStop: A color and position in a gradient band.
  390. type ColorStop struct {
  391. // Alpha: The alpha value of this color in the gradient band. Defaults
  392. // to 1.0,
  393. // fully opaque.
  394. Alpha float64 `json:"alpha,omitempty"`
  395. // Color: The color of the gradient stop.
  396. Color *OpaqueColor `json:"color,omitempty"`
  397. // Position: The relative position of the color stop in the gradient
  398. // band measured
  399. // in percentage. The value should be in the interval [0.0, 1.0].
  400. Position float64 `json:"position,omitempty"`
  401. // ForceSendFields is a list of field names (e.g. "Alpha") to
  402. // unconditionally include in API requests. By default, fields with
  403. // empty values are omitted from API requests. However, any non-pointer,
  404. // non-interface field appearing in ForceSendFields will be sent to the
  405. // server regardless of whether the field is empty or not. This may be
  406. // used to include empty fields in Patch requests.
  407. ForceSendFields []string `json:"-"`
  408. // NullFields is a list of field names (e.g. "Alpha") to include in API
  409. // requests with the JSON null value. By default, fields with empty
  410. // values are omitted from API requests. However, any field with an
  411. // empty value appearing in NullFields will be sent to the server as
  412. // null. It is an error if a field in this list has a non-empty value.
  413. // This may be used to include null fields in Patch requests.
  414. NullFields []string `json:"-"`
  415. }
  416. func (s *ColorStop) MarshalJSON() ([]byte, error) {
  417. type NoMethod ColorStop
  418. raw := NoMethod(*s)
  419. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  420. }
  421. func (s *ColorStop) UnmarshalJSON(data []byte) error {
  422. type NoMethod ColorStop
  423. var s1 struct {
  424. Alpha gensupport.JSONFloat64 `json:"alpha"`
  425. Position gensupport.JSONFloat64 `json:"position"`
  426. *NoMethod
  427. }
  428. s1.NoMethod = (*NoMethod)(s)
  429. if err := json.Unmarshal(data, &s1); err != nil {
  430. return err
  431. }
  432. s.Alpha = float64(s1.Alpha)
  433. s.Position = float64(s1.Position)
  434. return nil
  435. }
  436. // CreateImageRequest: Creates an image.
  437. type CreateImageRequest struct {
  438. // ElementProperties: The element properties for the image.
  439. //
  440. // When the aspect ratio of the provided size does not match the image
  441. // aspect
  442. // ratio, the image is scaled and centered with respect to the size in
  443. // order
  444. // to maintain aspect ratio. The provided transform is applied after
  445. // this
  446. // operation.
  447. //
  448. // The PageElementProperties.size property is
  449. // optional. If you don't specify the size, the default size of the
  450. // image is
  451. // used.
  452. //
  453. // The PageElementProperties.transform property is
  454. // optional. If you don't specify a transform, the image will be placed
  455. // at the
  456. // top left corner of the page.
  457. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  458. // ObjectId: A user-supplied object ID.
  459. //
  460. // If you specify an ID, it must be unique among all pages and page
  461. // elements
  462. // in the presentation. The ID must start with an alphanumeric character
  463. // or an
  464. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  465. // may include those as well as a hyphen or colon (matches
  466. // regex
  467. // `[a-zA-Z0-9_-:]`).
  468. // The length of the ID must not be less than 5 or greater than 50.
  469. //
  470. // If you don't specify an ID, a unique one is generated.
  471. ObjectId string `json:"objectId,omitempty"`
  472. // Url: The image URL.
  473. //
  474. // The image is fetched once at insertion time and a copy is stored
  475. // for
  476. // display inside the presentation. Images must be less than 50MB in
  477. // size,
  478. // cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
  479. // GIF
  480. // format.
  481. //
  482. // The provided URL can be at most 2 kB in length. The URL itself is
  483. // saved
  484. // with the image, and exposed via the Image.source_url field.
  485. Url string `json:"url,omitempty"`
  486. // ForceSendFields is a list of field names (e.g. "ElementProperties")
  487. // to unconditionally include in API requests. By default, fields with
  488. // empty values are omitted from API requests. However, any non-pointer,
  489. // non-interface field appearing in ForceSendFields will be sent to the
  490. // server regardless of whether the field is empty or not. This may be
  491. // used to include empty fields in Patch requests.
  492. ForceSendFields []string `json:"-"`
  493. // NullFields is a list of field names (e.g. "ElementProperties") to
  494. // include in API requests with the JSON null value. By default, fields
  495. // with empty values are omitted from API requests. However, any field
  496. // with an empty value appearing in NullFields will be sent to the
  497. // server as null. It is an error if a field in this list has a
  498. // non-empty value. This may be used to include null fields in Patch
  499. // requests.
  500. NullFields []string `json:"-"`
  501. }
  502. func (s *CreateImageRequest) MarshalJSON() ([]byte, error) {
  503. type NoMethod CreateImageRequest
  504. raw := NoMethod(*s)
  505. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  506. }
  507. // CreateImageResponse: The result of creating an image.
  508. type CreateImageResponse struct {
  509. // ObjectId: The object ID of the created image.
  510. ObjectId string `json:"objectId,omitempty"`
  511. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  512. // unconditionally include in API requests. By default, fields with
  513. // empty values are omitted from API requests. However, any non-pointer,
  514. // non-interface field appearing in ForceSendFields will be sent to the
  515. // server regardless of whether the field is empty or not. This may be
  516. // used to include empty fields in Patch requests.
  517. ForceSendFields []string `json:"-"`
  518. // NullFields is a list of field names (e.g. "ObjectId") to include in
  519. // API requests with the JSON null value. By default, fields with empty
  520. // values are omitted from API requests. However, any field with an
  521. // empty value appearing in NullFields will be sent to the server as
  522. // null. It is an error if a field in this list has a non-empty value.
  523. // This may be used to include null fields in Patch requests.
  524. NullFields []string `json:"-"`
  525. }
  526. func (s *CreateImageResponse) MarshalJSON() ([]byte, error) {
  527. type NoMethod CreateImageResponse
  528. raw := NoMethod(*s)
  529. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  530. }
  531. // CreateLineRequest: Creates a line.
  532. type CreateLineRequest struct {
  533. // Category: The category of the line to be created.
  534. //
  535. // The exact line type created is
  536. // determined based on the category and how it's routed to connect to
  537. // other
  538. // page elements.
  539. //
  540. // If you specify both a `category` and a `line_category`, the
  541. // `category`
  542. // takes precedence.
  543. //
  544. // If you do not specify a value for `category`, but specify a value
  545. // for
  546. // `line_category`, then the specified `line_category` value is
  547. // used.
  548. //
  549. // If you do not specify either, then STRAIGHT is used.
  550. //
  551. // Possible values:
  552. // "LINE_CATEGORY_UNSPECIFIED" - Unspecified line category.
  553. // "STRAIGHT" - Straight connectors, including straight connector 1.
  554. // "BENT" - Bent connectors, including bent connector 2 to 5.
  555. // "CURVED" - Curved connectors, including curved connector 2 to 5.
  556. Category string `json:"category,omitempty"`
  557. // ElementProperties: The element properties for the line.
  558. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  559. // LineCategory: The category of the line to be
  560. // created.
  561. //
  562. // <b>Deprecated</b>: use `category` instead.
  563. //
  564. // The exact line type created is
  565. // determined based on the category and how it's routed to connect to
  566. // other
  567. // page elements.
  568. //
  569. // If you specify both a `category` and a `line_category`, the
  570. // `category`
  571. // takes precedence.
  572. //
  573. // Possible values:
  574. // "STRAIGHT" - Straight connectors, including straight connector 1.
  575. // The is the default
  576. // category when one is not specified.
  577. // "BENT" - Bent connectors, including bent connector 2 to 5.
  578. // "CURVED" - Curved connectors, including curved connector 2 to 5.
  579. LineCategory string `json:"lineCategory,omitempty"`
  580. // ObjectId: A user-supplied object ID.
  581. //
  582. // If you specify an ID, it must be unique among all pages and page
  583. // elements
  584. // in the presentation. The ID must start with an alphanumeric character
  585. // or an
  586. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  587. // may include those as well as a hyphen or colon (matches
  588. // regex
  589. // `[a-zA-Z0-9_-:]`).
  590. // The length of the ID must not be less than 5 or greater than 50.
  591. //
  592. // If you don't specify an ID, a unique one is generated.
  593. ObjectId string `json:"objectId,omitempty"`
  594. // ForceSendFields is a list of field names (e.g. "Category") to
  595. // unconditionally include in API requests. By default, fields with
  596. // empty values are omitted from API requests. However, any non-pointer,
  597. // non-interface field appearing in ForceSendFields will be sent to the
  598. // server regardless of whether the field is empty or not. This may be
  599. // used to include empty fields in Patch requests.
  600. ForceSendFields []string `json:"-"`
  601. // NullFields is a list of field names (e.g. "Category") to include in
  602. // API requests with the JSON null value. By default, fields with empty
  603. // values are omitted from API requests. However, any field with an
  604. // empty value appearing in NullFields will be sent to the server as
  605. // null. It is an error if a field in this list has a non-empty value.
  606. // This may be used to include null fields in Patch requests.
  607. NullFields []string `json:"-"`
  608. }
  609. func (s *CreateLineRequest) MarshalJSON() ([]byte, error) {
  610. type NoMethod CreateLineRequest
  611. raw := NoMethod(*s)
  612. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  613. }
  614. // CreateLineResponse: The result of creating a line.
  615. type CreateLineResponse struct {
  616. // ObjectId: The object ID of the created line.
  617. ObjectId string `json:"objectId,omitempty"`
  618. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  619. // unconditionally include in API requests. By default, fields with
  620. // empty values are omitted from API requests. However, any non-pointer,
  621. // non-interface field appearing in ForceSendFields will be sent to the
  622. // server regardless of whether the field is empty or not. This may be
  623. // used to include empty fields in Patch requests.
  624. ForceSendFields []string `json:"-"`
  625. // NullFields is a list of field names (e.g. "ObjectId") to include in
  626. // API requests with the JSON null value. By default, fields with empty
  627. // values are omitted from API requests. However, any field with an
  628. // empty value appearing in NullFields will be sent to the server as
  629. // null. It is an error if a field in this list has a non-empty value.
  630. // This may be used to include null fields in Patch requests.
  631. NullFields []string `json:"-"`
  632. }
  633. func (s *CreateLineResponse) MarshalJSON() ([]byte, error) {
  634. type NoMethod CreateLineResponse
  635. raw := NoMethod(*s)
  636. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  637. }
  638. // CreateParagraphBulletsRequest: Creates bullets for all of the
  639. // paragraphs that overlap with the given
  640. // text index range.
  641. //
  642. // The nesting level of each paragraph will be determined by counting
  643. // leading
  644. // tabs in front of each paragraph. To avoid excess space between the
  645. // bullet and
  646. // the corresponding paragraph, these leading tabs are removed by this
  647. // request.
  648. // This may change the indices of parts of the text.
  649. //
  650. // If the paragraph immediately before paragraphs being updated is in a
  651. // list
  652. // with a matching preset, the paragraphs being updated are added to
  653. // that
  654. // preceding list.
  655. type CreateParagraphBulletsRequest struct {
  656. // BulletPreset: The kinds of bullet glyphs to be used. Defaults to
  657. // the
  658. // `BULLET_DISC_CIRCLE_SQUARE` preset.
  659. //
  660. // Possible values:
  661. // "BULLET_DISC_CIRCLE_SQUARE" - A bulleted list with a `DISC`,
  662. // `CIRCLE` and `SQUARE` bullet glyph for the
  663. // first 3 list nesting levels.
  664. // "BULLET_DIAMONDX_ARROW3D_SQUARE" - A bulleted list with a
  665. // `DIAMONDX`, `ARROW3D` and `SQUARE` bullet glyph for
  666. // the first 3 list nesting levels.
  667. // "BULLET_CHECKBOX" - A bulleted list with `CHECKBOX` bullet glyphs
  668. // for all list nesting levels.
  669. // "BULLET_ARROW_DIAMOND_DISC" - A bulleted list with a `ARROW`,
  670. // `DIAMOND` and `DISC` bullet glyph for
  671. // the first 3 list nesting levels.
  672. // "BULLET_STAR_CIRCLE_SQUARE" - A bulleted list with a `STAR`,
  673. // `CIRCLE` and `SQUARE` bullet glyph for
  674. // the first 3 list nesting levels.
  675. // "BULLET_ARROW3D_CIRCLE_SQUARE" - A bulleted list with a `ARROW3D`,
  676. // `CIRCLE` and `SQUARE` bullet glyph for
  677. // the first 3 list nesting levels.
  678. // "BULLET_LEFTTRIANGLE_DIAMOND_DISC" - A bulleted list with a
  679. // `LEFTTRIANGLE`, `DIAMOND` and `DISC` bullet glyph
  680. // for the first 3 list nesting levels.
  681. // "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE" - A bulleted list with a
  682. // `DIAMONDX`, `HOLLOWDIAMOND` and `SQUARE` bullet
  683. // glyph for the first 3 list nesting levels.
  684. // "BULLET_DIAMOND_CIRCLE_SQUARE" - A bulleted list with a `DIAMOND`,
  685. // `CIRCLE` and `SQUARE` bullet glyph
  686. // for the first 3 list nesting levels.
  687. // "NUMBERED_DIGIT_ALPHA_ROMAN" - A numbered list with `DIGIT`,
  688. // `ALPHA` and `ROMAN` numeric glyphs for
  689. // the first 3 list nesting levels, followed by periods.
  690. // "NUMBERED_DIGIT_ALPHA_ROMAN_PARENS" - A numbered list with `DIGIT`,
  691. // `ALPHA` and `ROMAN` numeric glyphs for
  692. // the first 3 list nesting levels, followed by parenthesis.
  693. // "NUMBERED_DIGIT_NESTED" - A numbered list with `DIGIT` numeric
  694. // glyphs separated by periods, where
  695. // each nesting level uses the previous nesting level's glyph as a
  696. // prefix.
  697. // For example: '1.', '1.1.', '2.', '2.2.'.
  698. // "NUMBERED_UPPERALPHA_ALPHA_ROMAN" - A numbered list with
  699. // `UPPERALPHA`, `ALPHA` and `ROMAN` numeric glyphs for
  700. // the first 3 list nesting levels, followed by periods.
  701. // "NUMBERED_UPPERROMAN_UPPERALPHA_DIGIT" - A numbered list with
  702. // `UPPERROMAN`, `UPPERALPHA` and `DIGIT` numeric glyphs
  703. // for the first 3 list nesting levels, followed by periods.
  704. // "NUMBERED_ZERODIGIT_ALPHA_ROMAN" - A numbered list with
  705. // `ZERODIGIT`, `ALPHA` and `ROMAN` numeric glyphs for
  706. // the first 3 list nesting levels, followed by periods.
  707. BulletPreset string `json:"bulletPreset,omitempty"`
  708. // CellLocation: The optional table cell location if the text to be
  709. // modified is in a table
  710. // cell. If present, the object_id must refer to a table.
  711. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  712. // ObjectId: The object ID of the shape or table containing the text to
  713. // add bullets to.
  714. ObjectId string `json:"objectId,omitempty"`
  715. // TextRange: The range of text to apply the bullet presets to, based on
  716. // TextElement indexes.
  717. TextRange *Range `json:"textRange,omitempty"`
  718. // ForceSendFields is a list of field names (e.g. "BulletPreset") to
  719. // unconditionally include in API requests. By default, fields with
  720. // empty values are omitted from API requests. However, any non-pointer,
  721. // non-interface field appearing in ForceSendFields will be sent to the
  722. // server regardless of whether the field is empty or not. This may be
  723. // used to include empty fields in Patch requests.
  724. ForceSendFields []string `json:"-"`
  725. // NullFields is a list of field names (e.g. "BulletPreset") to include
  726. // in API requests with the JSON null value. By default, fields with
  727. // empty values are omitted from API requests. However, any field with
  728. // an empty value appearing in NullFields will be sent to the server as
  729. // null. It is an error if a field in this list has a non-empty value.
  730. // This may be used to include null fields in Patch requests.
  731. NullFields []string `json:"-"`
  732. }
  733. func (s *CreateParagraphBulletsRequest) MarshalJSON() ([]byte, error) {
  734. type NoMethod CreateParagraphBulletsRequest
  735. raw := NoMethod(*s)
  736. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  737. }
  738. // CreateShapeRequest: Creates a new shape.
  739. type CreateShapeRequest struct {
  740. // ElementProperties: The element properties for the shape.
  741. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  742. // ObjectId: A user-supplied object ID.
  743. //
  744. // If you specify an ID, it must be unique among all pages and page
  745. // elements
  746. // in the presentation. The ID must start with an alphanumeric character
  747. // or an
  748. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  749. // may include those as well as a hyphen or colon (matches
  750. // regex
  751. // `[a-zA-Z0-9_-:]`).
  752. // The length of the ID must not be less than 5 or greater than 50.
  753. // If empty, a unique identifier will be generated.
  754. ObjectId string `json:"objectId,omitempty"`
  755. // ShapeType: The shape type.
  756. //
  757. // Possible values:
  758. // "TYPE_UNSPECIFIED" - The shape type that is not predefined.
  759. // "TEXT_BOX" - Text box shape.
  760. // "RECTANGLE" - Rectangle shape. Corresponds to ECMA-376 ST_ShapeType
  761. // 'rect'.
  762. // "ROUND_RECTANGLE" - Round corner rectangle shape. Corresponds to
  763. // ECMA-376 ST_ShapeType
  764. // 'roundRect'
  765. // "ELLIPSE" - Ellipse shape. Corresponds to ECMA-376 ST_ShapeType
  766. // 'ellipse'
  767. // "ARC" - Curved arc shape. Corresponds to ECMA-376 ST_ShapeType
  768. // 'arc'
  769. // "BENT_ARROW" - Bent arrow shape. Corresponds to ECMA-376
  770. // ST_ShapeType 'bentArrow'
  771. // "BENT_UP_ARROW" - Bent up arrow shape. Corresponds to ECMA-376
  772. // ST_ShapeType 'bentUpArrow'
  773. // "BEVEL" - Bevel shape. Corresponds to ECMA-376 ST_ShapeType 'bevel'
  774. // "BLOCK_ARC" - Block arc shape. Corresponds to ECMA-376 ST_ShapeType
  775. // 'blockArc'
  776. // "BRACE_PAIR" - Brace pair shape. Corresponds to ECMA-376
  777. // ST_ShapeType 'bracePair'
  778. // "BRACKET_PAIR" - Bracket pair shape. Corresponds to ECMA-376
  779. // ST_ShapeType 'bracketPair'
  780. // "CAN" - Can shape. Corresponds to ECMA-376 ST_ShapeType 'can'
  781. // "CHEVRON" - Chevron shape. Corresponds to ECMA-376 ST_ShapeType
  782. // 'chevron'
  783. // "CHORD" - Chord shape. Corresponds to ECMA-376 ST_ShapeType 'chord'
  784. // "CLOUD" - Cloud shape. Corresponds to ECMA-376 ST_ShapeType 'cloud'
  785. // "CORNER" - Corner shape. Corresponds to ECMA-376 ST_ShapeType
  786. // 'corner'
  787. // "CUBE" - Cube shape. Corresponds to ECMA-376 ST_ShapeType 'cube'
  788. // "CURVED_DOWN_ARROW" - Curved down arrow shape. Corresponds to
  789. // ECMA-376 ST_ShapeType
  790. // 'curvedDownArrow'
  791. // "CURVED_LEFT_ARROW" - Curved left arrow shape. Corresponds to
  792. // ECMA-376 ST_ShapeType
  793. // 'curvedLeftArrow'
  794. // "CURVED_RIGHT_ARROW" - Curved right arrow shape. Corresponds to
  795. // ECMA-376 ST_ShapeType
  796. // 'curvedRightArrow'
  797. // "CURVED_UP_ARROW" - Curved up arrow shape. Corresponds to ECMA-376
  798. // ST_ShapeType
  799. // 'curvedUpArrow'
  800. // "DECAGON" - Decagon shape. Corresponds to ECMA-376 ST_ShapeType
  801. // 'decagon'
  802. // "DIAGONAL_STRIPE" - Diagonal stripe shape. Corresponds to ECMA-376
  803. // ST_ShapeType 'diagStripe'
  804. // "DIAMOND" - Diamond shape. Corresponds to ECMA-376 ST_ShapeType
  805. // 'diamond'
  806. // "DODECAGON" - Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType
  807. // 'dodecagon'
  808. // "DONUT" - Donut shape. Corresponds to ECMA-376 ST_ShapeType 'donut'
  809. // "DOUBLE_WAVE" - Double wave shape. Corresponds to ECMA-376
  810. // ST_ShapeType 'doubleWave'
  811. // "DOWN_ARROW" - Down arrow shape. Corresponds to ECMA-376
  812. // ST_ShapeType 'downArrow'
  813. // "DOWN_ARROW_CALLOUT" - Callout down arrow shape. Corresponds to
  814. // ECMA-376 ST_ShapeType
  815. // 'downArrowCallout'
  816. // "FOLDED_CORNER" - Folded corner shape. Corresponds to ECMA-376
  817. // ST_ShapeType 'foldedCorner'
  818. // "FRAME" - Frame shape. Corresponds to ECMA-376 ST_ShapeType 'frame'
  819. // "HALF_FRAME" - Half frame shape. Corresponds to ECMA-376
  820. // ST_ShapeType 'halfFrame'
  821. // "HEART" - Heart shape. Corresponds to ECMA-376 ST_ShapeType 'heart'
  822. // "HEPTAGON" - Heptagon shape. Corresponds to ECMA-376 ST_ShapeType
  823. // 'heptagon'
  824. // "HEXAGON" - Hexagon shape. Corresponds to ECMA-376 ST_ShapeType
  825. // 'hexagon'
  826. // "HOME_PLATE" - Home plate shape. Corresponds to ECMA-376
  827. // ST_ShapeType 'homePlate'
  828. // "HORIZONTAL_SCROLL" - Horizontal scroll shape. Corresponds to
  829. // ECMA-376 ST_ShapeType
  830. // 'horizontalScroll'
  831. // "IRREGULAR_SEAL_1" - Irregular seal 1 shape. Corresponds to
  832. // ECMA-376 ST_ShapeType
  833. // 'irregularSeal1'
  834. // "IRREGULAR_SEAL_2" - Irregular seal 2 shape. Corresponds to
  835. // ECMA-376 ST_ShapeType
  836. // 'irregularSeal2'
  837. // "LEFT_ARROW" - Left arrow shape. Corresponds to ECMA-376
  838. // ST_ShapeType 'leftArrow'
  839. // "LEFT_ARROW_CALLOUT" - Callout left arrow shape. Corresponds to
  840. // ECMA-376 ST_ShapeType
  841. // 'leftArrowCallout'
  842. // "LEFT_BRACE" - Left brace shape. Corresponds to ECMA-376
  843. // ST_ShapeType 'leftBrace'
  844. // "LEFT_BRACKET" - Left bracket shape. Corresponds to ECMA-376
  845. // ST_ShapeType 'leftBracket'
  846. // "LEFT_RIGHT_ARROW" - Left right arrow shape. Corresponds to
  847. // ECMA-376 ST_ShapeType
  848. // 'leftRightArrow'
  849. // "LEFT_RIGHT_ARROW_CALLOUT" - Callout left right arrow shape.
  850. // Corresponds to ECMA-376 ST_ShapeType
  851. // 'leftRightArrowCallout'
  852. // "LEFT_RIGHT_UP_ARROW" - Left right up arrow shape. Corresponds to
  853. // ECMA-376 ST_ShapeType
  854. // 'leftRightUpArrow'
  855. // "LEFT_UP_ARROW" - Left up arrow shape. Corresponds to ECMA-376
  856. // ST_ShapeType 'leftUpArrow'
  857. // "LIGHTNING_BOLT" - Lightning bolt shape. Corresponds to ECMA-376
  858. // ST_ShapeType
  859. // 'lightningBolt'
  860. // "MATH_DIVIDE" - Divide math shape. Corresponds to ECMA-376
  861. // ST_ShapeType 'mathDivide'
  862. // "MATH_EQUAL" - Equal math shape. Corresponds to ECMA-376
  863. // ST_ShapeType 'mathEqual'
  864. // "MATH_MINUS" - Minus math shape. Corresponds to ECMA-376
  865. // ST_ShapeType 'mathMinus'
  866. // "MATH_MULTIPLY" - Multiply math shape. Corresponds to ECMA-376
  867. // ST_ShapeType 'mathMultiply'
  868. // "MATH_NOT_EQUAL" - Not equal math shape. Corresponds to ECMA-376
  869. // ST_ShapeType 'mathNotEqual'
  870. // "MATH_PLUS" - Plus math shape. Corresponds to ECMA-376 ST_ShapeType
  871. // 'mathPlus'
  872. // "MOON" - Moon shape. Corresponds to ECMA-376 ST_ShapeType 'moon'
  873. // "NO_SMOKING" - No smoking shape. Corresponds to ECMA-376
  874. // ST_ShapeType 'noSmoking'
  875. // "NOTCHED_RIGHT_ARROW" - Notched right arrow shape. Corresponds to
  876. // ECMA-376 ST_ShapeType
  877. // 'notchedRightArrow'
  878. // "OCTAGON" - Octagon shape. Corresponds to ECMA-376 ST_ShapeType
  879. // 'octagon'
  880. // "PARALLELOGRAM" - Parallelogram shape. Corresponds to ECMA-376
  881. // ST_ShapeType 'parallelogram'
  882. // "PENTAGON" - Pentagon shape. Corresponds to ECMA-376 ST_ShapeType
  883. // 'pentagon'
  884. // "PIE" - Pie shape. Corresponds to ECMA-376 ST_ShapeType 'pie'
  885. // "PLAQUE" - Plaque shape. Corresponds to ECMA-376 ST_ShapeType
  886. // 'plaque'
  887. // "PLUS" - Plus shape. Corresponds to ECMA-376 ST_ShapeType 'plus'
  888. // "QUAD_ARROW" - Quad-arrow shape. Corresponds to ECMA-376
  889. // ST_ShapeType 'quadArrow'
  890. // "QUAD_ARROW_CALLOUT" - Callout quad-arrow shape. Corresponds to
  891. // ECMA-376 ST_ShapeType
  892. // 'quadArrowCallout'
  893. // "RIBBON" - Ribbon shape. Corresponds to ECMA-376 ST_ShapeType
  894. // 'ribbon'
  895. // "RIBBON_2" - Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType
  896. // 'ribbon2'
  897. // "RIGHT_ARROW" - Right arrow shape. Corresponds to ECMA-376
  898. // ST_ShapeType 'rightArrow'
  899. // "RIGHT_ARROW_CALLOUT" - Callout right arrow shape. Corresponds to
  900. // ECMA-376 ST_ShapeType
  901. // 'rightArrowCallout'
  902. // "RIGHT_BRACE" - Right brace shape. Corresponds to ECMA-376
  903. // ST_ShapeType 'rightBrace'
  904. // "RIGHT_BRACKET" - Right bracket shape. Corresponds to ECMA-376
  905. // ST_ShapeType 'rightBracket'
  906. // "ROUND_1_RECTANGLE" - One round corner rectangle shape. Corresponds
  907. // to ECMA-376 ST_ShapeType
  908. // 'round1Rect'
  909. // "ROUND_2_DIAGONAL_RECTANGLE" - Two diagonal round corner rectangle
  910. // shape. Corresponds to ECMA-376
  911. // ST_ShapeType 'round2DiagRect'
  912. // "ROUND_2_SAME_RECTANGLE" - Two same-side round corner rectangle
  913. // shape. Corresponds to ECMA-376
  914. // ST_ShapeType 'round2SameRect'
  915. // "RIGHT_TRIANGLE" - Right triangle shape. Corresponds to ECMA-376
  916. // ST_ShapeType 'rtTriangle'
  917. // "SMILEY_FACE" - Smiley face shape. Corresponds to ECMA-376
  918. // ST_ShapeType 'smileyFace'
  919. // "SNIP_1_RECTANGLE" - One snip corner rectangle shape. Corresponds
  920. // to ECMA-376 ST_ShapeType
  921. // 'snip1Rect'
  922. // "SNIP_2_DIAGONAL_RECTANGLE" - Two diagonal snip corner rectangle
  923. // shape. Corresponds to ECMA-376
  924. // ST_ShapeType 'snip2DiagRect'
  925. // "SNIP_2_SAME_RECTANGLE" - Two same-side snip corner rectangle
  926. // shape. Corresponds to ECMA-376
  927. // ST_ShapeType 'snip2SameRect'
  928. // "SNIP_ROUND_RECTANGLE" - One snip one round corner rectangle shape.
  929. // Corresponds to ECMA-376
  930. // ST_ShapeType 'snipRoundRect'
  931. // "STAR_10" - Ten pointed star shape. Corresponds to ECMA-376
  932. // ST_ShapeType 'star10'
  933. // "STAR_12" - Twelve pointed star shape. Corresponds to ECMA-376
  934. // ST_ShapeType 'star12'
  935. // "STAR_16" - Sixteen pointed star shape. Corresponds to ECMA-376
  936. // ST_ShapeType 'star16'
  937. // "STAR_24" - Twenty four pointed star shape. Corresponds to ECMA-376
  938. // ST_ShapeType
  939. // 'star24'
  940. // "STAR_32" - Thirty two pointed star shape. Corresponds to ECMA-376
  941. // ST_ShapeType
  942. // 'star32'
  943. // "STAR_4" - Four pointed star shape. Corresponds to ECMA-376
  944. // ST_ShapeType 'star4'
  945. // "STAR_5" - Five pointed star shape. Corresponds to ECMA-376
  946. // ST_ShapeType 'star5'
  947. // "STAR_6" - Six pointed star shape. Corresponds to ECMA-376
  948. // ST_ShapeType 'star6'
  949. // "STAR_7" - Seven pointed star shape. Corresponds to ECMA-376
  950. // ST_ShapeType 'star7'
  951. // "STAR_8" - Eight pointed star shape. Corresponds to ECMA-376
  952. // ST_ShapeType 'star8'
  953. // "STRIPED_RIGHT_ARROW" - Striped right arrow shape. Corresponds to
  954. // ECMA-376 ST_ShapeType
  955. // 'stripedRightArrow'
  956. // "SUN" - Sun shape. Corresponds to ECMA-376 ST_ShapeType 'sun'
  957. // "TRAPEZOID" - Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType
  958. // 'trapezoid'
  959. // "TRIANGLE" - Triangle shape. Corresponds to ECMA-376 ST_ShapeType
  960. // 'triangle'
  961. // "UP_ARROW" - Up arrow shape. Corresponds to ECMA-376 ST_ShapeType
  962. // 'upArrow'
  963. // "UP_ARROW_CALLOUT" - Callout up arrow shape. Corresponds to
  964. // ECMA-376 ST_ShapeType
  965. // 'upArrowCallout'
  966. // "UP_DOWN_ARROW" - Up down arrow shape. Corresponds to ECMA-376
  967. // ST_ShapeType 'upDownArrow'
  968. // "UTURN_ARROW" - U-turn arrow shape. Corresponds to ECMA-376
  969. // ST_ShapeType 'uturnArrow'
  970. // "VERTICAL_SCROLL" - Vertical scroll shape. Corresponds to ECMA-376
  971. // ST_ShapeType
  972. // 'verticalScroll'
  973. // "WAVE" - Wave shape. Corresponds to ECMA-376 ST_ShapeType 'wave'
  974. // "WEDGE_ELLIPSE_CALLOUT" - Callout wedge ellipse shape. Corresponds
  975. // to ECMA-376 ST_ShapeType
  976. // 'wedgeEllipseCallout'
  977. // "WEDGE_RECTANGLE_CALLOUT" - Callout wedge rectangle shape.
  978. // Corresponds to ECMA-376 ST_ShapeType
  979. // 'wedgeRectCallout'
  980. // "WEDGE_ROUND_RECTANGLE_CALLOUT" - Callout wedge round rectangle
  981. // shape. Corresponds to ECMA-376 ST_ShapeType
  982. // 'wedgeRoundRectCallout'
  983. // "FLOW_CHART_ALTERNATE_PROCESS" - Alternate process flow shape.
  984. // Corresponds to ECMA-376 ST_ShapeType
  985. // 'flowChartAlternateProcess'
  986. // "FLOW_CHART_COLLATE" - Collate flow shape. Corresponds to ECMA-376
  987. // ST_ShapeType
  988. // 'flowChartCollate'
  989. // "FLOW_CHART_CONNECTOR" - Connector flow shape. Corresponds to
  990. // ECMA-376 ST_ShapeType
  991. // 'flowChartConnector'
  992. // "FLOW_CHART_DECISION" - Decision flow shape. Corresponds to
  993. // ECMA-376 ST_ShapeType
  994. // 'flowChartDecision'
  995. // "FLOW_CHART_DELAY" - Delay flow shape. Corresponds to ECMA-376
  996. // ST_ShapeType 'flowChartDelay'
  997. // "FLOW_CHART_DISPLAY" - Display flow shape. Corresponds to ECMA-376
  998. // ST_ShapeType
  999. // 'flowChartDisplay'
  1000. // "FLOW_CHART_DOCUMENT" - Document flow shape. Corresponds to
  1001. // ECMA-376 ST_ShapeType
  1002. // 'flowChartDocument'
  1003. // "FLOW_CHART_EXTRACT" - Extract flow shape. Corresponds to ECMA-376
  1004. // ST_ShapeType
  1005. // 'flowChartExtract'
  1006. // "FLOW_CHART_INPUT_OUTPUT" - Input output flow shape. Corresponds to
  1007. // ECMA-376 ST_ShapeType
  1008. // 'flowChartInputOutput'
  1009. // "FLOW_CHART_INTERNAL_STORAGE" - Internal storage flow shape.
  1010. // Corresponds to ECMA-376 ST_ShapeType
  1011. // 'flowChartInternalStorage'
  1012. // "FLOW_CHART_MAGNETIC_DISK" - Magnetic disk flow shape. Corresponds
  1013. // to ECMA-376 ST_ShapeType
  1014. // 'flowChartMagneticDisk'
  1015. // "FLOW_CHART_MAGNETIC_DRUM" - Magnetic drum flow shape. Corresponds
  1016. // to ECMA-376 ST_ShapeType
  1017. // 'flowChartMagneticDrum'
  1018. // "FLOW_CHART_MAGNETIC_TAPE" - Magnetic tape flow shape. Corresponds
  1019. // to ECMA-376 ST_ShapeType
  1020. // 'flowChartMagneticTape'
  1021. // "FLOW_CHART_MANUAL_INPUT" - Manual input flow shape. Corresponds to
  1022. // ECMA-376 ST_ShapeType
  1023. // 'flowChartManualInput'
  1024. // "FLOW_CHART_MANUAL_OPERATION" - Manual operation flow shape.
  1025. // Corresponds to ECMA-376 ST_ShapeType
  1026. // 'flowChartManualOperation'
  1027. // "FLOW_CHART_MERGE" - Merge flow shape. Corresponds to ECMA-376
  1028. // ST_ShapeType 'flowChartMerge'
  1029. // "FLOW_CHART_MULTIDOCUMENT" - Multi-document flow shape. Corresponds
  1030. // to ECMA-376 ST_ShapeType
  1031. // 'flowChartMultidocument'
  1032. // "FLOW_CHART_OFFLINE_STORAGE" - Offline storage flow shape.
  1033. // Corresponds to ECMA-376 ST_ShapeType
  1034. // 'flowChartOfflineStorage'
  1035. // "FLOW_CHART_OFFPAGE_CONNECTOR" - Off-page connector flow shape.
  1036. // Corresponds to ECMA-376 ST_ShapeType
  1037. // 'flowChartOffpageConnector'
  1038. // "FLOW_CHART_ONLINE_STORAGE" - Online storage flow shape.
  1039. // Corresponds to ECMA-376 ST_ShapeType
  1040. // 'flowChartOnlineStorage'
  1041. // "FLOW_CHART_OR" - Or flow shape. Corresponds to ECMA-376
  1042. // ST_ShapeType 'flowChartOr'
  1043. // "FLOW_CHART_PREDEFINED_PROCESS" - Predefined process flow shape.
  1044. // Corresponds to ECMA-376 ST_ShapeType
  1045. // 'flowChartPredefinedProcess'
  1046. // "FLOW_CHART_PREPARATION" - Preparation flow shape. Corresponds to
  1047. // ECMA-376 ST_ShapeType
  1048. // 'flowChartPreparation'
  1049. // "FLOW_CHART_PROCESS" - Process flow shape. Corresponds to ECMA-376
  1050. // ST_ShapeType
  1051. // 'flowChartProcess'
  1052. // "FLOW_CHART_PUNCHED_CARD" - Punched card flow shape. Corresponds to
  1053. // ECMA-376 ST_ShapeType
  1054. // 'flowChartPunchedCard'
  1055. // "FLOW_CHART_PUNCHED_TAPE" - Punched tape flow shape. Corresponds to
  1056. // ECMA-376 ST_ShapeType
  1057. // 'flowChartPunchedTape'
  1058. // "FLOW_CHART_SORT" - Sort flow shape. Corresponds to ECMA-376
  1059. // ST_ShapeType 'flowChartSort'
  1060. // "FLOW_CHART_SUMMING_JUNCTION" - Summing junction flow shape.
  1061. // Corresponds to ECMA-376 ST_ShapeType
  1062. // 'flowChartSummingJunction'
  1063. // "FLOW_CHART_TERMINATOR" - Terminator flow shape. Corresponds to
  1064. // ECMA-376 ST_ShapeType
  1065. // 'flowChartTerminator'
  1066. // "ARROW_EAST" - East arrow shape.
  1067. // "ARROW_NORTH_EAST" - Northeast arrow shape.
  1068. // "ARROW_NORTH" - North arrow shape.
  1069. // "SPEECH" - Speech shape.
  1070. // "STARBURST" - Star burst shape.
  1071. // "TEARDROP" - Teardrop shape. Corresponds to ECMA-376 ST_ShapeType
  1072. // 'teardrop'
  1073. // "ELLIPSE_RIBBON" - Ellipse ribbon shape. Corresponds to ECMA-376
  1074. // ST_ShapeType
  1075. // 'ellipseRibbon'
  1076. // "ELLIPSE_RIBBON_2" - Ellipse ribbon 2 shape. Corresponds to
  1077. // ECMA-376 ST_ShapeType
  1078. // 'ellipseRibbon2'
  1079. // "CLOUD_CALLOUT" - Callout cloud shape. Corresponds to ECMA-376
  1080. // ST_ShapeType 'cloudCallout'
  1081. // "CUSTOM" - Custom shape.
  1082. ShapeType string `json:"shapeType,omitempty"`
  1083. // ForceSendFields is a list of field names (e.g. "ElementProperties")
  1084. // to unconditionally include in API requests. By default, fields with
  1085. // empty values are omitted from API requests. However, any non-pointer,
  1086. // non-interface field appearing in ForceSendFields will be sent to the
  1087. // server regardless of whether the field is empty or not. This may be
  1088. // used to include empty fields in Patch requests.
  1089. ForceSendFields []string `json:"-"`
  1090. // NullFields is a list of field names (e.g. "ElementProperties") to
  1091. // include in API requests with the JSON null value. By default, fields
  1092. // with empty values are omitted from API requests. However, any field
  1093. // with an empty value appearing in NullFields will be sent to the
  1094. // server as null. It is an error if a field in this list has a
  1095. // non-empty value. This may be used to include null fields in Patch
  1096. // requests.
  1097. NullFields []string `json:"-"`
  1098. }
  1099. func (s *CreateShapeRequest) MarshalJSON() ([]byte, error) {
  1100. type NoMethod CreateShapeRequest
  1101. raw := NoMethod(*s)
  1102. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1103. }
  1104. // CreateShapeResponse: The result of creating a shape.
  1105. type CreateShapeResponse struct {
  1106. // ObjectId: The object ID of the created shape.
  1107. ObjectId string `json:"objectId,omitempty"`
  1108. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1109. // unconditionally include in API requests. By default, fields with
  1110. // empty values are omitted from API requests. However, any non-pointer,
  1111. // non-interface field appearing in ForceSendFields will be sent to the
  1112. // server regardless of whether the field is empty or not. This may be
  1113. // used to include empty fields in Patch requests.
  1114. ForceSendFields []string `json:"-"`
  1115. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1116. // API requests with the JSON null value. By default, fields with empty
  1117. // values are omitted from API requests. However, any field with an
  1118. // empty value appearing in NullFields will be sent to the server as
  1119. // null. It is an error if a field in this list has a non-empty value.
  1120. // This may be used to include null fields in Patch requests.
  1121. NullFields []string `json:"-"`
  1122. }
  1123. func (s *CreateShapeResponse) MarshalJSON() ([]byte, error) {
  1124. type NoMethod CreateShapeResponse
  1125. raw := NoMethod(*s)
  1126. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1127. }
  1128. // CreateSheetsChartRequest: Creates an embedded Google Sheets
  1129. // chart.
  1130. //
  1131. // NOTE: Chart creation requires at least one of the
  1132. // spreadsheets.readonly,
  1133. // spreadsheets, drive.readonly, drive.file, or drive OAuth scopes.
  1134. type CreateSheetsChartRequest struct {
  1135. // ChartId: The ID of the specific chart in the Google Sheets
  1136. // spreadsheet.
  1137. ChartId int64 `json:"chartId,omitempty"`
  1138. // ElementProperties: The element properties for the chart.
  1139. //
  1140. // When the aspect ratio of the provided size does not match the chart
  1141. // aspect
  1142. // ratio, the chart is scaled and centered with respect to the size in
  1143. // order
  1144. // to maintain aspect ratio. The provided transform is applied after
  1145. // this
  1146. // operation.
  1147. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  1148. // LinkingMode: The mode with which the chart is linked to the source
  1149. // spreadsheet. When
  1150. // not specified, the chart will be an image that is not linked.
  1151. //
  1152. // Possible values:
  1153. // "NOT_LINKED_IMAGE" - The chart is not associated with the source
  1154. // spreadsheet and cannot be
  1155. // updated. A chart that is not linked will be inserted as an image.
  1156. // "LINKED" - Linking the chart allows it to be updated, and other
  1157. // collaborators will
  1158. // see a link to the spreadsheet.
  1159. LinkingMode string `json:"linkingMode,omitempty"`
  1160. // ObjectId: A user-supplied object ID.
  1161. //
  1162. // If specified, the ID must be unique among all pages and page elements
  1163. // in
  1164. // the presentation. The ID should start with a word character
  1165. // [a-zA-Z0-9_]
  1166. // and then followed by any number of the following characters
  1167. // [a-zA-Z0-9_-:].
  1168. // The length of the ID should not be less than 5 or greater than 50.
  1169. // If empty, a unique identifier will be generated.
  1170. ObjectId string `json:"objectId,omitempty"`
  1171. // SpreadsheetId: The ID of the Google Sheets spreadsheet that contains
  1172. // the chart.
  1173. SpreadsheetId string `json:"spreadsheetId,omitempty"`
  1174. // ForceSendFields is a list of field names (e.g. "ChartId") to
  1175. // unconditionally include in API requests. By default, fields with
  1176. // empty values are omitted from API requests. However, any non-pointer,
  1177. // non-interface field appearing in ForceSendFields will be sent to the
  1178. // server regardless of whether the field is empty or not. This may be
  1179. // used to include empty fields in Patch requests.
  1180. ForceSendFields []string `json:"-"`
  1181. // NullFields is a list of field names (e.g. "ChartId") to include in
  1182. // API requests with the JSON null value. By default, fields with empty
  1183. // values are omitted from API requests. However, any field with an
  1184. // empty value appearing in NullFields will be sent to the server as
  1185. // null. It is an error if a field in this list has a non-empty value.
  1186. // This may be used to include null fields in Patch requests.
  1187. NullFields []string `json:"-"`
  1188. }
  1189. func (s *CreateSheetsChartRequest) MarshalJSON() ([]byte, error) {
  1190. type NoMethod CreateSheetsChartRequest
  1191. raw := NoMethod(*s)
  1192. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1193. }
  1194. // CreateSheetsChartResponse: The result of creating an embedded Google
  1195. // Sheets chart.
  1196. type CreateSheetsChartResponse struct {
  1197. // ObjectId: The object ID of the created chart.
  1198. ObjectId string `json:"objectId,omitempty"`
  1199. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1200. // unconditionally include in API requests. By default, fields with
  1201. // empty values are omitted from API requests. However, any non-pointer,
  1202. // non-interface field appearing in ForceSendFields will be sent to the
  1203. // server regardless of whether the field is empty or not. This may be
  1204. // used to include empty fields in Patch requests.
  1205. ForceSendFields []string `json:"-"`
  1206. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1207. // API requests with the JSON null value. By default, fields with empty
  1208. // values are omitted from API requests. However, any field with an
  1209. // empty value appearing in NullFields will be sent to the server as
  1210. // null. It is an error if a field in this list has a non-empty value.
  1211. // This may be used to include null fields in Patch requests.
  1212. NullFields []string `json:"-"`
  1213. }
  1214. func (s *CreateSheetsChartResponse) MarshalJSON() ([]byte, error) {
  1215. type NoMethod CreateSheetsChartResponse
  1216. raw := NoMethod(*s)
  1217. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1218. }
  1219. // CreateSlideRequest: Creates a new slide.
  1220. type CreateSlideRequest struct {
  1221. // InsertionIndex: The optional zero-based index indicating where to
  1222. // insert the slides.
  1223. //
  1224. // If you don't specify an index, the new slide is created at the end.
  1225. InsertionIndex int64 `json:"insertionIndex,omitempty"`
  1226. // ObjectId: A user-supplied object ID.
  1227. //
  1228. // If you specify an ID, it must be unique among all pages and page
  1229. // elements
  1230. // in the presentation. The ID must start with an alphanumeric character
  1231. // or an
  1232. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  1233. // may include those as well as a hyphen or colon (matches
  1234. // regex
  1235. // `[a-zA-Z0-9_-:]`).
  1236. // The length of the ID must not be less than 5 or greater than 50.
  1237. //
  1238. // If you don't specify an ID, a unique one is generated.
  1239. ObjectId string `json:"objectId,omitempty"`
  1240. // PlaceholderIdMappings: An optional list of object ID mappings from
  1241. // the placeholder(s) on the layout to the placeholder(s)
  1242. // that will be created on the new slide from that specified layout. Can
  1243. // only
  1244. // be used when `slide_layout_reference` is specified.
  1245. PlaceholderIdMappings []*LayoutPlaceholderIdMapping `json:"placeholderIdMappings,omitempty"`
  1246. // SlideLayoutReference: Layout reference of the slide to be inserted,
  1247. // based on the *current
  1248. // master*, which is one of the following:
  1249. //
  1250. // - The master of the previous slide index.
  1251. // - The master of the first slide, if the insertion_index is zero.
  1252. // - The first master in the presentation, if there are no slides.
  1253. //
  1254. // If the LayoutReference is not found in the current master, a 400
  1255. // bad
  1256. // request error is returned.
  1257. //
  1258. // If you don't specify a layout reference, then the new slide will use
  1259. // the
  1260. // predefined layout `BLANK`.
  1261. SlideLayoutReference *LayoutReference `json:"slideLayoutReference,omitempty"`
  1262. // ForceSendFields is a list of field names (e.g. "InsertionIndex") to
  1263. // unconditionally include in API requests. By default, fields with
  1264. // empty values are omitted from API requests. However, any non-pointer,
  1265. // non-interface field appearing in ForceSendFields will be sent to the
  1266. // server regardless of whether the field is empty or not. This may be
  1267. // used to include empty fields in Patch requests.
  1268. ForceSendFields []string `json:"-"`
  1269. // NullFields is a list of field names (e.g. "InsertionIndex") to
  1270. // include in API requests with the JSON null value. By default, fields
  1271. // with empty values are omitted from API requests. However, any field
  1272. // with an empty value appearing in NullFields will be sent to the
  1273. // server as null. It is an error if a field in this list has a
  1274. // non-empty value. This may be used to include null fields in Patch
  1275. // requests.
  1276. NullFields []string `json:"-"`
  1277. }
  1278. func (s *CreateSlideRequest) MarshalJSON() ([]byte, error) {
  1279. type NoMethod CreateSlideRequest
  1280. raw := NoMethod(*s)
  1281. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1282. }
  1283. // CreateSlideResponse: The result of creating a slide.
  1284. type CreateSlideResponse struct {
  1285. // ObjectId: The object ID of the created slide.
  1286. ObjectId string `json:"objectId,omitempty"`
  1287. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1288. // unconditionally include in API requests. By default, fields with
  1289. // empty values are omitted from API requests. However, any non-pointer,
  1290. // non-interface field appearing in ForceSendFields will be sent to the
  1291. // server regardless of whether the field is empty or not. This may be
  1292. // used to include empty fields in Patch requests.
  1293. ForceSendFields []string `json:"-"`
  1294. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1295. // API requests with the JSON null value. By default, fields with empty
  1296. // values are omitted from API requests. However, any field with an
  1297. // empty value appearing in NullFields will be sent to the server as
  1298. // null. It is an error if a field in this list has a non-empty value.
  1299. // This may be used to include null fields in Patch requests.
  1300. NullFields []string `json:"-"`
  1301. }
  1302. func (s *CreateSlideResponse) MarshalJSON() ([]byte, error) {
  1303. type NoMethod CreateSlideResponse
  1304. raw := NoMethod(*s)
  1305. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1306. }
  1307. // CreateTableRequest: Creates a new table.
  1308. type CreateTableRequest struct {
  1309. // Columns: Number of columns in the table.
  1310. Columns int64 `json:"columns,omitempty"`
  1311. // ElementProperties: The element properties for the table.
  1312. //
  1313. // The table will be created at the provided size, subject to a minimum
  1314. // size.
  1315. // If no size is provided, the table will be automatically sized.
  1316. //
  1317. // Table transforms must have a scale of 1 and no shear components. If
  1318. // no
  1319. // transform is provided, the table will be centered on the page.
  1320. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  1321. // ObjectId: A user-supplied object ID.
  1322. //
  1323. // If you specify an ID, it must be unique among all pages and page
  1324. // elements
  1325. // in the presentation. The ID must start with an alphanumeric character
  1326. // or an
  1327. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  1328. // may include those as well as a hyphen or colon (matches
  1329. // regex
  1330. // `[a-zA-Z0-9_-:]`).
  1331. // The length of the ID must not be less than 5 or greater than 50.
  1332. //
  1333. // If you don't specify an ID, a unique one is generated.
  1334. ObjectId string `json:"objectId,omitempty"`
  1335. // Rows: Number of rows in the table.
  1336. Rows int64 `json:"rows,omitempty"`
  1337. // ForceSendFields is a list of field names (e.g. "Columns") to
  1338. // unconditionally include in API requests. By default, fields with
  1339. // empty values are omitted from API requests. However, any non-pointer,
  1340. // non-interface field appearing in ForceSendFields will be sent to the
  1341. // server regardless of whether the field is empty or not. This may be
  1342. // used to include empty fields in Patch requests.
  1343. ForceSendFields []string `json:"-"`
  1344. // NullFields is a list of field names (e.g. "Columns") to include in
  1345. // API requests with the JSON null value. By default, fields with empty
  1346. // values are omitted from API requests. However, any field with an
  1347. // empty value appearing in NullFields will be sent to the server as
  1348. // null. It is an error if a field in this list has a non-empty value.
  1349. // This may be used to include null fields in Patch requests.
  1350. NullFields []string `json:"-"`
  1351. }
  1352. func (s *CreateTableRequest) MarshalJSON() ([]byte, error) {
  1353. type NoMethod CreateTableRequest
  1354. raw := NoMethod(*s)
  1355. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1356. }
  1357. // CreateTableResponse: The result of creating a table.
  1358. type CreateTableResponse struct {
  1359. // ObjectId: The object ID of the created table.
  1360. ObjectId string `json:"objectId,omitempty"`
  1361. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1362. // unconditionally include in API requests. By default, fields with
  1363. // empty values are omitted from API requests. However, any non-pointer,
  1364. // non-interface field appearing in ForceSendFields will be sent to the
  1365. // server regardless of whether the field is empty or not. This may be
  1366. // used to include empty fields in Patch requests.
  1367. ForceSendFields []string `json:"-"`
  1368. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1369. // API requests with the JSON null value. By default, fields with empty
  1370. // values are omitted from API requests. However, any field with an
  1371. // empty value appearing in NullFields will be sent to the server as
  1372. // null. It is an error if a field in this list has a non-empty value.
  1373. // This may be used to include null fields in Patch requests.
  1374. NullFields []string `json:"-"`
  1375. }
  1376. func (s *CreateTableResponse) MarshalJSON() ([]byte, error) {
  1377. type NoMethod CreateTableResponse
  1378. raw := NoMethod(*s)
  1379. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1380. }
  1381. // CreateVideoRequest: Creates a video.
  1382. //
  1383. // NOTE: Creating a video from Google Drive requires that the requesting
  1384. // app
  1385. // have at least one of the drive, drive.readonly, or drive.file OAuth
  1386. // scopes.
  1387. type CreateVideoRequest struct {
  1388. // ElementProperties: The element properties for the video.
  1389. //
  1390. // The PageElementProperties.size property is
  1391. // optional. If you don't specify a size, a default size is chosen by
  1392. // the
  1393. // server.
  1394. //
  1395. // The PageElementProperties.transform property is
  1396. // optional. The transform must not have shear components.
  1397. // If you don't specify a transform, the video will be placed at the top
  1398. // left
  1399. // corner of the page.
  1400. ElementProperties *PageElementProperties `json:"elementProperties,omitempty"`
  1401. // Id: The video source's unique identifier for this video.
  1402. //
  1403. // e.g. For YouTube video
  1404. // https://www.youtube.com/watch?v=7U3axjORYZ0,
  1405. // the ID is 7U3axjORYZ0. For a Google Drive
  1406. // video
  1407. // https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5
  1408. // Q the ID
  1409. // is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q.
  1410. Id string `json:"id,omitempty"`
  1411. // ObjectId: A user-supplied object ID.
  1412. //
  1413. // If you specify an ID, it must be unique among all pages and page
  1414. // elements
  1415. // in the presentation. The ID must start with an alphanumeric character
  1416. // or an
  1417. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  1418. // may include those as well as a hyphen or colon (matches
  1419. // regex
  1420. // `[a-zA-Z0-9_-:]`).
  1421. // The length of the ID must not be less than 5 or greater than 50.
  1422. //
  1423. // If you don't specify an ID, a unique one is generated.
  1424. ObjectId string `json:"objectId,omitempty"`
  1425. // Source: The video source.
  1426. //
  1427. // Possible values:
  1428. // "SOURCE_UNSPECIFIED" - The video source is unspecified.
  1429. // "YOUTUBE" - The video source is YouTube.
  1430. // "DRIVE" - The video source is Google Drive.
  1431. Source string `json:"source,omitempty"`
  1432. // ForceSendFields is a list of field names (e.g. "ElementProperties")
  1433. // to unconditionally include in API requests. By default, fields with
  1434. // empty values are omitted from API requests. However, any non-pointer,
  1435. // non-interface field appearing in ForceSendFields will be sent to the
  1436. // server regardless of whether the field is empty or not. This may be
  1437. // used to include empty fields in Patch requests.
  1438. ForceSendFields []string `json:"-"`
  1439. // NullFields is a list of field names (e.g. "ElementProperties") to
  1440. // include in API requests with the JSON null value. By default, fields
  1441. // with empty values are omitted from API requests. However, any field
  1442. // with an empty value appearing in NullFields will be sent to the
  1443. // server as null. It is an error if a field in this list has a
  1444. // non-empty value. This may be used to include null fields in Patch
  1445. // requests.
  1446. NullFields []string `json:"-"`
  1447. }
  1448. func (s *CreateVideoRequest) MarshalJSON() ([]byte, error) {
  1449. type NoMethod CreateVideoRequest
  1450. raw := NoMethod(*s)
  1451. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1452. }
  1453. // CreateVideoResponse: The result of creating a video.
  1454. type CreateVideoResponse struct {
  1455. // ObjectId: The object ID of the created video.
  1456. ObjectId string `json:"objectId,omitempty"`
  1457. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1458. // unconditionally include in API requests. By default, fields with
  1459. // empty values are omitted from API requests. However, any non-pointer,
  1460. // non-interface field appearing in ForceSendFields will be sent to the
  1461. // server regardless of whether the field is empty or not. This may be
  1462. // used to include empty fields in Patch requests.
  1463. ForceSendFields []string `json:"-"`
  1464. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1465. // API requests with the JSON null value. By default, fields with empty
  1466. // values are omitted from API requests. However, any field with an
  1467. // empty value appearing in NullFields will be sent to the server as
  1468. // null. It is an error if a field in this list has a non-empty value.
  1469. // This may be used to include null fields in Patch requests.
  1470. NullFields []string `json:"-"`
  1471. }
  1472. func (s *CreateVideoResponse) MarshalJSON() ([]byte, error) {
  1473. type NoMethod CreateVideoResponse
  1474. raw := NoMethod(*s)
  1475. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1476. }
  1477. // CropProperties: The crop properties of an object enclosed in a
  1478. // container. For example, an
  1479. // Image.
  1480. //
  1481. // The crop properties is represented by the offsets of four edges which
  1482. // define
  1483. // a crop rectangle. The offsets are measured in percentage from
  1484. // the
  1485. // corresponding edges of the object's original bounding rectangle
  1486. // towards
  1487. // inside, relative to the object's original dimensions.
  1488. //
  1489. // - If the offset is in the interval (0, 1), the corresponding edge of
  1490. // crop
  1491. // rectangle is positioned inside of the object's original bounding
  1492. // rectangle.
  1493. // - If the offset is negative or greater than 1, the corresponding edge
  1494. // of crop
  1495. // rectangle is positioned outside of the object's original bounding
  1496. // rectangle.
  1497. // - If the left edge of the crop rectangle is on the right side of its
  1498. // right
  1499. // edge, the object will be flipped horizontally.
  1500. // - If the top edge of the crop rectangle is below its bottom edge, the
  1501. // object
  1502. // will be flipped vertically.
  1503. // - If all offsets and rotation angle is 0, the object is not
  1504. // cropped.
  1505. //
  1506. // After cropping, the content in the crop rectangle will be stretched
  1507. // to fit
  1508. // its container.
  1509. type CropProperties struct {
  1510. // Angle: The rotation angle of the crop window around its center, in
  1511. // radians.
  1512. // Rotation angle is applied after the offset.
  1513. Angle float64 `json:"angle,omitempty"`
  1514. // BottomOffset: The offset specifies the bottom edge of the crop
  1515. // rectangle that is located
  1516. // above the original bounding rectangle bottom edge, relative to the
  1517. // object's
  1518. // original height.
  1519. BottomOffset float64 `json:"bottomOffset,omitempty"`
  1520. // LeftOffset: The offset specifies the left edge of the crop rectangle
  1521. // that is located to
  1522. // the right of the original bounding rectangle left edge, relative to
  1523. // the
  1524. // object's original width.
  1525. LeftOffset float64 `json:"leftOffset,omitempty"`
  1526. // RightOffset: The offset specifies the right edge of the crop
  1527. // rectangle that is located
  1528. // to the left of the original bounding rectangle right edge, relative
  1529. // to the
  1530. // object's original width.
  1531. RightOffset float64 `json:"rightOffset,omitempty"`
  1532. // TopOffset: The offset specifies the top edge of the crop rectangle
  1533. // that is located
  1534. // below the original bounding rectangle top edge, relative to the
  1535. // object's
  1536. // original height.
  1537. TopOffset float64 `json:"topOffset,omitempty"`
  1538. // ForceSendFields is a list of field names (e.g. "Angle") to
  1539. // unconditionally include in API requests. By default, fields with
  1540. // empty values are omitted from API requests. However, any non-pointer,
  1541. // non-interface field appearing in ForceSendFields will be sent to the
  1542. // server regardless of whether the field is empty or not. This may be
  1543. // used to include empty fields in Patch requests.
  1544. ForceSendFields []string `json:"-"`
  1545. // NullFields is a list of field names (e.g. "Angle") to include in API
  1546. // requests with the JSON null value. By default, fields with empty
  1547. // values are omitted from API requests. However, any field with an
  1548. // empty value appearing in NullFields will be sent to the server as
  1549. // null. It is an error if a field in this list has a non-empty value.
  1550. // This may be used to include null fields in Patch requests.
  1551. NullFields []string `json:"-"`
  1552. }
  1553. func (s *CropProperties) MarshalJSON() ([]byte, error) {
  1554. type NoMethod CropProperties
  1555. raw := NoMethod(*s)
  1556. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1557. }
  1558. func (s *CropProperties) UnmarshalJSON(data []byte) error {
  1559. type NoMethod CropProperties
  1560. var s1 struct {
  1561. Angle gensupport.JSONFloat64 `json:"angle"`
  1562. BottomOffset gensupport.JSONFloat64 `json:"bottomOffset"`
  1563. LeftOffset gensupport.JSONFloat64 `json:"leftOffset"`
  1564. RightOffset gensupport.JSONFloat64 `json:"rightOffset"`
  1565. TopOffset gensupport.JSONFloat64 `json:"topOffset"`
  1566. *NoMethod
  1567. }
  1568. s1.NoMethod = (*NoMethod)(s)
  1569. if err := json.Unmarshal(data, &s1); err != nil {
  1570. return err
  1571. }
  1572. s.Angle = float64(s1.Angle)
  1573. s.BottomOffset = float64(s1.BottomOffset)
  1574. s.LeftOffset = float64(s1.LeftOffset)
  1575. s.RightOffset = float64(s1.RightOffset)
  1576. s.TopOffset = float64(s1.TopOffset)
  1577. return nil
  1578. }
  1579. // DeleteObjectRequest: Deletes an object, either pages or
  1580. // page elements, from the
  1581. // presentation.
  1582. type DeleteObjectRequest struct {
  1583. // ObjectId: The object ID of the page or page element to delete.
  1584. //
  1585. // If after a delete operation a group contains
  1586. // only 1 or no page elements, the group is also deleted.
  1587. //
  1588. // If a placeholder is deleted on a layout, any empty inheriting shapes
  1589. // are
  1590. // also deleted.
  1591. ObjectId string `json:"objectId,omitempty"`
  1592. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1593. // unconditionally include in API requests. By default, fields with
  1594. // empty values are omitted from API requests. However, any non-pointer,
  1595. // non-interface field appearing in ForceSendFields will be sent to the
  1596. // server regardless of whether the field is empty or not. This may be
  1597. // used to include empty fields in Patch requests.
  1598. ForceSendFields []string `json:"-"`
  1599. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1600. // API requests with the JSON null value. By default, fields with empty
  1601. // values are omitted from API requests. However, any field with an
  1602. // empty value appearing in NullFields will be sent to the server as
  1603. // null. It is an error if a field in this list has a non-empty value.
  1604. // This may be used to include null fields in Patch requests.
  1605. NullFields []string `json:"-"`
  1606. }
  1607. func (s *DeleteObjectRequest) MarshalJSON() ([]byte, error) {
  1608. type NoMethod DeleteObjectRequest
  1609. raw := NoMethod(*s)
  1610. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1611. }
  1612. // DeleteParagraphBulletsRequest: Deletes bullets from all of the
  1613. // paragraphs that overlap with the given text
  1614. // index range.
  1615. //
  1616. // The nesting level of each paragraph will be visually preserved by
  1617. // adding
  1618. // indent to the start of the corresponding paragraph.
  1619. type DeleteParagraphBulletsRequest struct {
  1620. // CellLocation: The optional table cell location if the text to be
  1621. // modified is in a table
  1622. // cell. If present, the object_id must refer to a table.
  1623. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  1624. // ObjectId: The object ID of the shape or table containing the text to
  1625. // delete bullets
  1626. // from.
  1627. ObjectId string `json:"objectId,omitempty"`
  1628. // TextRange: The range of text to delete bullets from, based on
  1629. // TextElement indexes.
  1630. TextRange *Range `json:"textRange,omitempty"`
  1631. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  1632. // unconditionally include in API requests. By default, fields with
  1633. // empty values are omitted from API requests. However, any non-pointer,
  1634. // non-interface field appearing in ForceSendFields will be sent to the
  1635. // server regardless of whether the field is empty or not. This may be
  1636. // used to include empty fields in Patch requests.
  1637. ForceSendFields []string `json:"-"`
  1638. // NullFields is a list of field names (e.g. "CellLocation") to include
  1639. // in API requests with the JSON null value. By default, fields with
  1640. // empty values are omitted from API requests. However, any field with
  1641. // an empty value appearing in NullFields will be sent to the server as
  1642. // null. It is an error if a field in this list has a non-empty value.
  1643. // This may be used to include null fields in Patch requests.
  1644. NullFields []string `json:"-"`
  1645. }
  1646. func (s *DeleteParagraphBulletsRequest) MarshalJSON() ([]byte, error) {
  1647. type NoMethod DeleteParagraphBulletsRequest
  1648. raw := NoMethod(*s)
  1649. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1650. }
  1651. // DeleteTableColumnRequest: Deletes a column from a table.
  1652. type DeleteTableColumnRequest struct {
  1653. // CellLocation: The reference table cell location from which a column
  1654. // will be deleted.
  1655. //
  1656. // The column this cell spans will be deleted. If this is a merged
  1657. // cell,
  1658. // multiple columns will be deleted. If no columns remain in the table
  1659. // after
  1660. // this deletion, the whole table is deleted.
  1661. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  1662. // TableObjectId: The table to delete columns from.
  1663. TableObjectId string `json:"tableObjectId,omitempty"`
  1664. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  1665. // unconditionally include in API requests. By default, fields with
  1666. // empty values are omitted from API requests. However, any non-pointer,
  1667. // non-interface field appearing in ForceSendFields will be sent to the
  1668. // server regardless of whether the field is empty or not. This may be
  1669. // used to include empty fields in Patch requests.
  1670. ForceSendFields []string `json:"-"`
  1671. // NullFields is a list of field names (e.g. "CellLocation") to include
  1672. // in API requests with the JSON null value. By default, fields with
  1673. // empty values are omitted from API requests. However, any field with
  1674. // an empty value appearing in NullFields will be sent to the server as
  1675. // null. It is an error if a field in this list has a non-empty value.
  1676. // This may be used to include null fields in Patch requests.
  1677. NullFields []string `json:"-"`
  1678. }
  1679. func (s *DeleteTableColumnRequest) MarshalJSON() ([]byte, error) {
  1680. type NoMethod DeleteTableColumnRequest
  1681. raw := NoMethod(*s)
  1682. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1683. }
  1684. // DeleteTableRowRequest: Deletes a row from a table.
  1685. type DeleteTableRowRequest struct {
  1686. // CellLocation: The reference table cell location from which a row will
  1687. // be deleted.
  1688. //
  1689. // The row this cell spans will be deleted. If this is a merged cell,
  1690. // multiple
  1691. // rows will be deleted. If no rows remain in the table after this
  1692. // deletion,
  1693. // the whole table is deleted.
  1694. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  1695. // TableObjectId: The table to delete rows from.
  1696. TableObjectId string `json:"tableObjectId,omitempty"`
  1697. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  1698. // unconditionally include in API requests. By default, fields with
  1699. // empty values are omitted from API requests. However, any non-pointer,
  1700. // non-interface field appearing in ForceSendFields will be sent to the
  1701. // server regardless of whether the field is empty or not. This may be
  1702. // used to include empty fields in Patch requests.
  1703. ForceSendFields []string `json:"-"`
  1704. // NullFields is a list of field names (e.g. "CellLocation") to include
  1705. // in API requests with the JSON null value. By default, fields with
  1706. // empty values are omitted from API requests. However, any field with
  1707. // an empty value appearing in NullFields will be sent to the server as
  1708. // null. It is an error if a field in this list has a non-empty value.
  1709. // This may be used to include null fields in Patch requests.
  1710. NullFields []string `json:"-"`
  1711. }
  1712. func (s *DeleteTableRowRequest) MarshalJSON() ([]byte, error) {
  1713. type NoMethod DeleteTableRowRequest
  1714. raw := NoMethod(*s)
  1715. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1716. }
  1717. // DeleteTextRequest: Deletes text from a shape or a table cell.
  1718. type DeleteTextRequest struct {
  1719. // CellLocation: The optional table cell location if the text is to be
  1720. // deleted from a table
  1721. // cell. If present, the object_id must refer to a table.
  1722. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  1723. // ObjectId: The object ID of the shape or table from which the text
  1724. // will be deleted.
  1725. ObjectId string `json:"objectId,omitempty"`
  1726. // TextRange: The range of text to delete, based on TextElement
  1727. // indexes.
  1728. //
  1729. // There is always an implicit newline character at the end of a shape's
  1730. // or
  1731. // table cell's text that cannot be deleted. `Range.Type.ALL` will use
  1732. // the
  1733. // correct bounds, but care must be taken when specifying explicit
  1734. // bounds for
  1735. // range types `FROM_START_INDEX` and `FIXED_RANGE`. For example, if the
  1736. // text
  1737. // is "ABC", followed by an implicit newline, then the maximum value is
  1738. // 2 for
  1739. // `text_range.start_index` and 3 for `text_range.end_index`.
  1740. //
  1741. // Deleting text that crosses a paragraph boundary may result in
  1742. // changes
  1743. // to paragraph styles and lists as the two paragraphs are
  1744. // merged.
  1745. //
  1746. // Ranges that include only one code unit of a surrogate pair are
  1747. // expanded to
  1748. // include both code units.
  1749. TextRange *Range `json:"textRange,omitempty"`
  1750. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  1751. // unconditionally include in API requests. By default, fields with
  1752. // empty values are omitted from API requests. However, any non-pointer,
  1753. // non-interface field appearing in ForceSendFields will be sent to the
  1754. // server regardless of whether the field is empty or not. This may be
  1755. // used to include empty fields in Patch requests.
  1756. ForceSendFields []string `json:"-"`
  1757. // NullFields is a list of field names (e.g. "CellLocation") to include
  1758. // in API requests with the JSON null value. By default, fields with
  1759. // empty values are omitted from API requests. However, any field with
  1760. // an empty value appearing in NullFields will be sent to the server as
  1761. // null. It is an error if a field in this list has a non-empty value.
  1762. // This may be used to include null fields in Patch requests.
  1763. NullFields []string `json:"-"`
  1764. }
  1765. func (s *DeleteTextRequest) MarshalJSON() ([]byte, error) {
  1766. type NoMethod DeleteTextRequest
  1767. raw := NoMethod(*s)
  1768. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1769. }
  1770. // Dimension: A magnitude in a single direction in the specified units.
  1771. type Dimension struct {
  1772. // Magnitude: The magnitude.
  1773. Magnitude float64 `json:"magnitude,omitempty"`
  1774. // Unit: The units for magnitude.
  1775. //
  1776. // Possible values:
  1777. // "UNIT_UNSPECIFIED" - The units are unknown.
  1778. // "EMU" - An English Metric Unit (EMU) is defined as 1/360,000 of a
  1779. // centimeter
  1780. // and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.
  1781. // "PT" - A point, 1/72 of an inch.
  1782. Unit string `json:"unit,omitempty"`
  1783. // ForceSendFields is a list of field names (e.g. "Magnitude") to
  1784. // unconditionally include in API requests. By default, fields with
  1785. // empty values are omitted from API requests. However, any non-pointer,
  1786. // non-interface field appearing in ForceSendFields will be sent to the
  1787. // server regardless of whether the field is empty or not. This may be
  1788. // used to include empty fields in Patch requests.
  1789. ForceSendFields []string `json:"-"`
  1790. // NullFields is a list of field names (e.g. "Magnitude") to include in
  1791. // API requests with the JSON null value. By default, fields with empty
  1792. // values are omitted from API requests. However, any field with an
  1793. // empty value appearing in NullFields will be sent to the server as
  1794. // null. It is an error if a field in this list has a non-empty value.
  1795. // This may be used to include null fields in Patch requests.
  1796. NullFields []string `json:"-"`
  1797. }
  1798. func (s *Dimension) MarshalJSON() ([]byte, error) {
  1799. type NoMethod Dimension
  1800. raw := NoMethod(*s)
  1801. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1802. }
  1803. func (s *Dimension) UnmarshalJSON(data []byte) error {
  1804. type NoMethod Dimension
  1805. var s1 struct {
  1806. Magnitude gensupport.JSONFloat64 `json:"magnitude"`
  1807. *NoMethod
  1808. }
  1809. s1.NoMethod = (*NoMethod)(s)
  1810. if err := json.Unmarshal(data, &s1); err != nil {
  1811. return err
  1812. }
  1813. s.Magnitude = float64(s1.Magnitude)
  1814. return nil
  1815. }
  1816. // DuplicateObjectRequest: Duplicates a slide or page element.
  1817. //
  1818. // When duplicating a slide, the duplicate slide will be created
  1819. // immediately
  1820. // following the specified slide. When duplicating a page element, the
  1821. // duplicate
  1822. // will be placed on the same page at the same position as the original.
  1823. type DuplicateObjectRequest struct {
  1824. // ObjectId: The ID of the object to duplicate.
  1825. ObjectId string `json:"objectId,omitempty"`
  1826. // ObjectIds: The object being duplicated may contain other objects, for
  1827. // example when
  1828. // duplicating a slide or a group page element. This map defines how the
  1829. // IDs
  1830. // of duplicated objects are generated: the keys are the IDs of the
  1831. // original
  1832. // objects and its values are the IDs that will be assigned to
  1833. // the
  1834. // corresponding duplicate object. The ID of the source object's
  1835. // duplicate
  1836. // may be specified in this map as well, using the same value of
  1837. // the
  1838. // `object_id` field as a key and the newly desired ID as the
  1839. // value.
  1840. //
  1841. // All keys must correspond to existing IDs in the presentation. All
  1842. // values
  1843. // must be unique in the presentation and must start with an
  1844. // alphanumeric
  1845. // character or an underscore (matches regex `[a-zA-Z0-9_]`);
  1846. // remaining
  1847. // characters may include those as well as a hyphen or colon (matches
  1848. // regex
  1849. // `[a-zA-Z0-9_-:]`). The length of the new ID must not be less than 5
  1850. // or
  1851. // greater than 50.
  1852. //
  1853. // If any IDs of source objects are omitted from the map, a new random
  1854. // ID will
  1855. // be assigned. If the map is empty or unset, all duplicate objects
  1856. // will
  1857. // receive a new random ID.
  1858. ObjectIds map[string]string `json:"objectIds,omitempty"`
  1859. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1860. // unconditionally include in API requests. By default, fields with
  1861. // empty values are omitted from API requests. However, any non-pointer,
  1862. // non-interface field appearing in ForceSendFields will be sent to the
  1863. // server regardless of whether the field is empty or not. This may be
  1864. // used to include empty fields in Patch requests.
  1865. ForceSendFields []string `json:"-"`
  1866. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1867. // API requests with the JSON null value. By default, fields with empty
  1868. // values are omitted from API requests. However, any field with an
  1869. // empty value appearing in NullFields will be sent to the server as
  1870. // null. It is an error if a field in this list has a non-empty value.
  1871. // This may be used to include null fields in Patch requests.
  1872. NullFields []string `json:"-"`
  1873. }
  1874. func (s *DuplicateObjectRequest) MarshalJSON() ([]byte, error) {
  1875. type NoMethod DuplicateObjectRequest
  1876. raw := NoMethod(*s)
  1877. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1878. }
  1879. // DuplicateObjectResponse: The response of duplicating an object.
  1880. type DuplicateObjectResponse struct {
  1881. // ObjectId: The ID of the new duplicate object.
  1882. ObjectId string `json:"objectId,omitempty"`
  1883. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1884. // unconditionally include in API requests. By default, fields with
  1885. // empty values are omitted from API requests. However, any non-pointer,
  1886. // non-interface field appearing in ForceSendFields will be sent to the
  1887. // server regardless of whether the field is empty or not. This may be
  1888. // used to include empty fields in Patch requests.
  1889. ForceSendFields []string `json:"-"`
  1890. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1891. // API requests with the JSON null value. By default, fields with empty
  1892. // values are omitted from API requests. However, any field with an
  1893. // empty value appearing in NullFields will be sent to the server as
  1894. // null. It is an error if a field in this list has a non-empty value.
  1895. // This may be used to include null fields in Patch requests.
  1896. NullFields []string `json:"-"`
  1897. }
  1898. func (s *DuplicateObjectResponse) MarshalJSON() ([]byte, error) {
  1899. type NoMethod DuplicateObjectResponse
  1900. raw := NoMethod(*s)
  1901. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1902. }
  1903. // Group: A PageElement kind representing a
  1904. // joined collection of PageElements.
  1905. type Group struct {
  1906. // Children: The collection of elements in the group. The minimum size
  1907. // of a group is 2.
  1908. Children []*PageElement `json:"children,omitempty"`
  1909. // ForceSendFields is a list of field names (e.g. "Children") to
  1910. // unconditionally include in API requests. By default, fields with
  1911. // empty values are omitted from API requests. However, any non-pointer,
  1912. // non-interface field appearing in ForceSendFields will be sent to the
  1913. // server regardless of whether the field is empty or not. This may be
  1914. // used to include empty fields in Patch requests.
  1915. ForceSendFields []string `json:"-"`
  1916. // NullFields is a list of field names (e.g. "Children") to include in
  1917. // API requests with the JSON null value. By default, fields with empty
  1918. // values are omitted from API requests. However, any field with an
  1919. // empty value appearing in NullFields will be sent to the server as
  1920. // null. It is an error if a field in this list has a non-empty value.
  1921. // This may be used to include null fields in Patch requests.
  1922. NullFields []string `json:"-"`
  1923. }
  1924. func (s *Group) MarshalJSON() ([]byte, error) {
  1925. type NoMethod Group
  1926. raw := NoMethod(*s)
  1927. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1928. }
  1929. // GroupObjectsRequest: Groups objects to create an object group. For
  1930. // example, groups PageElements to create a Group on the same page as
  1931. // all the children.
  1932. type GroupObjectsRequest struct {
  1933. // ChildrenObjectIds: The object IDs of the objects to group.
  1934. //
  1935. // Only page elements can be grouped. There should be at least two
  1936. // page
  1937. // elements on the same page that are not already in another group. Some
  1938. // page
  1939. // elements, such as videos, tables and placeholder shapes cannot be
  1940. // grouped.
  1941. ChildrenObjectIds []string `json:"childrenObjectIds,omitempty"`
  1942. // GroupObjectId: A user-supplied object ID for the group to be
  1943. // created.
  1944. //
  1945. // If you specify an ID, it must be unique among all pages and page
  1946. // elements
  1947. // in the presentation. The ID must start with an alphanumeric character
  1948. // or an
  1949. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  1950. // may include those as well as a hyphen or colon (matches
  1951. // regex
  1952. // `[a-zA-Z0-9_-:]`).
  1953. // The length of the ID must not be less than 5 or greater than 50.
  1954. //
  1955. // If you don't specify an ID, a unique one is generated.
  1956. GroupObjectId string `json:"groupObjectId,omitempty"`
  1957. // ForceSendFields is a list of field names (e.g. "ChildrenObjectIds")
  1958. // to unconditionally include in API requests. By default, fields with
  1959. // empty values are omitted from API requests. However, any non-pointer,
  1960. // non-interface field appearing in ForceSendFields will be sent to the
  1961. // server regardless of whether the field is empty or not. This may be
  1962. // used to include empty fields in Patch requests.
  1963. ForceSendFields []string `json:"-"`
  1964. // NullFields is a list of field names (e.g. "ChildrenObjectIds") to
  1965. // include in API requests with the JSON null value. By default, fields
  1966. // with empty values are omitted from API requests. However, any field
  1967. // with an empty value appearing in NullFields will be sent to the
  1968. // server as null. It is an error if a field in this list has a
  1969. // non-empty value. This may be used to include null fields in Patch
  1970. // requests.
  1971. NullFields []string `json:"-"`
  1972. }
  1973. func (s *GroupObjectsRequest) MarshalJSON() ([]byte, error) {
  1974. type NoMethod GroupObjectsRequest
  1975. raw := NoMethod(*s)
  1976. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1977. }
  1978. // GroupObjectsResponse: The result of grouping objects.
  1979. type GroupObjectsResponse struct {
  1980. // ObjectId: The object ID of the created group.
  1981. ObjectId string `json:"objectId,omitempty"`
  1982. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  1983. // unconditionally include in API requests. By default, fields with
  1984. // empty values are omitted from API requests. However, any non-pointer,
  1985. // non-interface field appearing in ForceSendFields will be sent to the
  1986. // server regardless of whether the field is empty or not. This may be
  1987. // used to include empty fields in Patch requests.
  1988. ForceSendFields []string `json:"-"`
  1989. // NullFields is a list of field names (e.g. "ObjectId") to include in
  1990. // API requests with the JSON null value. By default, fields with empty
  1991. // values are omitted from API requests. However, any field with an
  1992. // empty value appearing in NullFields will be sent to the server as
  1993. // null. It is an error if a field in this list has a non-empty value.
  1994. // This may be used to include null fields in Patch requests.
  1995. NullFields []string `json:"-"`
  1996. }
  1997. func (s *GroupObjectsResponse) MarshalJSON() ([]byte, error) {
  1998. type NoMethod GroupObjectsResponse
  1999. raw := NoMethod(*s)
  2000. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2001. }
  2002. // Image: A PageElement kind representing an
  2003. // image.
  2004. type Image struct {
  2005. // ContentUrl: An URL to an image with a default lifetime of 30
  2006. // minutes.
  2007. // This URL is tagged with the account of the requester. Anyone with the
  2008. // URL
  2009. // effectively accesses the image as the original requester. Access to
  2010. // the
  2011. // image may be lost if the presentation's sharing settings change.
  2012. ContentUrl string `json:"contentUrl,omitempty"`
  2013. // ImageProperties: The properties of the image.
  2014. ImageProperties *ImageProperties `json:"imageProperties,omitempty"`
  2015. // SourceUrl: The source URL is the URL used to insert the image. The
  2016. // source URL can be
  2017. // empty.
  2018. SourceUrl string `json:"sourceUrl,omitempty"`
  2019. // ForceSendFields is a list of field names (e.g. "ContentUrl") to
  2020. // unconditionally include in API requests. By default, fields with
  2021. // empty values are omitted from API requests. However, any non-pointer,
  2022. // non-interface field appearing in ForceSendFields will be sent to the
  2023. // server regardless of whether the field is empty or not. This may be
  2024. // used to include empty fields in Patch requests.
  2025. ForceSendFields []string `json:"-"`
  2026. // NullFields is a list of field names (e.g. "ContentUrl") to include in
  2027. // API requests with the JSON null value. By default, fields with empty
  2028. // values are omitted from API requests. However, any field with an
  2029. // empty value appearing in NullFields will be sent to the server as
  2030. // null. It is an error if a field in this list has a non-empty value.
  2031. // This may be used to include null fields in Patch requests.
  2032. NullFields []string `json:"-"`
  2033. }
  2034. func (s *Image) MarshalJSON() ([]byte, error) {
  2035. type NoMethod Image
  2036. raw := NoMethod(*s)
  2037. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2038. }
  2039. // ImageProperties: The properties of the Image.
  2040. type ImageProperties struct {
  2041. // Brightness: The brightness effect of the image. The value should be
  2042. // in the interval
  2043. // [-1.0, 1.0], where 0 means no effect. This property is read-only.
  2044. Brightness float64 `json:"brightness,omitempty"`
  2045. // Contrast: The contrast effect of the image. The value should be in
  2046. // the interval
  2047. // [-1.0, 1.0], where 0 means no effect. This property is read-only.
  2048. Contrast float64 `json:"contrast,omitempty"`
  2049. // CropProperties: The crop properties of the image. If not set, the
  2050. // image is not cropped.
  2051. // This property is read-only.
  2052. CropProperties *CropProperties `json:"cropProperties,omitempty"`
  2053. // Link: The hyperlink destination of the image. If unset, there is no
  2054. // link.
  2055. Link *Link `json:"link,omitempty"`
  2056. // Outline: The outline of the image. If not set, the image has no
  2057. // outline.
  2058. Outline *Outline `json:"outline,omitempty"`
  2059. // Recolor: The recolor effect of the image. If not set, the image is
  2060. // not recolored.
  2061. // This property is read-only.
  2062. Recolor *Recolor `json:"recolor,omitempty"`
  2063. // Shadow: The shadow of the image. If not set, the image has no shadow.
  2064. // This property
  2065. // is read-only.
  2066. Shadow *Shadow `json:"shadow,omitempty"`
  2067. // Transparency: The transparency effect of the image. The value should
  2068. // be in the interval
  2069. // [0.0, 1.0], where 0 means no effect and 1 means completely
  2070. // transparent.
  2071. // This property is read-only.
  2072. Transparency float64 `json:"transparency,omitempty"`
  2073. // ForceSendFields is a list of field names (e.g. "Brightness") to
  2074. // unconditionally include in API requests. By default, fields with
  2075. // empty values are omitted from API requests. However, any non-pointer,
  2076. // non-interface field appearing in ForceSendFields will be sent to the
  2077. // server regardless of whether the field is empty or not. This may be
  2078. // used to include empty fields in Patch requests.
  2079. ForceSendFields []string `json:"-"`
  2080. // NullFields is a list of field names (e.g. "Brightness") to include in
  2081. // API requests with the JSON null value. By default, fields with empty
  2082. // values are omitted from API requests. However, any field with an
  2083. // empty value appearing in NullFields will be sent to the server as
  2084. // null. It is an error if a field in this list has a non-empty value.
  2085. // This may be used to include null fields in Patch requests.
  2086. NullFields []string `json:"-"`
  2087. }
  2088. func (s *ImageProperties) MarshalJSON() ([]byte, error) {
  2089. type NoMethod ImageProperties
  2090. raw := NoMethod(*s)
  2091. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2092. }
  2093. func (s *ImageProperties) UnmarshalJSON(data []byte) error {
  2094. type NoMethod ImageProperties
  2095. var s1 struct {
  2096. Brightness gensupport.JSONFloat64 `json:"brightness"`
  2097. Contrast gensupport.JSONFloat64 `json:"contrast"`
  2098. Transparency gensupport.JSONFloat64 `json:"transparency"`
  2099. *NoMethod
  2100. }
  2101. s1.NoMethod = (*NoMethod)(s)
  2102. if err := json.Unmarshal(data, &s1); err != nil {
  2103. return err
  2104. }
  2105. s.Brightness = float64(s1.Brightness)
  2106. s.Contrast = float64(s1.Contrast)
  2107. s.Transparency = float64(s1.Transparency)
  2108. return nil
  2109. }
  2110. // InsertTableColumnsRequest: Inserts columns into a table.
  2111. //
  2112. // Other columns in the table will be resized to fit the new column.
  2113. type InsertTableColumnsRequest struct {
  2114. // CellLocation: The reference table cell location from which columns
  2115. // will be inserted.
  2116. //
  2117. // A new column will be inserted to the left (or right) of the column
  2118. // where
  2119. // the reference cell is. If the reference cell is a merged cell, a
  2120. // new
  2121. // column will be inserted to the left (or right) of the merged cell.
  2122. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  2123. // InsertRight: Whether to insert new columns to the right of the
  2124. // reference cell location.
  2125. //
  2126. // - `True`: insert to the right.
  2127. // - `False`: insert to the left.
  2128. InsertRight bool `json:"insertRight,omitempty"`
  2129. // Number: The number of columns to be inserted. Maximum 20 per request.
  2130. Number int64 `json:"number,omitempty"`
  2131. // TableObjectId: The table to insert columns into.
  2132. TableObjectId string `json:"tableObjectId,omitempty"`
  2133. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  2134. // unconditionally include in API requests. By default, fields with
  2135. // empty values are omitted from API requests. However, any non-pointer,
  2136. // non-interface field appearing in ForceSendFields will be sent to the
  2137. // server regardless of whether the field is empty or not. This may be
  2138. // used to include empty fields in Patch requests.
  2139. ForceSendFields []string `json:"-"`
  2140. // NullFields is a list of field names (e.g. "CellLocation") to include
  2141. // in API requests with the JSON null value. By default, fields with
  2142. // empty values are omitted from API requests. However, any field with
  2143. // an empty value appearing in NullFields will be sent to the server as
  2144. // null. It is an error if a field in this list has a non-empty value.
  2145. // This may be used to include null fields in Patch requests.
  2146. NullFields []string `json:"-"`
  2147. }
  2148. func (s *InsertTableColumnsRequest) MarshalJSON() ([]byte, error) {
  2149. type NoMethod InsertTableColumnsRequest
  2150. raw := NoMethod(*s)
  2151. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2152. }
  2153. // InsertTableRowsRequest: Inserts rows into a table.
  2154. type InsertTableRowsRequest struct {
  2155. // CellLocation: The reference table cell location from which rows will
  2156. // be inserted.
  2157. //
  2158. // A new row will be inserted above (or below) the row where the
  2159. // reference
  2160. // cell is. If the reference cell is a merged cell, a new row will
  2161. // be
  2162. // inserted above (or below) the merged cell.
  2163. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  2164. // InsertBelow: Whether to insert new rows below the reference cell
  2165. // location.
  2166. //
  2167. // - `True`: insert below the cell.
  2168. // - `False`: insert above the cell.
  2169. InsertBelow bool `json:"insertBelow,omitempty"`
  2170. // Number: The number of rows to be inserted. Maximum 20 per request.
  2171. Number int64 `json:"number,omitempty"`
  2172. // TableObjectId: The table to insert rows into.
  2173. TableObjectId string `json:"tableObjectId,omitempty"`
  2174. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  2175. // unconditionally include in API requests. By default, fields with
  2176. // empty values are omitted from API requests. However, any non-pointer,
  2177. // non-interface field appearing in ForceSendFields will be sent to the
  2178. // server regardless of whether the field is empty or not. This may be
  2179. // used to include empty fields in Patch requests.
  2180. ForceSendFields []string `json:"-"`
  2181. // NullFields is a list of field names (e.g. "CellLocation") to include
  2182. // in API requests with the JSON null value. By default, fields with
  2183. // empty values are omitted from API requests. However, any field with
  2184. // an empty value appearing in NullFields will be sent to the server as
  2185. // null. It is an error if a field in this list has a non-empty value.
  2186. // This may be used to include null fields in Patch requests.
  2187. NullFields []string `json:"-"`
  2188. }
  2189. func (s *InsertTableRowsRequest) MarshalJSON() ([]byte, error) {
  2190. type NoMethod InsertTableRowsRequest
  2191. raw := NoMethod(*s)
  2192. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2193. }
  2194. // InsertTextRequest: Inserts text into a shape or a table cell.
  2195. type InsertTextRequest struct {
  2196. // CellLocation: The optional table cell location if the text is to be
  2197. // inserted into a table
  2198. // cell. If present, the object_id must refer to a table.
  2199. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  2200. // InsertionIndex: The index where the text will be inserted, in Unicode
  2201. // code units, based
  2202. // on TextElement indexes.
  2203. //
  2204. // The index is zero-based and is computed from the start of the
  2205. // string.
  2206. // The index may be adjusted to prevent insertions inside Unicode
  2207. // grapheme
  2208. // clusters. In these cases, the text will be inserted immediately after
  2209. // the
  2210. // grapheme cluster.
  2211. InsertionIndex int64 `json:"insertionIndex,omitempty"`
  2212. // ObjectId: The object ID of the shape or table where the text will be
  2213. // inserted.
  2214. ObjectId string `json:"objectId,omitempty"`
  2215. // Text: The text to be inserted.
  2216. //
  2217. // Inserting a newline character will implicitly create a
  2218. // new
  2219. // ParagraphMarker at that index.
  2220. // The paragraph style of the new paragraph will be copied from the
  2221. // paragraph
  2222. // at the current insertion index, including lists and bullets.
  2223. //
  2224. // Text styles for inserted text will be determined automatically,
  2225. // generally
  2226. // preserving the styling of neighboring text. In most cases, the text
  2227. // will be
  2228. // added to the TextRun that exists at the
  2229. // insertion index.
  2230. //
  2231. // Some control characters (U+0000-U+0008, U+000C-U+001F) and
  2232. // characters
  2233. // from the Unicode Basic Multilingual Plane Private Use Area
  2234. // (U+E000-U+F8FF)
  2235. // will be stripped out of the inserted text.
  2236. Text string `json:"text,omitempty"`
  2237. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  2238. // unconditionally include in API requests. By default, fields with
  2239. // empty values are omitted from API requests. However, any non-pointer,
  2240. // non-interface field appearing in ForceSendFields will be sent to the
  2241. // server regardless of whether the field is empty or not. This may be
  2242. // used to include empty fields in Patch requests.
  2243. ForceSendFields []string `json:"-"`
  2244. // NullFields is a list of field names (e.g. "CellLocation") to include
  2245. // in API requests with the JSON null value. By default, fields with
  2246. // empty values are omitted from API requests. However, any field with
  2247. // an empty value appearing in NullFields will be sent to the server as
  2248. // null. It is an error if a field in this list has a non-empty value.
  2249. // This may be used to include null fields in Patch requests.
  2250. NullFields []string `json:"-"`
  2251. }
  2252. func (s *InsertTextRequest) MarshalJSON() ([]byte, error) {
  2253. type NoMethod InsertTextRequest
  2254. raw := NoMethod(*s)
  2255. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2256. }
  2257. // LayoutPlaceholderIdMapping: The user-specified ID mapping for a
  2258. // placeholder that will be created on a
  2259. // slide from a specified layout.
  2260. type LayoutPlaceholderIdMapping struct {
  2261. // LayoutPlaceholder: The placeholder on a layout that will be applied
  2262. // to a slide. Only type and index are needed. For example, a
  2263. // predefined `TITLE_AND_BODY` layout may usually have a TITLE
  2264. // placeholder
  2265. // with index 0 and a BODY placeholder with index 0.
  2266. LayoutPlaceholder *Placeholder `json:"layoutPlaceholder,omitempty"`
  2267. // LayoutPlaceholderObjectId: The object ID of the placeholder on a
  2268. // layout that will be applied
  2269. // to a slide.
  2270. LayoutPlaceholderObjectId string `json:"layoutPlaceholderObjectId,omitempty"`
  2271. // ObjectId: A user-supplied object ID for the placeholder identified
  2272. // above that to be
  2273. // created onto a slide.
  2274. //
  2275. // If you specify an ID, it must be unique among all pages and page
  2276. // elements
  2277. // in the presentation. The ID must start with an alphanumeric character
  2278. // or an
  2279. // underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
  2280. // may include those as well as a hyphen or colon (matches
  2281. // regex
  2282. // `[a-zA-Z0-9_-:]`).
  2283. // The length of the ID must not be less than 5 or greater than 50.
  2284. //
  2285. // If you don't specify an ID, a unique one is generated.
  2286. ObjectId string `json:"objectId,omitempty"`
  2287. // ForceSendFields is a list of field names (e.g. "LayoutPlaceholder")
  2288. // to unconditionally include in API requests. By default, fields with
  2289. // empty values are omitted from API requests. However, any non-pointer,
  2290. // non-interface field appearing in ForceSendFields will be sent to the
  2291. // server regardless of whether the field is empty or not. This may be
  2292. // used to include empty fields in Patch requests.
  2293. ForceSendFields []string `json:"-"`
  2294. // NullFields is a list of field names (e.g. "LayoutPlaceholder") to
  2295. // include in API requests with the JSON null value. By default, fields
  2296. // with empty values are omitted from API requests. However, any field
  2297. // with an empty value appearing in NullFields will be sent to the
  2298. // server as null. It is an error if a field in this list has a
  2299. // non-empty value. This may be used to include null fields in Patch
  2300. // requests.
  2301. NullFields []string `json:"-"`
  2302. }
  2303. func (s *LayoutPlaceholderIdMapping) MarshalJSON() ([]byte, error) {
  2304. type NoMethod LayoutPlaceholderIdMapping
  2305. raw := NoMethod(*s)
  2306. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2307. }
  2308. // LayoutProperties: The properties of Page are only
  2309. // relevant for pages with page_type LAYOUT.
  2310. type LayoutProperties struct {
  2311. // DisplayName: The human-readable name of the layout.
  2312. DisplayName string `json:"displayName,omitempty"`
  2313. // MasterObjectId: The object ID of the master that this layout is based
  2314. // on.
  2315. MasterObjectId string `json:"masterObjectId,omitempty"`
  2316. // Name: The name of the layout.
  2317. Name string `json:"name,omitempty"`
  2318. // ForceSendFields is a list of field names (e.g. "DisplayName") to
  2319. // unconditionally include in API requests. By default, fields with
  2320. // empty values are omitted from API requests. However, any non-pointer,
  2321. // non-interface field appearing in ForceSendFields will be sent to the
  2322. // server regardless of whether the field is empty or not. This may be
  2323. // used to include empty fields in Patch requests.
  2324. ForceSendFields []string `json:"-"`
  2325. // NullFields is a list of field names (e.g. "DisplayName") to include
  2326. // in API requests with the JSON null value. By default, fields with
  2327. // empty values are omitted from API requests. However, any field with
  2328. // an empty value appearing in NullFields will be sent to the server as
  2329. // null. It is an error if a field in this list has a non-empty value.
  2330. // This may be used to include null fields in Patch requests.
  2331. NullFields []string `json:"-"`
  2332. }
  2333. func (s *LayoutProperties) MarshalJSON() ([]byte, error) {
  2334. type NoMethod LayoutProperties
  2335. raw := NoMethod(*s)
  2336. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2337. }
  2338. // LayoutReference: Slide layout reference. This may reference
  2339. // either:
  2340. //
  2341. // - A predefined layout
  2342. // - One of the layouts in the presentation.
  2343. type LayoutReference struct {
  2344. // LayoutId: Layout ID: the object ID of one of the layouts in the
  2345. // presentation.
  2346. LayoutId string `json:"layoutId,omitempty"`
  2347. // PredefinedLayout: Predefined layout.
  2348. //
  2349. // Possible values:
  2350. // "PREDEFINED_LAYOUT_UNSPECIFIED" - Unspecified layout.
  2351. // "BLANK" - Blank layout, with no placeholders.
  2352. // "CAPTION_ONLY" - Layout with a caption at the bottom.
  2353. // "TITLE" - Layout with a title and a subtitle.
  2354. // "TITLE_AND_BODY" - Layout with a title and body.
  2355. // "TITLE_AND_TWO_COLUMNS" - Layout with a title and two columns.
  2356. // "TITLE_ONLY" - Layout with only a title.
  2357. // "SECTION_HEADER" - Layout with a section title.
  2358. // "SECTION_TITLE_AND_DESCRIPTION" - Layout with a title and subtitle
  2359. // on one side and description on the other.
  2360. // "ONE_COLUMN_TEXT" - Layout with one title and one body, arranged in
  2361. // a single column.
  2362. // "MAIN_POINT" - Layout with a main point.
  2363. // "BIG_NUMBER" - Layout with a big number heading.
  2364. PredefinedLayout string `json:"predefinedLayout,omitempty"`
  2365. // ForceSendFields is a list of field names (e.g. "LayoutId") to
  2366. // unconditionally include in API requests. By default, fields with
  2367. // empty values are omitted from API requests. However, any non-pointer,
  2368. // non-interface field appearing in ForceSendFields will be sent to the
  2369. // server regardless of whether the field is empty or not. This may be
  2370. // used to include empty fields in Patch requests.
  2371. ForceSendFields []string `json:"-"`
  2372. // NullFields is a list of field names (e.g. "LayoutId") to include in
  2373. // API requests with the JSON null value. By default, fields with empty
  2374. // values are omitted from API requests. However, any field with an
  2375. // empty value appearing in NullFields will be sent to the server as
  2376. // null. It is an error if a field in this list has a non-empty value.
  2377. // This may be used to include null fields in Patch requests.
  2378. NullFields []string `json:"-"`
  2379. }
  2380. func (s *LayoutReference) MarshalJSON() ([]byte, error) {
  2381. type NoMethod LayoutReference
  2382. raw := NoMethod(*s)
  2383. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2384. }
  2385. // Line: A PageElement kind representing a
  2386. // non-connector line, straight connector, curved connector, or bent
  2387. // connector.
  2388. type Line struct {
  2389. // LineCategory: The category of the line.
  2390. //
  2391. // It matches the `category` specified in CreateLineRequest, and can be
  2392. // updated with
  2393. // UpdateLineCategoryRequest.
  2394. //
  2395. // Possible values:
  2396. // "LINE_CATEGORY_UNSPECIFIED" - Unspecified line category.
  2397. // "STRAIGHT" - Straight connectors, including straight connector 1.
  2398. // "BENT" - Bent connectors, including bent connector 2 to 5.
  2399. // "CURVED" - Curved connectors, including curved connector 2 to 5.
  2400. LineCategory string `json:"lineCategory,omitempty"`
  2401. // LineProperties: The properties of the line.
  2402. LineProperties *LineProperties `json:"lineProperties,omitempty"`
  2403. // LineType: The type of the line.
  2404. //
  2405. // Possible values:
  2406. // "TYPE_UNSPECIFIED" - An unspecified line type.
  2407. // "STRAIGHT_CONNECTOR_1" - Straight connector 1 form. Corresponds to
  2408. // ECMA-376 ST_ShapeType
  2409. // 'straightConnector1'.
  2410. // "BENT_CONNECTOR_2" - Bent connector 2 form. Corresponds to ECMA-376
  2411. // ST_ShapeType
  2412. // 'bentConnector2'.
  2413. // "BENT_CONNECTOR_3" - Bent connector 3 form. Corresponds to ECMA-376
  2414. // ST_ShapeType
  2415. // 'bentConnector3'.
  2416. // "BENT_CONNECTOR_4" - Bent connector 4 form. Corresponds to ECMA-376
  2417. // ST_ShapeType
  2418. // 'bentConnector4'.
  2419. // "BENT_CONNECTOR_5" - Bent connector 5 form. Corresponds to ECMA-376
  2420. // ST_ShapeType
  2421. // 'bentConnector5'.
  2422. // "CURVED_CONNECTOR_2" - Curved connector 2 form. Corresponds to
  2423. // ECMA-376 ST_ShapeType
  2424. // 'curvedConnector2'.
  2425. // "CURVED_CONNECTOR_3" - Curved connector 3 form. Corresponds to
  2426. // ECMA-376 ST_ShapeType
  2427. // 'curvedConnector3'.
  2428. // "CURVED_CONNECTOR_4" - Curved connector 4 form. Corresponds to
  2429. // ECMA-376 ST_ShapeType
  2430. // 'curvedConnector4'.
  2431. // "CURVED_CONNECTOR_5" - Curved connector 5 form. Corresponds to
  2432. // ECMA-376 ST_ShapeType
  2433. // 'curvedConnector5'.
  2434. // "STRAIGHT_LINE" - Straight line. Corresponds to ECMA-376
  2435. // ST_ShapeType 'line'. This line
  2436. // type is not a connector.
  2437. LineType string `json:"lineType,omitempty"`
  2438. // ForceSendFields is a list of field names (e.g. "LineCategory") to
  2439. // unconditionally include in API requests. By default, fields with
  2440. // empty values are omitted from API requests. However, any non-pointer,
  2441. // non-interface field appearing in ForceSendFields will be sent to the
  2442. // server regardless of whether the field is empty or not. This may be
  2443. // used to include empty fields in Patch requests.
  2444. ForceSendFields []string `json:"-"`
  2445. // NullFields is a list of field names (e.g. "LineCategory") to include
  2446. // in API requests with the JSON null value. By default, fields with
  2447. // empty values are omitted from API requests. However, any field with
  2448. // an empty value appearing in NullFields will be sent to the server as
  2449. // null. It is an error if a field in this list has a non-empty value.
  2450. // This may be used to include null fields in Patch requests.
  2451. NullFields []string `json:"-"`
  2452. }
  2453. func (s *Line) MarshalJSON() ([]byte, error) {
  2454. type NoMethod Line
  2455. raw := NoMethod(*s)
  2456. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2457. }
  2458. // LineConnection: The properties for one end of a Line
  2459. // connection.
  2460. type LineConnection struct {
  2461. // ConnectedObjectId: The object ID of the connected page element.
  2462. //
  2463. // Some page elements, such as groups, tables, and lines
  2464. // do not have connection sites and therefore cannot be connected to
  2465. // a
  2466. // connector line.
  2467. ConnectedObjectId string `json:"connectedObjectId,omitempty"`
  2468. // ConnectionSiteIndex: The index of the connection site on the
  2469. // connected page element.
  2470. //
  2471. // In most cases, it corresponds to the predefined connection site index
  2472. // from
  2473. // the ECMA-376 standard. More information on those connection sites can
  2474. // be
  2475. // found in the description of the "cnx" attribute in section 20.1.9.9
  2476. // and
  2477. // Annex H. "Predefined DrawingML Shape and Text Geometries" of "Office
  2478. // Open
  2479. // XML File Formats-Fundamentals and Markup Language Reference", part 1
  2480. // of
  2481. // [ECMA-376 5th
  2482. // edition]
  2483. // (http://www.ecma-international.org/publications/standards/Ecm
  2484. // a-376.htm).
  2485. //
  2486. // The position of each connection site can also be viewed from Slides
  2487. // editor.
  2488. ConnectionSiteIndex int64 `json:"connectionSiteIndex,omitempty"`
  2489. // ForceSendFields is a list of field names (e.g. "ConnectedObjectId")
  2490. // to unconditionally include in API requests. By default, fields with
  2491. // empty values are omitted from API requests. However, any non-pointer,
  2492. // non-interface field appearing in ForceSendFields will be sent to the
  2493. // server regardless of whether the field is empty or not. This may be
  2494. // used to include empty fields in Patch requests.
  2495. ForceSendFields []string `json:"-"`
  2496. // NullFields is a list of field names (e.g. "ConnectedObjectId") to
  2497. // include in API requests with the JSON null value. By default, fields
  2498. // with empty values are omitted from API requests. However, any field
  2499. // with an empty value appearing in NullFields will be sent to the
  2500. // server as null. It is an error if a field in this list has a
  2501. // non-empty value. This may be used to include null fields in Patch
  2502. // requests.
  2503. NullFields []string `json:"-"`
  2504. }
  2505. func (s *LineConnection) MarshalJSON() ([]byte, error) {
  2506. type NoMethod LineConnection
  2507. raw := NoMethod(*s)
  2508. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2509. }
  2510. // LineFill: The fill of the line.
  2511. type LineFill struct {
  2512. // SolidFill: Solid color fill.
  2513. SolidFill *SolidFill `json:"solidFill,omitempty"`
  2514. // ForceSendFields is a list of field names (e.g. "SolidFill") to
  2515. // unconditionally include in API requests. By default, fields with
  2516. // empty values are omitted from API requests. However, any non-pointer,
  2517. // non-interface field appearing in ForceSendFields will be sent to the
  2518. // server regardless of whether the field is empty or not. This may be
  2519. // used to include empty fields in Patch requests.
  2520. ForceSendFields []string `json:"-"`
  2521. // NullFields is a list of field names (e.g. "SolidFill") to include in
  2522. // API requests with the JSON null value. By default, fields with empty
  2523. // values are omitted from API requests. However, any field with an
  2524. // empty value appearing in NullFields will be sent to the server as
  2525. // null. It is an error if a field in this list has a non-empty value.
  2526. // This may be used to include null fields in Patch requests.
  2527. NullFields []string `json:"-"`
  2528. }
  2529. func (s *LineFill) MarshalJSON() ([]byte, error) {
  2530. type NoMethod LineFill
  2531. raw := NoMethod(*s)
  2532. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2533. }
  2534. // LineProperties: The properties of the Line.
  2535. //
  2536. // When unset, these fields default to values that match the appearance
  2537. // of
  2538. // new lines created in the Slides editor.
  2539. type LineProperties struct {
  2540. // DashStyle: The dash style of the line.
  2541. //
  2542. // Possible values:
  2543. // "DASH_STYLE_UNSPECIFIED" - Unspecified dash style.
  2544. // "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2545. // value 'solid'.
  2546. // This is the default dash style.
  2547. // "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2548. // value 'dot'.
  2549. // "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2550. // value 'dash'.
  2551. // "DASH_DOT" - Alternating dashes and dots. Corresponds to ECMA-376
  2552. // ST_PresetLineDashVal
  2553. // value 'dashDot'.
  2554. // "LONG_DASH" - Line with large dashes. Corresponds to ECMA-376
  2555. // ST_PresetLineDashVal
  2556. // value 'lgDash'.
  2557. // "LONG_DASH_DOT" - Alternating large dashes and dots. Corresponds to
  2558. // ECMA-376
  2559. // ST_PresetLineDashVal value 'lgDashDot'.
  2560. DashStyle string `json:"dashStyle,omitempty"`
  2561. // EndArrow: The style of the arrow at the end of the line.
  2562. //
  2563. // Possible values:
  2564. // "ARROW_STYLE_UNSPECIFIED" - An unspecified arrow style.
  2565. // "NONE" - No arrow.
  2566. // "STEALTH_ARROW" - Arrow with notched back. Corresponds to ECMA-376
  2567. // ST_LineEndType value
  2568. // 'stealth'.
  2569. // "FILL_ARROW" - Filled arrow. Corresponds to ECMA-376 ST_LineEndType
  2570. // value 'triangle'.
  2571. // "FILL_CIRCLE" - Filled circle. Corresponds to ECMA-376
  2572. // ST_LineEndType value 'oval'.
  2573. // "FILL_SQUARE" - Filled square.
  2574. // "FILL_DIAMOND" - Filled diamond. Corresponds to ECMA-376
  2575. // ST_LineEndType value 'diamond'.
  2576. // "OPEN_ARROW" - Hollow arrow.
  2577. // "OPEN_CIRCLE" - Hollow circle.
  2578. // "OPEN_SQUARE" - Hollow square.
  2579. // "OPEN_DIAMOND" - Hollow diamond.
  2580. EndArrow string `json:"endArrow,omitempty"`
  2581. // EndConnection: The connection at the end of the line. If unset, there
  2582. // is no connection.
  2583. //
  2584. // Only lines with a Type indicating it is
  2585. // a "connector" can have an `end_connection`.
  2586. EndConnection *LineConnection `json:"endConnection,omitempty"`
  2587. // LineFill: The fill of the line. The default line fill matches the
  2588. // defaults for new
  2589. // lines created in the Slides editor.
  2590. LineFill *LineFill `json:"lineFill,omitempty"`
  2591. // Link: The hyperlink destination of the line. If unset, there is no
  2592. // link.
  2593. Link *Link `json:"link,omitempty"`
  2594. // StartArrow: The style of the arrow at the beginning of the line.
  2595. //
  2596. // Possible values:
  2597. // "ARROW_STYLE_UNSPECIFIED" - An unspecified arrow style.
  2598. // "NONE" - No arrow.
  2599. // "STEALTH_ARROW" - Arrow with notched back. Corresponds to ECMA-376
  2600. // ST_LineEndType value
  2601. // 'stealth'.
  2602. // "FILL_ARROW" - Filled arrow. Corresponds to ECMA-376 ST_LineEndType
  2603. // value 'triangle'.
  2604. // "FILL_CIRCLE" - Filled circle. Corresponds to ECMA-376
  2605. // ST_LineEndType value 'oval'.
  2606. // "FILL_SQUARE" - Filled square.
  2607. // "FILL_DIAMOND" - Filled diamond. Corresponds to ECMA-376
  2608. // ST_LineEndType value 'diamond'.
  2609. // "OPEN_ARROW" - Hollow arrow.
  2610. // "OPEN_CIRCLE" - Hollow circle.
  2611. // "OPEN_SQUARE" - Hollow square.
  2612. // "OPEN_DIAMOND" - Hollow diamond.
  2613. StartArrow string `json:"startArrow,omitempty"`
  2614. // StartConnection: The connection at the beginning of the line. If
  2615. // unset, there is no
  2616. // connection.
  2617. //
  2618. // Only lines with a Type indicating it is
  2619. // a "connector" can have a `start_connection`.
  2620. StartConnection *LineConnection `json:"startConnection,omitempty"`
  2621. // Weight: The thickness of the line.
  2622. Weight *Dimension `json:"weight,omitempty"`
  2623. // ForceSendFields is a list of field names (e.g. "DashStyle") to
  2624. // unconditionally include in API requests. By default, fields with
  2625. // empty values are omitted from API requests. However, any non-pointer,
  2626. // non-interface field appearing in ForceSendFields will be sent to the
  2627. // server regardless of whether the field is empty or not. This may be
  2628. // used to include empty fields in Patch requests.
  2629. ForceSendFields []string `json:"-"`
  2630. // NullFields is a list of field names (e.g. "DashStyle") to include in
  2631. // API requests with the JSON null value. By default, fields with empty
  2632. // values are omitted from API requests. However, any field with an
  2633. // empty value appearing in NullFields will be sent to the server as
  2634. // null. It is an error if a field in this list has a non-empty value.
  2635. // This may be used to include null fields in Patch requests.
  2636. NullFields []string `json:"-"`
  2637. }
  2638. func (s *LineProperties) MarshalJSON() ([]byte, error) {
  2639. type NoMethod LineProperties
  2640. raw := NoMethod(*s)
  2641. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2642. }
  2643. // Link: A hypertext link.
  2644. type Link struct {
  2645. // PageObjectId: If set, indicates this is a link to the specific page
  2646. // in this
  2647. // presentation with this ID. A page with this ID may not exist.
  2648. PageObjectId string `json:"pageObjectId,omitempty"`
  2649. // RelativeLink: If set, indicates this is a link to a slide in this
  2650. // presentation,
  2651. // addressed by its position.
  2652. //
  2653. // Possible values:
  2654. // "RELATIVE_SLIDE_LINK_UNSPECIFIED" - An unspecified relative slide
  2655. // link.
  2656. // "NEXT_SLIDE" - A link to the next slide.
  2657. // "PREVIOUS_SLIDE" - A link to the previous slide.
  2658. // "FIRST_SLIDE" - A link to the first slide in the presentation.
  2659. // "LAST_SLIDE" - A link to the last slide in the presentation.
  2660. RelativeLink string `json:"relativeLink,omitempty"`
  2661. // SlideIndex: If set, indicates this is a link to the slide at this
  2662. // zero-based index
  2663. // in the presentation. There may not be a slide at this index.
  2664. SlideIndex int64 `json:"slideIndex,omitempty"`
  2665. // Url: If set, indicates this is a link to the external web page at
  2666. // this URL.
  2667. Url string `json:"url,omitempty"`
  2668. // ForceSendFields is a list of field names (e.g. "PageObjectId") to
  2669. // unconditionally include in API requests. By default, fields with
  2670. // empty values are omitted from API requests. However, any non-pointer,
  2671. // non-interface field appearing in ForceSendFields will be sent to the
  2672. // server regardless of whether the field is empty or not. This may be
  2673. // used to include empty fields in Patch requests.
  2674. ForceSendFields []string `json:"-"`
  2675. // NullFields is a list of field names (e.g. "PageObjectId") to include
  2676. // in API requests with the JSON null value. By default, fields with
  2677. // empty values are omitted from API requests. However, any field with
  2678. // an empty value appearing in NullFields will be sent to the server as
  2679. // null. It is an error if a field in this list has a non-empty value.
  2680. // This may be used to include null fields in Patch requests.
  2681. NullFields []string `json:"-"`
  2682. }
  2683. func (s *Link) MarshalJSON() ([]byte, error) {
  2684. type NoMethod Link
  2685. raw := NoMethod(*s)
  2686. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2687. }
  2688. // List: A List describes the look and feel of bullets belonging to
  2689. // paragraphs
  2690. // associated with a list. A paragraph that is part of a list has an
  2691. // implicit
  2692. // reference to that list's ID.
  2693. type List struct {
  2694. // ListId: The ID of the list.
  2695. ListId string `json:"listId,omitempty"`
  2696. // NestingLevel: A map of nesting levels to the properties of bullets at
  2697. // the associated
  2698. // level. A list has at most nine levels of nesting, so the possible
  2699. // values
  2700. // for the keys of this map are 0 through 8, inclusive.
  2701. NestingLevel map[string]NestingLevel `json:"nestingLevel,omitempty"`
  2702. // ForceSendFields is a list of field names (e.g. "ListId") to
  2703. // unconditionally include in API requests. By default, fields with
  2704. // empty values are omitted from API requests. However, any non-pointer,
  2705. // non-interface field appearing in ForceSendFields will be sent to the
  2706. // server regardless of whether the field is empty or not. This may be
  2707. // used to include empty fields in Patch requests.
  2708. ForceSendFields []string `json:"-"`
  2709. // NullFields is a list of field names (e.g. "ListId") to include in API
  2710. // requests with the JSON null value. By default, fields with empty
  2711. // values are omitted from API requests. However, any field with an
  2712. // empty value appearing in NullFields will be sent to the server as
  2713. // null. It is an error if a field in this list has a non-empty value.
  2714. // This may be used to include null fields in Patch requests.
  2715. NullFields []string `json:"-"`
  2716. }
  2717. func (s *List) MarshalJSON() ([]byte, error) {
  2718. type NoMethod List
  2719. raw := NoMethod(*s)
  2720. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2721. }
  2722. // MasterProperties: The properties of Page that are only
  2723. // relevant for pages with page_type MASTER.
  2724. type MasterProperties struct {
  2725. // DisplayName: The human-readable name of the master.
  2726. DisplayName string `json:"displayName,omitempty"`
  2727. // ForceSendFields is a list of field names (e.g. "DisplayName") to
  2728. // unconditionally include in API requests. By default, fields with
  2729. // empty values are omitted from API requests. However, any non-pointer,
  2730. // non-interface field appearing in ForceSendFields will be sent to the
  2731. // server regardless of whether the field is empty or not. This may be
  2732. // used to include empty fields in Patch requests.
  2733. ForceSendFields []string `json:"-"`
  2734. // NullFields is a list of field names (e.g. "DisplayName") to include
  2735. // in API requests with the JSON null value. By default, fields with
  2736. // empty values are omitted from API requests. However, any field with
  2737. // an empty value appearing in NullFields will be sent to the server as
  2738. // null. It is an error if a field in this list has a non-empty value.
  2739. // This may be used to include null fields in Patch requests.
  2740. NullFields []string `json:"-"`
  2741. }
  2742. func (s *MasterProperties) MarshalJSON() ([]byte, error) {
  2743. type NoMethod MasterProperties
  2744. raw := NoMethod(*s)
  2745. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2746. }
  2747. // MergeTableCellsRequest: Merges cells in a Table.
  2748. type MergeTableCellsRequest struct {
  2749. // ObjectId: The object ID of the table.
  2750. ObjectId string `json:"objectId,omitempty"`
  2751. // TableRange: The table range specifying which cells of the table to
  2752. // merge.
  2753. //
  2754. // Any text in the cells being merged will be concatenated and stored in
  2755. // the
  2756. // upper-left ("head") cell of the range. If the range is
  2757. // non-rectangular
  2758. // (which can occur in some cases where the range covers cells that
  2759. // are
  2760. // already merged), a 400 bad request error is returned.
  2761. TableRange *TableRange `json:"tableRange,omitempty"`
  2762. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  2763. // unconditionally include in API requests. By default, fields with
  2764. // empty values are omitted from API requests. However, any non-pointer,
  2765. // non-interface field appearing in ForceSendFields will be sent to the
  2766. // server regardless of whether the field is empty or not. This may be
  2767. // used to include empty fields in Patch requests.
  2768. ForceSendFields []string `json:"-"`
  2769. // NullFields is a list of field names (e.g. "ObjectId") to include in
  2770. // API requests with the JSON null value. By default, fields with empty
  2771. // values are omitted from API requests. However, any field with an
  2772. // empty value appearing in NullFields will be sent to the server as
  2773. // null. It is an error if a field in this list has a non-empty value.
  2774. // This may be used to include null fields in Patch requests.
  2775. NullFields []string `json:"-"`
  2776. }
  2777. func (s *MergeTableCellsRequest) MarshalJSON() ([]byte, error) {
  2778. type NoMethod MergeTableCellsRequest
  2779. raw := NoMethod(*s)
  2780. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2781. }
  2782. // NestingLevel: Contains properties describing the look and feel of a
  2783. // list bullet at a given
  2784. // level of nesting.
  2785. type NestingLevel struct {
  2786. // BulletStyle: The style of a bullet at this level of nesting.
  2787. BulletStyle *TextStyle `json:"bulletStyle,omitempty"`
  2788. // ForceSendFields is a list of field names (e.g. "BulletStyle") to
  2789. // unconditionally include in API requests. By default, fields with
  2790. // empty values are omitted from API requests. However, any non-pointer,
  2791. // non-interface field appearing in ForceSendFields will be sent to the
  2792. // server regardless of whether the field is empty or not. This may be
  2793. // used to include empty fields in Patch requests.
  2794. ForceSendFields []string `json:"-"`
  2795. // NullFields is a list of field names (e.g. "BulletStyle") to include
  2796. // in API requests with the JSON null value. By default, fields with
  2797. // empty values are omitted from API requests. However, any field with
  2798. // an empty value appearing in NullFields will be sent to the server as
  2799. // null. It is an error if a field in this list has a non-empty value.
  2800. // This may be used to include null fields in Patch requests.
  2801. NullFields []string `json:"-"`
  2802. }
  2803. func (s *NestingLevel) MarshalJSON() ([]byte, error) {
  2804. type NoMethod NestingLevel
  2805. raw := NoMethod(*s)
  2806. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2807. }
  2808. // NotesProperties: The properties of Page that are only
  2809. // relevant for pages with page_type NOTES.
  2810. type NotesProperties struct {
  2811. // SpeakerNotesObjectId: The object ID of the shape on this notes page
  2812. // that contains the speaker
  2813. // notes for the corresponding slide.
  2814. // The actual shape may not always exist on the notes page. Inserting
  2815. // text
  2816. // using this object ID will automatically create the shape. In this
  2817. // case, the
  2818. // actual shape may have different object ID. The `GetPresentation`
  2819. // or
  2820. // `GetPage` action will always return the latest object ID.
  2821. SpeakerNotesObjectId string `json:"speakerNotesObjectId,omitempty"`
  2822. // ForceSendFields is a list of field names (e.g.
  2823. // "SpeakerNotesObjectId") to unconditionally include in API requests.
  2824. // By default, fields with empty values are omitted from API requests.
  2825. // However, any non-pointer, non-interface field appearing in
  2826. // ForceSendFields will be sent to the server regardless of whether the
  2827. // field is empty or not. This may be used to include empty fields in
  2828. // Patch requests.
  2829. ForceSendFields []string `json:"-"`
  2830. // NullFields is a list of field names (e.g. "SpeakerNotesObjectId") to
  2831. // include in API requests with the JSON null value. By default, fields
  2832. // with empty values are omitted from API requests. However, any field
  2833. // with an empty value appearing in NullFields will be sent to the
  2834. // server as null. It is an error if a field in this list has a
  2835. // non-empty value. This may be used to include null fields in Patch
  2836. // requests.
  2837. NullFields []string `json:"-"`
  2838. }
  2839. func (s *NotesProperties) MarshalJSON() ([]byte, error) {
  2840. type NoMethod NotesProperties
  2841. raw := NoMethod(*s)
  2842. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2843. }
  2844. // OpaqueColor: A themeable solid color value.
  2845. type OpaqueColor struct {
  2846. // RgbColor: An opaque RGB color.
  2847. RgbColor *RgbColor `json:"rgbColor,omitempty"`
  2848. // ThemeColor: An opaque theme color.
  2849. //
  2850. // Possible values:
  2851. // "THEME_COLOR_TYPE_UNSPECIFIED" - Unspecified theme color. This
  2852. // value should not be used.
  2853. // "DARK1" - Represents the first dark color.
  2854. // "LIGHT1" - Represents the first light color.
  2855. // "DARK2" - Represents the second dark color.
  2856. // "LIGHT2" - Represents the second light color.
  2857. // "ACCENT1" - Represents the first accent color.
  2858. // "ACCENT2" - Represents the second accent color.
  2859. // "ACCENT3" - Represents the third accent color.
  2860. // "ACCENT4" - Represents the fourth accent color.
  2861. // "ACCENT5" - Represents the fifth accent color.
  2862. // "ACCENT6" - Represents the sixth accent color.
  2863. // "HYPERLINK" - Represents the color to use for hyperlinks.
  2864. // "FOLLOWED_HYPERLINK" - Represents the color to use for visited
  2865. // hyperlinks.
  2866. // "TEXT1" - Represents the first text color.
  2867. // "BACKGROUND1" - Represents the first background color.
  2868. // "TEXT2" - Represents the second text color.
  2869. // "BACKGROUND2" - Represents the second background color.
  2870. ThemeColor string `json:"themeColor,omitempty"`
  2871. // ForceSendFields is a list of field names (e.g. "RgbColor") to
  2872. // unconditionally include in API requests. By default, fields with
  2873. // empty values are omitted from API requests. However, any non-pointer,
  2874. // non-interface field appearing in ForceSendFields will be sent to the
  2875. // server regardless of whether the field is empty or not. This may be
  2876. // used to include empty fields in Patch requests.
  2877. ForceSendFields []string `json:"-"`
  2878. // NullFields is a list of field names (e.g. "RgbColor") to include in
  2879. // API requests with the JSON null value. By default, fields with empty
  2880. // values are omitted from API requests. However, any field with an
  2881. // empty value appearing in NullFields will be sent to the server as
  2882. // null. It is an error if a field in this list has a non-empty value.
  2883. // This may be used to include null fields in Patch requests.
  2884. NullFields []string `json:"-"`
  2885. }
  2886. func (s *OpaqueColor) MarshalJSON() ([]byte, error) {
  2887. type NoMethod OpaqueColor
  2888. raw := NoMethod(*s)
  2889. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2890. }
  2891. // OptionalColor: A color that can either be fully opaque or fully
  2892. // transparent.
  2893. type OptionalColor struct {
  2894. // OpaqueColor: If set, this will be used as an opaque color. If unset,
  2895. // this represents
  2896. // a transparent color.
  2897. OpaqueColor *OpaqueColor `json:"opaqueColor,omitempty"`
  2898. // ForceSendFields is a list of field names (e.g. "OpaqueColor") to
  2899. // unconditionally include in API requests. By default, fields with
  2900. // empty values are omitted from API requests. However, any non-pointer,
  2901. // non-interface field appearing in ForceSendFields will be sent to the
  2902. // server regardless of whether the field is empty or not. This may be
  2903. // used to include empty fields in Patch requests.
  2904. ForceSendFields []string `json:"-"`
  2905. // NullFields is a list of field names (e.g. "OpaqueColor") to include
  2906. // in API requests with the JSON null value. By default, fields with
  2907. // empty values are omitted from API requests. However, any field with
  2908. // an empty value appearing in NullFields will be sent to the server as
  2909. // null. It is an error if a field in this list has a non-empty value.
  2910. // This may be used to include null fields in Patch requests.
  2911. NullFields []string `json:"-"`
  2912. }
  2913. func (s *OptionalColor) MarshalJSON() ([]byte, error) {
  2914. type NoMethod OptionalColor
  2915. raw := NoMethod(*s)
  2916. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2917. }
  2918. // Outline: The outline of a PageElement.
  2919. //
  2920. // If these fields are unset, they may be inherited from a parent
  2921. // placeholder
  2922. // if it exists. If there is no parent, the fields will default to the
  2923. // value
  2924. // used for new page elements created in the Slides editor, which may
  2925. // depend on
  2926. // the page element kind.
  2927. type Outline struct {
  2928. // DashStyle: The dash style of the outline.
  2929. //
  2930. // Possible values:
  2931. // "DASH_STYLE_UNSPECIFIED" - Unspecified dash style.
  2932. // "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2933. // value 'solid'.
  2934. // This is the default dash style.
  2935. // "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2936. // value 'dot'.
  2937. // "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal
  2938. // value 'dash'.
  2939. // "DASH_DOT" - Alternating dashes and dots. Corresponds to ECMA-376
  2940. // ST_PresetLineDashVal
  2941. // value 'dashDot'.
  2942. // "LONG_DASH" - Line with large dashes. Corresponds to ECMA-376
  2943. // ST_PresetLineDashVal
  2944. // value 'lgDash'.
  2945. // "LONG_DASH_DOT" - Alternating large dashes and dots. Corresponds to
  2946. // ECMA-376
  2947. // ST_PresetLineDashVal value 'lgDashDot'.
  2948. DashStyle string `json:"dashStyle,omitempty"`
  2949. // OutlineFill: The fill of the outline.
  2950. OutlineFill *OutlineFill `json:"outlineFill,omitempty"`
  2951. // PropertyState: The outline property state.
  2952. //
  2953. // Updating the outline on a page element will implicitly update this
  2954. // field
  2955. // to `RENDERED`, unless another value is specified in the same request.
  2956. // To
  2957. // have no outline on a page element, set this field to `NOT_RENDERED`.
  2958. // In
  2959. // this case, any other outline fields set in the same request will
  2960. // be
  2961. // ignored.
  2962. //
  2963. // Possible values:
  2964. // "RENDERED" - If a property's state is RENDERED, then the element
  2965. // has the corresponding
  2966. // property when rendered on a page. If the element is a placeholder
  2967. // shape as
  2968. // determined by the placeholder
  2969. // field, and it inherits from a placeholder shape, the corresponding
  2970. // field
  2971. // may be unset, meaning that the property value is inherited from a
  2972. // parent
  2973. // placeholder. If the element does not inherit, then the field will
  2974. // contain
  2975. // the rendered value. This is the default value.
  2976. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  2977. // element does not have the
  2978. // corresponding property when rendered on a page. However, the field
  2979. // may
  2980. // still be set so it can be inherited by child shapes. To remove a
  2981. // property
  2982. // from a rendered element, set its property_state to NOT_RENDERED.
  2983. // "INHERIT" - If a property's state is INHERIT, then the property
  2984. // state uses the value of
  2985. // corresponding `property_state` field on the parent shape. Elements
  2986. // that do
  2987. // not inherit will never have an INHERIT property state.
  2988. PropertyState string `json:"propertyState,omitempty"`
  2989. // Weight: The thickness of the outline.
  2990. Weight *Dimension `json:"weight,omitempty"`
  2991. // ForceSendFields is a list of field names (e.g. "DashStyle") to
  2992. // unconditionally include in API requests. By default, fields with
  2993. // empty values are omitted from API requests. However, any non-pointer,
  2994. // non-interface field appearing in ForceSendFields will be sent to the
  2995. // server regardless of whether the field is empty or not. This may be
  2996. // used to include empty fields in Patch requests.
  2997. ForceSendFields []string `json:"-"`
  2998. // NullFields is a list of field names (e.g. "DashStyle") to include in
  2999. // API requests with the JSON null value. By default, fields with empty
  3000. // values are omitted from API requests. However, any field with an
  3001. // empty value appearing in NullFields will be sent to the server as
  3002. // null. It is an error if a field in this list has a non-empty value.
  3003. // This may be used to include null fields in Patch requests.
  3004. NullFields []string `json:"-"`
  3005. }
  3006. func (s *Outline) MarshalJSON() ([]byte, error) {
  3007. type NoMethod Outline
  3008. raw := NoMethod(*s)
  3009. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3010. }
  3011. // OutlineFill: The fill of the outline.
  3012. type OutlineFill struct {
  3013. // SolidFill: Solid color fill.
  3014. SolidFill *SolidFill `json:"solidFill,omitempty"`
  3015. // ForceSendFields is a list of field names (e.g. "SolidFill") to
  3016. // unconditionally include in API requests. By default, fields with
  3017. // empty values are omitted from API requests. However, any non-pointer,
  3018. // non-interface field appearing in ForceSendFields will be sent to the
  3019. // server regardless of whether the field is empty or not. This may be
  3020. // used to include empty fields in Patch requests.
  3021. ForceSendFields []string `json:"-"`
  3022. // NullFields is a list of field names (e.g. "SolidFill") to include in
  3023. // API requests with the JSON null value. By default, fields with empty
  3024. // values are omitted from API requests. However, any field with an
  3025. // empty value appearing in NullFields will be sent to the server as
  3026. // null. It is an error if a field in this list has a non-empty value.
  3027. // This may be used to include null fields in Patch requests.
  3028. NullFields []string `json:"-"`
  3029. }
  3030. func (s *OutlineFill) MarshalJSON() ([]byte, error) {
  3031. type NoMethod OutlineFill
  3032. raw := NoMethod(*s)
  3033. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3034. }
  3035. // Page: A page in a presentation.
  3036. type Page struct {
  3037. // LayoutProperties: Layout specific properties. Only set if page_type =
  3038. // LAYOUT.
  3039. LayoutProperties *LayoutProperties `json:"layoutProperties,omitempty"`
  3040. // MasterProperties: Master specific properties. Only set if page_type =
  3041. // MASTER.
  3042. MasterProperties *MasterProperties `json:"masterProperties,omitempty"`
  3043. // NotesProperties: Notes specific properties. Only set if page_type =
  3044. // NOTES.
  3045. NotesProperties *NotesProperties `json:"notesProperties,omitempty"`
  3046. // ObjectId: The object ID for this page. Object IDs used by
  3047. // Page and
  3048. // PageElement share the same namespace.
  3049. ObjectId string `json:"objectId,omitempty"`
  3050. // PageElements: The page elements rendered on the page.
  3051. PageElements []*PageElement `json:"pageElements,omitempty"`
  3052. // PageProperties: The properties of the page.
  3053. PageProperties *PageProperties `json:"pageProperties,omitempty"`
  3054. // PageType: The type of the page.
  3055. //
  3056. // Possible values:
  3057. // "SLIDE" - A slide page.
  3058. // "MASTER" - A master slide page.
  3059. // "LAYOUT" - A layout page.
  3060. // "NOTES" - A notes page.
  3061. // "NOTES_MASTER" - A notes master page.
  3062. PageType string `json:"pageType,omitempty"`
  3063. // RevisionId: The revision ID of the presentation containing this page.
  3064. // Can be used in
  3065. // update requests to assert that the presentation revision hasn't
  3066. // changed
  3067. // since the last read operation. Only populated if the user has edit
  3068. // access
  3069. // to the presentation.
  3070. //
  3071. // The format of the revision ID may change over time, so it should be
  3072. // treated
  3073. // opaquely. A returned revision ID is only guaranteed to be valid for
  3074. // 24
  3075. // hours after it has been returned and cannot be shared across users.
  3076. // If the
  3077. // revision ID is unchanged between calls, then the presentation has
  3078. // not
  3079. // changed. Conversely, a changed ID (for the same presentation and
  3080. // user)
  3081. // usually means the presentation has been updated; however, a changed
  3082. // ID can
  3083. // also be due to internal factors such as ID format changes.
  3084. RevisionId string `json:"revisionId,omitempty"`
  3085. // SlideProperties: Slide specific properties. Only set if page_type =
  3086. // SLIDE.
  3087. SlideProperties *SlideProperties `json:"slideProperties,omitempty"`
  3088. // ServerResponse contains the HTTP response code and headers from the
  3089. // server.
  3090. googleapi.ServerResponse `json:"-"`
  3091. // ForceSendFields is a list of field names (e.g. "LayoutProperties") to
  3092. // unconditionally include in API requests. By default, fields with
  3093. // empty values are omitted from API requests. However, any non-pointer,
  3094. // non-interface field appearing in ForceSendFields will be sent to the
  3095. // server regardless of whether the field is empty or not. This may be
  3096. // used to include empty fields in Patch requests.
  3097. ForceSendFields []string `json:"-"`
  3098. // NullFields is a list of field names (e.g. "LayoutProperties") to
  3099. // include in API requests with the JSON null value. By default, fields
  3100. // with empty values are omitted from API requests. However, any field
  3101. // with an empty value appearing in NullFields will be sent to the
  3102. // server as null. It is an error if a field in this list has a
  3103. // non-empty value. This may be used to include null fields in Patch
  3104. // requests.
  3105. NullFields []string `json:"-"`
  3106. }
  3107. func (s *Page) MarshalJSON() ([]byte, error) {
  3108. type NoMethod Page
  3109. raw := NoMethod(*s)
  3110. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3111. }
  3112. // PageBackgroundFill: The page background fill.
  3113. type PageBackgroundFill struct {
  3114. // PropertyState: The background fill property state.
  3115. //
  3116. // Updating the fill on a page will implicitly update this field
  3117. // to
  3118. // `RENDERED`, unless another value is specified in the same request.
  3119. // To
  3120. // have no fill on a page, set this field to `NOT_RENDERED`. In this
  3121. // case,
  3122. // any other fill fields set in the same request will be ignored.
  3123. //
  3124. // Possible values:
  3125. // "RENDERED" - If a property's state is RENDERED, then the element
  3126. // has the corresponding
  3127. // property when rendered on a page. If the element is a placeholder
  3128. // shape as
  3129. // determined by the placeholder
  3130. // field, and it inherits from a placeholder shape, the corresponding
  3131. // field
  3132. // may be unset, meaning that the property value is inherited from a
  3133. // parent
  3134. // placeholder. If the element does not inherit, then the field will
  3135. // contain
  3136. // the rendered value. This is the default value.
  3137. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  3138. // element does not have the
  3139. // corresponding property when rendered on a page. However, the field
  3140. // may
  3141. // still be set so it can be inherited by child shapes. To remove a
  3142. // property
  3143. // from a rendered element, set its property_state to NOT_RENDERED.
  3144. // "INHERIT" - If a property's state is INHERIT, then the property
  3145. // state uses the value of
  3146. // corresponding `property_state` field on the parent shape. Elements
  3147. // that do
  3148. // not inherit will never have an INHERIT property state.
  3149. PropertyState string `json:"propertyState,omitempty"`
  3150. // SolidFill: Solid color fill.
  3151. SolidFill *SolidFill `json:"solidFill,omitempty"`
  3152. // StretchedPictureFill: Stretched picture fill.
  3153. StretchedPictureFill *StretchedPictureFill `json:"stretchedPictureFill,omitempty"`
  3154. // ForceSendFields is a list of field names (e.g. "PropertyState") to
  3155. // unconditionally include in API requests. By default, fields with
  3156. // empty values are omitted from API requests. However, any non-pointer,
  3157. // non-interface field appearing in ForceSendFields will be sent to the
  3158. // server regardless of whether the field is empty or not. This may be
  3159. // used to include empty fields in Patch requests.
  3160. ForceSendFields []string `json:"-"`
  3161. // NullFields is a list of field names (e.g. "PropertyState") to include
  3162. // in API requests with the JSON null value. By default, fields with
  3163. // empty values are omitted from API requests. However, any field with
  3164. // an empty value appearing in NullFields will be sent to the server as
  3165. // null. It is an error if a field in this list has a non-empty value.
  3166. // This may be used to include null fields in Patch requests.
  3167. NullFields []string `json:"-"`
  3168. }
  3169. func (s *PageBackgroundFill) MarshalJSON() ([]byte, error) {
  3170. type NoMethod PageBackgroundFill
  3171. raw := NoMethod(*s)
  3172. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3173. }
  3174. // PageElement: A visual element rendered on a page.
  3175. type PageElement struct {
  3176. // Description: The description of the page element. Combined with title
  3177. // to display alt
  3178. // text.
  3179. Description string `json:"description,omitempty"`
  3180. // ElementGroup: A collection of page elements joined as a single unit.
  3181. ElementGroup *Group `json:"elementGroup,omitempty"`
  3182. // Image: An image page element.
  3183. Image *Image `json:"image,omitempty"`
  3184. // Line: A line page element.
  3185. Line *Line `json:"line,omitempty"`
  3186. // ObjectId: The object ID for this page element. Object IDs used
  3187. // by
  3188. // google.apps.slides.v1.Page and
  3189. // google.apps.slides.v1.PageElement share the same namespace.
  3190. ObjectId string `json:"objectId,omitempty"`
  3191. // Shape: A generic shape.
  3192. Shape *Shape `json:"shape,omitempty"`
  3193. // SheetsChart: A linked chart embedded from Google Sheets. Unlinked
  3194. // charts are
  3195. // represented as images.
  3196. SheetsChart *SheetsChart `json:"sheetsChart,omitempty"`
  3197. // Size: The size of the page element.
  3198. Size *Size `json:"size,omitempty"`
  3199. // Table: A table page element.
  3200. Table *Table `json:"table,omitempty"`
  3201. // Title: The title of the page element. Combined with description to
  3202. // display alt
  3203. // text.
  3204. Title string `json:"title,omitempty"`
  3205. // Transform: The transform of the page element.
  3206. //
  3207. // The visual appearance of the page element is determined by its
  3208. // absolute
  3209. // transform. To compute the absolute transform, preconcatenate a
  3210. // page
  3211. // element's transform with the transforms of all of its parent groups.
  3212. // If the
  3213. // page element is not in a group, its absolute transform is the same as
  3214. // the
  3215. // value in this field.
  3216. //
  3217. // The initial transform for the newly created Group is always the
  3218. // identity transform.
  3219. Transform *AffineTransform `json:"transform,omitempty"`
  3220. // Video: A video page element.
  3221. Video *Video `json:"video,omitempty"`
  3222. // WordArt: A word art page element.
  3223. WordArt *WordArt `json:"wordArt,omitempty"`
  3224. // ForceSendFields is a list of field names (e.g. "Description") to
  3225. // unconditionally include in API requests. By default, fields with
  3226. // empty values are omitted from API requests. However, any non-pointer,
  3227. // non-interface field appearing in ForceSendFields will be sent to the
  3228. // server regardless of whether the field is empty or not. This may be
  3229. // used to include empty fields in Patch requests.
  3230. ForceSendFields []string `json:"-"`
  3231. // NullFields is a list of field names (e.g. "Description") to include
  3232. // in API requests with the JSON null value. By default, fields with
  3233. // empty values are omitted from API requests. However, any field with
  3234. // an empty value appearing in NullFields will be sent to the server as
  3235. // null. It is an error if a field in this list has a non-empty value.
  3236. // This may be used to include null fields in Patch requests.
  3237. NullFields []string `json:"-"`
  3238. }
  3239. func (s *PageElement) MarshalJSON() ([]byte, error) {
  3240. type NoMethod PageElement
  3241. raw := NoMethod(*s)
  3242. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3243. }
  3244. // PageElementProperties: Common properties for a page element.
  3245. //
  3246. // Note: When you initially create a
  3247. // PageElement, the API may modify
  3248. // the values of both `size` and `transform`, but the
  3249. // visual size will be unchanged.
  3250. type PageElementProperties struct {
  3251. // PageObjectId: The object ID of the page where the element is located.
  3252. PageObjectId string `json:"pageObjectId,omitempty"`
  3253. // Size: The size of the element.
  3254. Size *Size `json:"size,omitempty"`
  3255. // Transform: The transform for the element.
  3256. Transform *AffineTransform `json:"transform,omitempty"`
  3257. // ForceSendFields is a list of field names (e.g. "PageObjectId") to
  3258. // unconditionally include in API requests. By default, fields with
  3259. // empty values are omitted from API requests. However, any non-pointer,
  3260. // non-interface field appearing in ForceSendFields will be sent to the
  3261. // server regardless of whether the field is empty or not. This may be
  3262. // used to include empty fields in Patch requests.
  3263. ForceSendFields []string `json:"-"`
  3264. // NullFields is a list of field names (e.g. "PageObjectId") to include
  3265. // in API requests with the JSON null value. By default, fields with
  3266. // empty values are omitted from API requests. However, any field with
  3267. // an empty value appearing in NullFields will be sent to the server as
  3268. // null. It is an error if a field in this list has a non-empty value.
  3269. // This may be used to include null fields in Patch requests.
  3270. NullFields []string `json:"-"`
  3271. }
  3272. func (s *PageElementProperties) MarshalJSON() ([]byte, error) {
  3273. type NoMethod PageElementProperties
  3274. raw := NoMethod(*s)
  3275. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3276. }
  3277. // PageProperties: The properties of the Page.
  3278. //
  3279. // The page will inherit properties from the parent page. Depending on
  3280. // the page
  3281. // type the hierarchy is defined in either
  3282. // SlideProperties or
  3283. // LayoutProperties.
  3284. type PageProperties struct {
  3285. // ColorScheme: The color scheme of the page. If unset, the color scheme
  3286. // is inherited from
  3287. // a parent page. If the page has no parent, the color scheme uses a
  3288. // default
  3289. // Slides color scheme. This field is read-only.
  3290. ColorScheme *ColorScheme `json:"colorScheme,omitempty"`
  3291. // PageBackgroundFill: The background fill of the page. If unset, the
  3292. // background fill is inherited
  3293. // from a parent page if it exists. If the page has no parent, then
  3294. // the
  3295. // background fill defaults to the corresponding fill in the Slides
  3296. // editor.
  3297. PageBackgroundFill *PageBackgroundFill `json:"pageBackgroundFill,omitempty"`
  3298. // ForceSendFields is a list of field names (e.g. "ColorScheme") to
  3299. // unconditionally include in API requests. By default, fields with
  3300. // empty values are omitted from API requests. However, any non-pointer,
  3301. // non-interface field appearing in ForceSendFields will be sent to the
  3302. // server regardless of whether the field is empty or not. This may be
  3303. // used to include empty fields in Patch requests.
  3304. ForceSendFields []string `json:"-"`
  3305. // NullFields is a list of field names (e.g. "ColorScheme") to include
  3306. // in API requests with the JSON null value. By default, fields with
  3307. // empty values are omitted from API requests. However, any field with
  3308. // an empty value appearing in NullFields will be sent to the server as
  3309. // null. It is an error if a field in this list has a non-empty value.
  3310. // This may be used to include null fields in Patch requests.
  3311. NullFields []string `json:"-"`
  3312. }
  3313. func (s *PageProperties) MarshalJSON() ([]byte, error) {
  3314. type NoMethod PageProperties
  3315. raw := NoMethod(*s)
  3316. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3317. }
  3318. // ParagraphMarker: A TextElement kind that represents the beginning of
  3319. // a new paragraph.
  3320. type ParagraphMarker struct {
  3321. // Bullet: The bullet for this paragraph. If not present, the paragraph
  3322. // does not
  3323. // belong to a list.
  3324. Bullet *Bullet `json:"bullet,omitempty"`
  3325. // Style: The paragraph's style
  3326. Style *ParagraphStyle `json:"style,omitempty"`
  3327. // ForceSendFields is a list of field names (e.g. "Bullet") to
  3328. // unconditionally include in API requests. By default, fields with
  3329. // empty values are omitted from API requests. However, any non-pointer,
  3330. // non-interface field appearing in ForceSendFields will be sent to the
  3331. // server regardless of whether the field is empty or not. This may be
  3332. // used to include empty fields in Patch requests.
  3333. ForceSendFields []string `json:"-"`
  3334. // NullFields is a list of field names (e.g. "Bullet") to include in API
  3335. // requests with the JSON null value. By default, fields with empty
  3336. // values are omitted from API requests. However, any field with an
  3337. // empty value appearing in NullFields will be sent to the server as
  3338. // null. It is an error if a field in this list has a non-empty value.
  3339. // This may be used to include null fields in Patch requests.
  3340. NullFields []string `json:"-"`
  3341. }
  3342. func (s *ParagraphMarker) MarshalJSON() ([]byte, error) {
  3343. type NoMethod ParagraphMarker
  3344. raw := NoMethod(*s)
  3345. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3346. }
  3347. // ParagraphStyle: Styles that apply to a whole paragraph.
  3348. //
  3349. // If this text is contained in a shape with a parent placeholder, then
  3350. // these paragraph styles may be
  3351. // inherited from the parent. Which paragraph styles are inherited
  3352. // depend on the
  3353. // nesting level of lists:
  3354. //
  3355. // * A paragraph not in a list will inherit its paragraph style from
  3356. // the
  3357. // paragraph at the 0 nesting level of the list inside the parent
  3358. // placeholder.
  3359. // * A paragraph in a list will inherit its paragraph style from the
  3360. // paragraph
  3361. // at its corresponding nesting level of the list inside the parent
  3362. // placeholder.
  3363. //
  3364. // Inherited paragraph styles are represented as unset fields in this
  3365. // message.
  3366. type ParagraphStyle struct {
  3367. // Alignment: The text alignment for this paragraph.
  3368. //
  3369. // Possible values:
  3370. // "ALIGNMENT_UNSPECIFIED" - The paragraph alignment is inherited from
  3371. // the parent.
  3372. // "START" - The paragraph is aligned to the start of the line.
  3373. // Left-aligned for
  3374. // LTR text, right-aligned otherwise.
  3375. // "CENTER" - The paragraph is centered.
  3376. // "END" - The paragraph is aligned to the end of the line.
  3377. // Right-aligned for
  3378. // LTR text, left-aligned otherwise.
  3379. // "JUSTIFIED" - The paragraph is justified.
  3380. Alignment string `json:"alignment,omitempty"`
  3381. // Direction: The text direction of this paragraph. If unset, the value
  3382. // defaults to
  3383. // LEFT_TO_RIGHT since
  3384. // text direction is not inherited.
  3385. //
  3386. // Possible values:
  3387. // "TEXT_DIRECTION_UNSPECIFIED" - The text direction is inherited from
  3388. // the parent.
  3389. // "LEFT_TO_RIGHT" - The text goes from left to right.
  3390. // "RIGHT_TO_LEFT" - The text goes from right to left.
  3391. Direction string `json:"direction,omitempty"`
  3392. // IndentEnd: The amount indentation for the paragraph on the side that
  3393. // corresponds to
  3394. // the end of the text, based on the current text direction. If unset,
  3395. // the
  3396. // value is inherited from the parent.
  3397. IndentEnd *Dimension `json:"indentEnd,omitempty"`
  3398. // IndentFirstLine: The amount of indentation for the start of the first
  3399. // line of the paragraph.
  3400. // If unset, the value is inherited from the parent.
  3401. IndentFirstLine *Dimension `json:"indentFirstLine,omitempty"`
  3402. // IndentStart: The amount indentation for the paragraph on the side
  3403. // that corresponds to
  3404. // the start of the text, based on the current text direction. If unset,
  3405. // the
  3406. // value is inherited from the parent.
  3407. IndentStart *Dimension `json:"indentStart,omitempty"`
  3408. // LineSpacing: The amount of space between lines, as a percentage of
  3409. // normal, where normal
  3410. // is represented as 100.0. If unset, the value is inherited from the
  3411. // parent.
  3412. LineSpacing float64 `json:"lineSpacing,omitempty"`
  3413. // SpaceAbove: The amount of extra space above the paragraph. If unset,
  3414. // the value is
  3415. // inherited from the parent.
  3416. SpaceAbove *Dimension `json:"spaceAbove,omitempty"`
  3417. // SpaceBelow: The amount of extra space below the paragraph. If unset,
  3418. // the value is
  3419. // inherited from the parent.
  3420. SpaceBelow *Dimension `json:"spaceBelow,omitempty"`
  3421. // SpacingMode: The spacing mode for the paragraph.
  3422. //
  3423. // Possible values:
  3424. // "SPACING_MODE_UNSPECIFIED" - The spacing mode is inherited from the
  3425. // parent.
  3426. // "NEVER_COLLAPSE" - Paragraph spacing is always rendered.
  3427. // "COLLAPSE_LISTS" - Paragraph spacing is skipped between list
  3428. // elements.
  3429. SpacingMode string `json:"spacingMode,omitempty"`
  3430. // ForceSendFields is a list of field names (e.g. "Alignment") to
  3431. // unconditionally include in API requests. By default, fields with
  3432. // empty values are omitted from API requests. However, any non-pointer,
  3433. // non-interface field appearing in ForceSendFields will be sent to the
  3434. // server regardless of whether the field is empty or not. This may be
  3435. // used to include empty fields in Patch requests.
  3436. ForceSendFields []string `json:"-"`
  3437. // NullFields is a list of field names (e.g. "Alignment") to include in
  3438. // API requests with the JSON null value. By default, fields with empty
  3439. // values are omitted from API requests. However, any field with an
  3440. // empty value appearing in NullFields will be sent to the server as
  3441. // null. It is an error if a field in this list has a non-empty value.
  3442. // This may be used to include null fields in Patch requests.
  3443. NullFields []string `json:"-"`
  3444. }
  3445. func (s *ParagraphStyle) MarshalJSON() ([]byte, error) {
  3446. type NoMethod ParagraphStyle
  3447. raw := NoMethod(*s)
  3448. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3449. }
  3450. func (s *ParagraphStyle) UnmarshalJSON(data []byte) error {
  3451. type NoMethod ParagraphStyle
  3452. var s1 struct {
  3453. LineSpacing gensupport.JSONFloat64 `json:"lineSpacing"`
  3454. *NoMethod
  3455. }
  3456. s1.NoMethod = (*NoMethod)(s)
  3457. if err := json.Unmarshal(data, &s1); err != nil {
  3458. return err
  3459. }
  3460. s.LineSpacing = float64(s1.LineSpacing)
  3461. return nil
  3462. }
  3463. // Placeholder: The placeholder information that uniquely identifies a
  3464. // placeholder shape.
  3465. type Placeholder struct {
  3466. // Index: The index of the placeholder. If the same placeholder types
  3467. // are present in
  3468. // the same page, they would have different index values.
  3469. Index int64 `json:"index,omitempty"`
  3470. // ParentObjectId: The object ID of this shape's parent placeholder.
  3471. // If unset, the parent placeholder shape does not exist, so the shape
  3472. // does
  3473. // not inherit properties from any other shape.
  3474. ParentObjectId string `json:"parentObjectId,omitempty"`
  3475. // Type: The type of the placeholder.
  3476. //
  3477. // Possible values:
  3478. // "NONE" - Default value, signifies it is not a placeholder.
  3479. // "BODY" - Body text.
  3480. // "CHART" - Chart or graph.
  3481. // "CLIP_ART" - Clip art image.
  3482. // "CENTERED_TITLE" - Title centered.
  3483. // "DIAGRAM" - Diagram.
  3484. // "DATE_AND_TIME" - Date and time.
  3485. // "FOOTER" - Footer text.
  3486. // "HEADER" - Header text.
  3487. // "MEDIA" - Multimedia.
  3488. // "OBJECT" - Any content type.
  3489. // "PICTURE" - Picture.
  3490. // "SLIDE_NUMBER" - Number of a slide.
  3491. // "SUBTITLE" - Subtitle.
  3492. // "TABLE" - Table.
  3493. // "TITLE" - Slide title.
  3494. // "SLIDE_IMAGE" - Slide image.
  3495. Type string `json:"type,omitempty"`
  3496. // ForceSendFields is a list of field names (e.g. "Index") to
  3497. // unconditionally include in API requests. By default, fields with
  3498. // empty values are omitted from API requests. However, any non-pointer,
  3499. // non-interface field appearing in ForceSendFields will be sent to the
  3500. // server regardless of whether the field is empty or not. This may be
  3501. // used to include empty fields in Patch requests.
  3502. ForceSendFields []string `json:"-"`
  3503. // NullFields is a list of field names (e.g. "Index") to include in API
  3504. // requests with the JSON null value. By default, fields with empty
  3505. // values are omitted from API requests. However, any field with an
  3506. // empty value appearing in NullFields will be sent to the server as
  3507. // null. It is an error if a field in this list has a non-empty value.
  3508. // This may be used to include null fields in Patch requests.
  3509. NullFields []string `json:"-"`
  3510. }
  3511. func (s *Placeholder) MarshalJSON() ([]byte, error) {
  3512. type NoMethod Placeholder
  3513. raw := NoMethod(*s)
  3514. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3515. }
  3516. // Presentation: A Google Slides presentation.
  3517. type Presentation struct {
  3518. // Layouts: The layouts in the presentation. A layout is a template that
  3519. // determines
  3520. // how content is arranged and styled on the slides that inherit from
  3521. // that
  3522. // layout.
  3523. Layouts []*Page `json:"layouts,omitempty"`
  3524. // Locale: The locale of the presentation, as an IETF BCP 47 language
  3525. // tag.
  3526. Locale string `json:"locale,omitempty"`
  3527. // Masters: The slide masters in the presentation. A slide master
  3528. // contains all common
  3529. // page elements and the common properties for a set of layouts. They
  3530. // serve
  3531. // three purposes:
  3532. //
  3533. // - Placeholder shapes on a master contain the default text styles and
  3534. // shape
  3535. // properties of all placeholder shapes on pages that use that
  3536. // master.
  3537. // - The master page properties define the common page properties
  3538. // inherited by
  3539. // its layouts.
  3540. // - Any other shapes on the master slide will appear on all slides
  3541. // using that
  3542. // master, regardless of their layout.
  3543. Masters []*Page `json:"masters,omitempty"`
  3544. // NotesMaster: The notes master in the presentation. It serves three
  3545. // purposes:
  3546. //
  3547. // - Placeholder shapes on a notes master contain the default text
  3548. // styles and
  3549. // shape properties of all placeholder shapes on notes pages.
  3550. // Specifically,
  3551. // a `SLIDE_IMAGE` placeholder shape contains the slide thumbnail, and
  3552. // a
  3553. // `BODY` placeholder shape contains the speaker notes.
  3554. // - The notes master page properties define the common page properties
  3555. // inherited by all notes pages.
  3556. // - Any other shapes on the notes master will appear on all notes
  3557. // pages.
  3558. //
  3559. // The notes master is read-only.
  3560. NotesMaster *Page `json:"notesMaster,omitempty"`
  3561. // PageSize: The size of pages in the presentation.
  3562. PageSize *Size `json:"pageSize,omitempty"`
  3563. // PresentationId: The ID of the presentation.
  3564. PresentationId string `json:"presentationId,omitempty"`
  3565. // RevisionId: The revision ID of the presentation. Can be used in
  3566. // update requests
  3567. // to assert that the presentation revision hasn't changed since the
  3568. // last
  3569. // read operation. Only populated if the user has edit access to
  3570. // the
  3571. // presentation.
  3572. //
  3573. // The format of the revision ID may change over time, so it should be
  3574. // treated
  3575. // opaquely. A returned revision ID is only guaranteed to be valid for
  3576. // 24
  3577. // hours after it has been returned and cannot be shared across users.
  3578. // If the
  3579. // revision ID is unchanged between calls, then the presentation has
  3580. // not
  3581. // changed. Conversely, a changed ID (for the same presentation and
  3582. // user)
  3583. // usually means the presentation has been updated; however, a changed
  3584. // ID can
  3585. // also be due to internal factors such as ID format changes.
  3586. RevisionId string `json:"revisionId,omitempty"`
  3587. // Slides: The slides in the presentation.
  3588. // A slide inherits properties from a slide layout.
  3589. Slides []*Page `json:"slides,omitempty"`
  3590. // Title: The title of the presentation.
  3591. Title string `json:"title,omitempty"`
  3592. // ServerResponse contains the HTTP response code and headers from the
  3593. // server.
  3594. googleapi.ServerResponse `json:"-"`
  3595. // ForceSendFields is a list of field names (e.g. "Layouts") to
  3596. // unconditionally include in API requests. By default, fields with
  3597. // empty values are omitted from API requests. However, any non-pointer,
  3598. // non-interface field appearing in ForceSendFields will be sent to the
  3599. // server regardless of whether the field is empty or not. This may be
  3600. // used to include empty fields in Patch requests.
  3601. ForceSendFields []string `json:"-"`
  3602. // NullFields is a list of field names (e.g. "Layouts") to include in
  3603. // API requests with the JSON null value. By default, fields with empty
  3604. // values are omitted from API requests. However, any field with an
  3605. // empty value appearing in NullFields will be sent to the server as
  3606. // null. It is an error if a field in this list has a non-empty value.
  3607. // This may be used to include null fields in Patch requests.
  3608. NullFields []string `json:"-"`
  3609. }
  3610. func (s *Presentation) MarshalJSON() ([]byte, error) {
  3611. type NoMethod Presentation
  3612. raw := NoMethod(*s)
  3613. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3614. }
  3615. // Range: Specifies a contiguous range of an indexed collection, such as
  3616. // characters in
  3617. // text.
  3618. type Range struct {
  3619. // EndIndex: The optional zero-based index of the end of the
  3620. // collection.
  3621. // Required for `FIXED_RANGE` ranges.
  3622. EndIndex int64 `json:"endIndex,omitempty"`
  3623. // StartIndex: The optional zero-based index of the beginning of the
  3624. // collection.
  3625. // Required for `FIXED_RANGE` and `FROM_START_INDEX` ranges.
  3626. StartIndex int64 `json:"startIndex,omitempty"`
  3627. // Type: The type of range.
  3628. //
  3629. // Possible values:
  3630. // "RANGE_TYPE_UNSPECIFIED" - Unspecified range type. This value must
  3631. // not be used.
  3632. // "FIXED_RANGE" - A fixed range. Both the `start_index`
  3633. // and
  3634. // `end_index` must be specified.
  3635. // "FROM_START_INDEX" - Starts the range at `start_index` and
  3636. // continues until the
  3637. // end of the collection. The `end_index` must not be specified.
  3638. // "ALL" - Sets the range to be the whole length of the collection.
  3639. // Both the
  3640. // `start_index` and the `end_index` must not be
  3641. // specified.
  3642. Type string `json:"type,omitempty"`
  3643. // ForceSendFields is a list of field names (e.g. "EndIndex") to
  3644. // unconditionally include in API requests. By default, fields with
  3645. // empty values are omitted from API requests. However, any non-pointer,
  3646. // non-interface field appearing in ForceSendFields will be sent to the
  3647. // server regardless of whether the field is empty or not. This may be
  3648. // used to include empty fields in Patch requests.
  3649. ForceSendFields []string `json:"-"`
  3650. // NullFields is a list of field names (e.g. "EndIndex") to include in
  3651. // API requests with the JSON null value. By default, fields with empty
  3652. // values are omitted from API requests. However, any field with an
  3653. // empty value appearing in NullFields will be sent to the server as
  3654. // null. It is an error if a field in this list has a non-empty value.
  3655. // This may be used to include null fields in Patch requests.
  3656. NullFields []string `json:"-"`
  3657. }
  3658. func (s *Range) MarshalJSON() ([]byte, error) {
  3659. type NoMethod Range
  3660. raw := NoMethod(*s)
  3661. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3662. }
  3663. // Recolor: A recolor effect applied on an image.
  3664. type Recolor struct {
  3665. // Name: The name of the recolor effect.
  3666. //
  3667. // The name is determined from the `recolor_stops` by matching the
  3668. // gradient
  3669. // against the colors in the page's current color scheme. This property
  3670. // is
  3671. // read-only.
  3672. //
  3673. // Possible values:
  3674. // "NONE" - No recolor effect. The default value.
  3675. // "LIGHT1" - A recolor effect that lightens the image using the
  3676. // page's first available
  3677. // color from its color scheme.
  3678. // "LIGHT2" - A recolor effect that lightens the image using the
  3679. // page's second
  3680. // available color from its color scheme.
  3681. // "LIGHT3" - A recolor effect that lightens the image using the
  3682. // page's third available
  3683. // color from its color scheme.
  3684. // "LIGHT4" - A recolor effect that lightens the image using the
  3685. // page's forth available
  3686. // color from its color scheme.
  3687. // "LIGHT5" - A recolor effect that lightens the image using the
  3688. // page's fifth available
  3689. // color from its color scheme.
  3690. // "LIGHT6" - A recolor effect that lightens the image using the
  3691. // page's sixth available
  3692. // color from its color scheme.
  3693. // "LIGHT7" - A recolor effect that lightens the image using the
  3694. // page's seventh
  3695. // available color from its color scheme.
  3696. // "LIGHT8" - A recolor effect that lightens the image using the
  3697. // page's eighth
  3698. // available color from its color scheme.
  3699. // "LIGHT9" - A recolor effect that lightens the image using the
  3700. // page's ninth available
  3701. // color from its color scheme.
  3702. // "LIGHT10" - A recolor effect that lightens the image using the
  3703. // page's tenth available
  3704. // color from its color scheme.
  3705. // "DARK1" - A recolor effect that darkens the image using the page's
  3706. // first available
  3707. // color from its color scheme.
  3708. // "DARK2" - A recolor effect that darkens the image using the page's
  3709. // second available
  3710. // color from its color scheme.
  3711. // "DARK3" - A recolor effect that darkens the image using the page's
  3712. // third available
  3713. // color from its color scheme.
  3714. // "DARK4" - A recolor effect that darkens the image using the page's
  3715. // fourth available
  3716. // color from its color scheme.
  3717. // "DARK5" - A recolor effect that darkens the image using the page's
  3718. // fifth available
  3719. // color from its color scheme.
  3720. // "DARK6" - A recolor effect that darkens the image using the page's
  3721. // sixth available
  3722. // color from its color scheme.
  3723. // "DARK7" - A recolor effect that darkens the image using the page's
  3724. // seventh
  3725. // available color from its color scheme.
  3726. // "DARK8" - A recolor effect that darkens the image using the page's
  3727. // eighth available
  3728. // color from its color scheme.
  3729. // "DARK9" - A recolor effect that darkens the image using the page's
  3730. // ninth available
  3731. // color from its color scheme.
  3732. // "DARK10" - A recolor effect that darkens the image using the page's
  3733. // tenth available
  3734. // color from its color scheme.
  3735. // "GRAYSCALE" - A recolor effect that recolors the image to
  3736. // grayscale.
  3737. // "NEGATIVE" - A recolor effect that recolors the image to negative
  3738. // grayscale.
  3739. // "SEPIA" - A recolor effect that recolors the image using the sepia
  3740. // color.
  3741. // "CUSTOM" - Custom recolor effect. Refer to `recolor_stops` for the
  3742. // concrete
  3743. // gradient.
  3744. Name string `json:"name,omitempty"`
  3745. // RecolorStops: The recolor effect is represented by a gradient, which
  3746. // is a list of color
  3747. // stops.
  3748. //
  3749. // The colors in the gradient will replace the corresponding colors
  3750. // at
  3751. // the same position in the color palette and apply to the image.
  3752. // This
  3753. // property is read-only.
  3754. RecolorStops []*ColorStop `json:"recolorStops,omitempty"`
  3755. // ForceSendFields is a list of field names (e.g. "Name") to
  3756. // unconditionally include in API requests. By default, fields with
  3757. // empty values are omitted from API requests. However, any non-pointer,
  3758. // non-interface field appearing in ForceSendFields will be sent to the
  3759. // server regardless of whether the field is empty or not. This may be
  3760. // used to include empty fields in Patch requests.
  3761. ForceSendFields []string `json:"-"`
  3762. // NullFields is a list of field names (e.g. "Name") to include in API
  3763. // requests with the JSON null value. By default, fields with empty
  3764. // values are omitted from API requests. However, any field with an
  3765. // empty value appearing in NullFields will be sent to the server as
  3766. // null. It is an error if a field in this list has a non-empty value.
  3767. // This may be used to include null fields in Patch requests.
  3768. NullFields []string `json:"-"`
  3769. }
  3770. func (s *Recolor) MarshalJSON() ([]byte, error) {
  3771. type NoMethod Recolor
  3772. raw := NoMethod(*s)
  3773. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3774. }
  3775. // RefreshSheetsChartRequest: Refreshes an embedded Google Sheets chart
  3776. // by replacing it with the latest
  3777. // version of the chart from Google Sheets.
  3778. //
  3779. // NOTE: Refreshing charts requires at least one of the
  3780. // spreadsheets.readonly,
  3781. // spreadsheets, drive.readonly, or drive OAuth scopes.
  3782. type RefreshSheetsChartRequest struct {
  3783. // ObjectId: The object ID of the chart to refresh.
  3784. ObjectId string `json:"objectId,omitempty"`
  3785. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  3786. // unconditionally include in API requests. By default, fields with
  3787. // empty values are omitted from API requests. However, any non-pointer,
  3788. // non-interface field appearing in ForceSendFields will be sent to the
  3789. // server regardless of whether the field is empty or not. This may be
  3790. // used to include empty fields in Patch requests.
  3791. ForceSendFields []string `json:"-"`
  3792. // NullFields is a list of field names (e.g. "ObjectId") to include in
  3793. // API requests with the JSON null value. By default, fields with empty
  3794. // values are omitted from API requests. However, any field with an
  3795. // empty value appearing in NullFields will be sent to the server as
  3796. // null. It is an error if a field in this list has a non-empty value.
  3797. // This may be used to include null fields in Patch requests.
  3798. NullFields []string `json:"-"`
  3799. }
  3800. func (s *RefreshSheetsChartRequest) MarshalJSON() ([]byte, error) {
  3801. type NoMethod RefreshSheetsChartRequest
  3802. raw := NoMethod(*s)
  3803. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3804. }
  3805. // ReplaceAllShapesWithImageRequest: Replaces all shapes that match the
  3806. // given criteria with the provided image.
  3807. //
  3808. // The images replacing the shapes are rectangular after being inserted
  3809. // into
  3810. // the presentation and do not take on the forms of the shapes.
  3811. type ReplaceAllShapesWithImageRequest struct {
  3812. // ContainsText: If set, this request will replace all of the shapes
  3813. // that contain the
  3814. // given text.
  3815. ContainsText *SubstringMatchCriteria `json:"containsText,omitempty"`
  3816. // ImageReplaceMethod: The image replace method.
  3817. //
  3818. // If you specify both a `replace_method` and an `image_replace_method`,
  3819. // the
  3820. // `image_replace_method` takes precedence.
  3821. //
  3822. // If you do not specify a value for `image_replace_method`, but specify
  3823. // a
  3824. // value for `replace_method`, then the specified `replace_method` value
  3825. // is
  3826. // used.
  3827. //
  3828. // If you do not specify either, then CENTER_INSIDE is used.
  3829. //
  3830. // Possible values:
  3831. // "IMAGE_REPLACE_METHOD_UNSPECIFIED" - Unspecified image replace
  3832. // method. This value must not be used.
  3833. // "CENTER_INSIDE" - Scales and centers the image to fit within the
  3834. // bounds of the original
  3835. // shape and maintains the image's aspect ratio. The rendered size of
  3836. // the
  3837. // image may be smaller than the size of the shape. This is the
  3838. // default
  3839. // method when one is not specified.
  3840. // "CENTER_CROP" - Scales and centers the image to fill the bounds of
  3841. // the original shape.
  3842. // The image may be cropped in order to fill the shape. The rendered
  3843. // size of
  3844. // the image will be the same as that of the original shape.
  3845. ImageReplaceMethod string `json:"imageReplaceMethod,omitempty"`
  3846. // ImageUrl: The image URL.
  3847. //
  3848. // The image is fetched once at insertion time and a copy is stored
  3849. // for
  3850. // display inside the presentation. Images must be less than 50MB in
  3851. // size,
  3852. // cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
  3853. // GIF
  3854. // format.
  3855. //
  3856. // The provided URL can be at most 2 kB in length. The URL itself is
  3857. // saved
  3858. // with the image, and exposed via the Image.source_url field.
  3859. ImageUrl string `json:"imageUrl,omitempty"`
  3860. // PageObjectIds: If non-empty, limits the matches to page elements only
  3861. // on the given pages.
  3862. //
  3863. // Returns a 400 bad request error if given the page object ID of
  3864. // a
  3865. // notes page or a
  3866. // notes master, or if a
  3867. // page with that object ID doesn't exist in the presentation.
  3868. PageObjectIds []string `json:"pageObjectIds,omitempty"`
  3869. // ReplaceMethod: The replace method.
  3870. //
  3871. // <b>Deprecated</b>: use `image_replace_method` instead.
  3872. //
  3873. // If you specify both a `replace_method` and an `image_replace_method`,
  3874. // the
  3875. // `image_replace_method` takes precedence.
  3876. //
  3877. // Possible values:
  3878. // "CENTER_INSIDE" - Scales and centers the image to fit within the
  3879. // bounds of the original
  3880. // shape and maintains the image's aspect ratio. The rendered size of
  3881. // the
  3882. // image may be smaller than the size of the shape. This is the
  3883. // default
  3884. // method when one is not specified.
  3885. // "CENTER_CROP" - Scales and centers the image to fill the bounds of
  3886. // the original shape.
  3887. // The image may be cropped in order to fill the shape. The rendered
  3888. // size of
  3889. // the image will be the same as that of the original shape.
  3890. ReplaceMethod string `json:"replaceMethod,omitempty"`
  3891. // ForceSendFields is a list of field names (e.g. "ContainsText") to
  3892. // unconditionally include in API requests. By default, fields with
  3893. // empty values are omitted from API requests. However, any non-pointer,
  3894. // non-interface field appearing in ForceSendFields will be sent to the
  3895. // server regardless of whether the field is empty or not. This may be
  3896. // used to include empty fields in Patch requests.
  3897. ForceSendFields []string `json:"-"`
  3898. // NullFields is a list of field names (e.g. "ContainsText") to include
  3899. // in API requests with the JSON null value. By default, fields with
  3900. // empty values are omitted from API requests. However, any field with
  3901. // an empty value appearing in NullFields will be sent to the server as
  3902. // null. It is an error if a field in this list has a non-empty value.
  3903. // This may be used to include null fields in Patch requests.
  3904. NullFields []string `json:"-"`
  3905. }
  3906. func (s *ReplaceAllShapesWithImageRequest) MarshalJSON() ([]byte, error) {
  3907. type NoMethod ReplaceAllShapesWithImageRequest
  3908. raw := NoMethod(*s)
  3909. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3910. }
  3911. // ReplaceAllShapesWithImageResponse: The result of replacing shapes
  3912. // with an image.
  3913. type ReplaceAllShapesWithImageResponse struct {
  3914. // OccurrencesChanged: The number of shapes replaced with images.
  3915. OccurrencesChanged int64 `json:"occurrencesChanged,omitempty"`
  3916. // ForceSendFields is a list of field names (e.g. "OccurrencesChanged")
  3917. // to unconditionally include in API requests. By default, fields with
  3918. // empty values are omitted from API requests. However, any non-pointer,
  3919. // non-interface field appearing in ForceSendFields will be sent to the
  3920. // server regardless of whether the field is empty or not. This may be
  3921. // used to include empty fields in Patch requests.
  3922. ForceSendFields []string `json:"-"`
  3923. // NullFields is a list of field names (e.g. "OccurrencesChanged") to
  3924. // include in API requests with the JSON null value. By default, fields
  3925. // with empty values are omitted from API requests. However, any field
  3926. // with an empty value appearing in NullFields will be sent to the
  3927. // server as null. It is an error if a field in this list has a
  3928. // non-empty value. This may be used to include null fields in Patch
  3929. // requests.
  3930. NullFields []string `json:"-"`
  3931. }
  3932. func (s *ReplaceAllShapesWithImageResponse) MarshalJSON() ([]byte, error) {
  3933. type NoMethod ReplaceAllShapesWithImageResponse
  3934. raw := NoMethod(*s)
  3935. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3936. }
  3937. // ReplaceAllShapesWithSheetsChartRequest: Replaces all shapes that
  3938. // match the given criteria with the provided Google
  3939. // Sheets chart. The chart will be scaled and centered to fit within the
  3940. // bounds
  3941. // of the original shape.
  3942. //
  3943. // NOTE: Replacing shapes with a chart requires at least one of
  3944. // the
  3945. // spreadsheets.readonly, spreadsheets, drive.readonly, or drive OAuth
  3946. // scopes.
  3947. type ReplaceAllShapesWithSheetsChartRequest struct {
  3948. // ChartId: The ID of the specific chart in the Google Sheets
  3949. // spreadsheet.
  3950. ChartId int64 `json:"chartId,omitempty"`
  3951. // ContainsText: The criteria that the shapes must match in order to be
  3952. // replaced. The
  3953. // request will replace all of the shapes that contain the given text.
  3954. ContainsText *SubstringMatchCriteria `json:"containsText,omitempty"`
  3955. // LinkingMode: The mode with which the chart is linked to the source
  3956. // spreadsheet. When
  3957. // not specified, the chart will be an image that is not linked.
  3958. //
  3959. // Possible values:
  3960. // "NOT_LINKED_IMAGE" - The chart is not associated with the source
  3961. // spreadsheet and cannot be
  3962. // updated. A chart that is not linked will be inserted as an image.
  3963. // "LINKED" - Linking the chart allows it to be updated, and other
  3964. // collaborators will
  3965. // see a link to the spreadsheet.
  3966. LinkingMode string `json:"linkingMode,omitempty"`
  3967. // PageObjectIds: If non-empty, limits the matches to page elements only
  3968. // on the given pages.
  3969. //
  3970. // Returns a 400 bad request error if given the page object ID of
  3971. // a
  3972. // notes page or a
  3973. // notes master, or if a
  3974. // page with that object ID doesn't exist in the presentation.
  3975. PageObjectIds []string `json:"pageObjectIds,omitempty"`
  3976. // SpreadsheetId: The ID of the Google Sheets spreadsheet that contains
  3977. // the chart.
  3978. SpreadsheetId string `json:"spreadsheetId,omitempty"`
  3979. // ForceSendFields is a list of field names (e.g. "ChartId") to
  3980. // unconditionally include in API requests. By default, fields with
  3981. // empty values are omitted from API requests. However, any non-pointer,
  3982. // non-interface field appearing in ForceSendFields will be sent to the
  3983. // server regardless of whether the field is empty or not. This may be
  3984. // used to include empty fields in Patch requests.
  3985. ForceSendFields []string `json:"-"`
  3986. // NullFields is a list of field names (e.g. "ChartId") to include in
  3987. // API requests with the JSON null value. By default, fields with empty
  3988. // values are omitted from API requests. However, any field with an
  3989. // empty value appearing in NullFields will be sent to the server as
  3990. // null. It is an error if a field in this list has a non-empty value.
  3991. // This may be used to include null fields in Patch requests.
  3992. NullFields []string `json:"-"`
  3993. }
  3994. func (s *ReplaceAllShapesWithSheetsChartRequest) MarshalJSON() ([]byte, error) {
  3995. type NoMethod ReplaceAllShapesWithSheetsChartRequest
  3996. raw := NoMethod(*s)
  3997. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3998. }
  3999. // ReplaceAllShapesWithSheetsChartResponse: The result of replacing
  4000. // shapes with a Google Sheets chart.
  4001. type ReplaceAllShapesWithSheetsChartResponse struct {
  4002. // OccurrencesChanged: The number of shapes replaced with charts.
  4003. OccurrencesChanged int64 `json:"occurrencesChanged,omitempty"`
  4004. // ForceSendFields is a list of field names (e.g. "OccurrencesChanged")
  4005. // to unconditionally include in API requests. By default, fields with
  4006. // empty values are omitted from API requests. However, any non-pointer,
  4007. // non-interface field appearing in ForceSendFields will be sent to the
  4008. // server regardless of whether the field is empty or not. This may be
  4009. // used to include empty fields in Patch requests.
  4010. ForceSendFields []string `json:"-"`
  4011. // NullFields is a list of field names (e.g. "OccurrencesChanged") to
  4012. // include in API requests with the JSON null value. By default, fields
  4013. // with empty values are omitted from API requests. However, any field
  4014. // with an empty value appearing in NullFields will be sent to the
  4015. // server as null. It is an error if a field in this list has a
  4016. // non-empty value. This may be used to include null fields in Patch
  4017. // requests.
  4018. NullFields []string `json:"-"`
  4019. }
  4020. func (s *ReplaceAllShapesWithSheetsChartResponse) MarshalJSON() ([]byte, error) {
  4021. type NoMethod ReplaceAllShapesWithSheetsChartResponse
  4022. raw := NoMethod(*s)
  4023. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4024. }
  4025. // ReplaceAllTextRequest: Replaces all instances of text matching a
  4026. // criteria with replace text.
  4027. type ReplaceAllTextRequest struct {
  4028. // ContainsText: Finds text in a shape matching this substring.
  4029. ContainsText *SubstringMatchCriteria `json:"containsText,omitempty"`
  4030. // PageObjectIds: If non-empty, limits the matches to page elements only
  4031. // on the given pages.
  4032. //
  4033. // Returns a 400 bad request error if given the page object ID of
  4034. // a
  4035. // notes master,
  4036. // or if a page with that object ID doesn't exist in the presentation.
  4037. PageObjectIds []string `json:"pageObjectIds,omitempty"`
  4038. // ReplaceText: The text that will replace the matched text.
  4039. ReplaceText string `json:"replaceText,omitempty"`
  4040. // ForceSendFields is a list of field names (e.g. "ContainsText") to
  4041. // unconditionally include in API requests. By default, fields with
  4042. // empty values are omitted from API requests. However, any non-pointer,
  4043. // non-interface field appearing in ForceSendFields will be sent to the
  4044. // server regardless of whether the field is empty or not. This may be
  4045. // used to include empty fields in Patch requests.
  4046. ForceSendFields []string `json:"-"`
  4047. // NullFields is a list of field names (e.g. "ContainsText") to include
  4048. // in API requests with the JSON null value. By default, fields with
  4049. // empty values are omitted from API requests. However, any field with
  4050. // an empty value appearing in NullFields will be sent to the server as
  4051. // null. It is an error if a field in this list has a non-empty value.
  4052. // This may be used to include null fields in Patch requests.
  4053. NullFields []string `json:"-"`
  4054. }
  4055. func (s *ReplaceAllTextRequest) MarshalJSON() ([]byte, error) {
  4056. type NoMethod ReplaceAllTextRequest
  4057. raw := NoMethod(*s)
  4058. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4059. }
  4060. // ReplaceAllTextResponse: The result of replacing text.
  4061. type ReplaceAllTextResponse struct {
  4062. // OccurrencesChanged: The number of occurrences changed by replacing
  4063. // all text.
  4064. OccurrencesChanged int64 `json:"occurrencesChanged,omitempty"`
  4065. // ForceSendFields is a list of field names (e.g. "OccurrencesChanged")
  4066. // to unconditionally include in API requests. By default, fields with
  4067. // empty values are omitted from API requests. However, any non-pointer,
  4068. // non-interface field appearing in ForceSendFields will be sent to the
  4069. // server regardless of whether the field is empty or not. This may be
  4070. // used to include empty fields in Patch requests.
  4071. ForceSendFields []string `json:"-"`
  4072. // NullFields is a list of field names (e.g. "OccurrencesChanged") to
  4073. // include in API requests with the JSON null value. By default, fields
  4074. // with empty values are omitted from API requests. However, any field
  4075. // with an empty value appearing in NullFields will be sent to the
  4076. // server as null. It is an error if a field in this list has a
  4077. // non-empty value. This may be used to include null fields in Patch
  4078. // requests.
  4079. NullFields []string `json:"-"`
  4080. }
  4081. func (s *ReplaceAllTextResponse) MarshalJSON() ([]byte, error) {
  4082. type NoMethod ReplaceAllTextResponse
  4083. raw := NoMethod(*s)
  4084. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4085. }
  4086. // ReplaceImageRequest: Replaces an existing image with a new
  4087. // image.
  4088. //
  4089. // Replacing an image removes some image effects from the existing
  4090. // image.
  4091. type ReplaceImageRequest struct {
  4092. // ImageObjectId: The ID of the existing image that will be replaced.
  4093. ImageObjectId string `json:"imageObjectId,omitempty"`
  4094. // ImageReplaceMethod: The replacement method.
  4095. //
  4096. // Possible values:
  4097. // "IMAGE_REPLACE_METHOD_UNSPECIFIED" - Unspecified image replace
  4098. // method. This value must not be used.
  4099. // "CENTER_INSIDE" - Scales and centers the image to fit within the
  4100. // bounds of the original
  4101. // shape and maintains the image's aspect ratio. The rendered size of
  4102. // the
  4103. // image may be smaller than the size of the shape. This is the
  4104. // default
  4105. // method when one is not specified.
  4106. // "CENTER_CROP" - Scales and centers the image to fill the bounds of
  4107. // the original shape.
  4108. // The image may be cropped in order to fill the shape. The rendered
  4109. // size of
  4110. // the image will be the same as that of the original shape.
  4111. ImageReplaceMethod string `json:"imageReplaceMethod,omitempty"`
  4112. // Url: The URL of the new image.
  4113. //
  4114. // The image is fetched once at insertion time and a copy is stored
  4115. // for
  4116. // display inside the presentation. Images must be less than 50MB in
  4117. // size,
  4118. // cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
  4119. // GIF
  4120. // format.
  4121. //
  4122. // The provided URL can be at most 2 kB in length. The URL itself is
  4123. // saved
  4124. // with the image, and exposed via the Image.source_url field.
  4125. Url string `json:"url,omitempty"`
  4126. // ForceSendFields is a list of field names (e.g. "ImageObjectId") to
  4127. // unconditionally include in API requests. By default, fields with
  4128. // empty values are omitted from API requests. However, any non-pointer,
  4129. // non-interface field appearing in ForceSendFields will be sent to the
  4130. // server regardless of whether the field is empty or not. This may be
  4131. // used to include empty fields in Patch requests.
  4132. ForceSendFields []string `json:"-"`
  4133. // NullFields is a list of field names (e.g. "ImageObjectId") to include
  4134. // in API requests with the JSON null value. By default, fields with
  4135. // empty values are omitted from API requests. However, any field with
  4136. // an empty value appearing in NullFields will be sent to the server as
  4137. // null. It is an error if a field in this list has a non-empty value.
  4138. // This may be used to include null fields in Patch requests.
  4139. NullFields []string `json:"-"`
  4140. }
  4141. func (s *ReplaceImageRequest) MarshalJSON() ([]byte, error) {
  4142. type NoMethod ReplaceImageRequest
  4143. raw := NoMethod(*s)
  4144. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4145. }
  4146. // Request: A single kind of update to apply to a presentation.
  4147. type Request struct {
  4148. // CreateImage: Creates an image.
  4149. CreateImage *CreateImageRequest `json:"createImage,omitempty"`
  4150. // CreateLine: Creates a line.
  4151. CreateLine *CreateLineRequest `json:"createLine,omitempty"`
  4152. // CreateParagraphBullets: Creates bullets for paragraphs.
  4153. CreateParagraphBullets *CreateParagraphBulletsRequest `json:"createParagraphBullets,omitempty"`
  4154. // CreateShape: Creates a new shape.
  4155. CreateShape *CreateShapeRequest `json:"createShape,omitempty"`
  4156. // CreateSheetsChart: Creates an embedded Google Sheets chart.
  4157. CreateSheetsChart *CreateSheetsChartRequest `json:"createSheetsChart,omitempty"`
  4158. // CreateSlide: Creates a new slide.
  4159. CreateSlide *CreateSlideRequest `json:"createSlide,omitempty"`
  4160. // CreateTable: Creates a new table.
  4161. CreateTable *CreateTableRequest `json:"createTable,omitempty"`
  4162. // CreateVideo: Creates a video.
  4163. CreateVideo *CreateVideoRequest `json:"createVideo,omitempty"`
  4164. // DeleteObject: Deletes a page or page element from the presentation.
  4165. DeleteObject *DeleteObjectRequest `json:"deleteObject,omitempty"`
  4166. // DeleteParagraphBullets: Deletes bullets from paragraphs.
  4167. DeleteParagraphBullets *DeleteParagraphBulletsRequest `json:"deleteParagraphBullets,omitempty"`
  4168. // DeleteTableColumn: Deletes a column from a table.
  4169. DeleteTableColumn *DeleteTableColumnRequest `json:"deleteTableColumn,omitempty"`
  4170. // DeleteTableRow: Deletes a row from a table.
  4171. DeleteTableRow *DeleteTableRowRequest `json:"deleteTableRow,omitempty"`
  4172. // DeleteText: Deletes text from a shape or a table cell.
  4173. DeleteText *DeleteTextRequest `json:"deleteText,omitempty"`
  4174. // DuplicateObject: Duplicates a slide or page element.
  4175. DuplicateObject *DuplicateObjectRequest `json:"duplicateObject,omitempty"`
  4176. // GroupObjects: Groups objects, such as page elements.
  4177. GroupObjects *GroupObjectsRequest `json:"groupObjects,omitempty"`
  4178. // InsertTableColumns: Inserts columns into a table.
  4179. InsertTableColumns *InsertTableColumnsRequest `json:"insertTableColumns,omitempty"`
  4180. // InsertTableRows: Inserts rows into a table.
  4181. InsertTableRows *InsertTableRowsRequest `json:"insertTableRows,omitempty"`
  4182. // InsertText: Inserts text into a shape or table cell.
  4183. InsertText *InsertTextRequest `json:"insertText,omitempty"`
  4184. // MergeTableCells: Merges cells in a Table.
  4185. MergeTableCells *MergeTableCellsRequest `json:"mergeTableCells,omitempty"`
  4186. // RefreshSheetsChart: Refreshes a Google Sheets chart.
  4187. RefreshSheetsChart *RefreshSheetsChartRequest `json:"refreshSheetsChart,omitempty"`
  4188. // ReplaceAllShapesWithImage: Replaces all shapes matching some criteria
  4189. // with an image.
  4190. ReplaceAllShapesWithImage *ReplaceAllShapesWithImageRequest `json:"replaceAllShapesWithImage,omitempty"`
  4191. // ReplaceAllShapesWithSheetsChart: Replaces all shapes matching some
  4192. // criteria with a Google Sheets chart.
  4193. ReplaceAllShapesWithSheetsChart *ReplaceAllShapesWithSheetsChartRequest `json:"replaceAllShapesWithSheetsChart,omitempty"`
  4194. // ReplaceAllText: Replaces all instances of specified text.
  4195. ReplaceAllText *ReplaceAllTextRequest `json:"replaceAllText,omitempty"`
  4196. // ReplaceImage: Replaces an existing image with a new image.
  4197. ReplaceImage *ReplaceImageRequest `json:"replaceImage,omitempty"`
  4198. // RerouteLine: Reroutes a line such that it's connected
  4199. // at the two closest connection sites on the connected page elements.
  4200. RerouteLine *RerouteLineRequest `json:"rerouteLine,omitempty"`
  4201. // UngroupObjects: Ungroups objects, such as groups.
  4202. UngroupObjects *UngroupObjectsRequest `json:"ungroupObjects,omitempty"`
  4203. // UnmergeTableCells: Unmerges cells in a Table.
  4204. UnmergeTableCells *UnmergeTableCellsRequest `json:"unmergeTableCells,omitempty"`
  4205. // UpdateImageProperties: Updates the properties of an Image.
  4206. UpdateImageProperties *UpdateImagePropertiesRequest `json:"updateImageProperties,omitempty"`
  4207. // UpdateLineCategory: Updates the category of a line.
  4208. UpdateLineCategory *UpdateLineCategoryRequest `json:"updateLineCategory,omitempty"`
  4209. // UpdateLineProperties: Updates the properties of a Line.
  4210. UpdateLineProperties *UpdateLinePropertiesRequest `json:"updateLineProperties,omitempty"`
  4211. // UpdatePageElementAltText: Updates the alt text title and/or
  4212. // description of a
  4213. // page element.
  4214. UpdatePageElementAltText *UpdatePageElementAltTextRequest `json:"updatePageElementAltText,omitempty"`
  4215. // UpdatePageElementTransform: Updates the transform of a page element.
  4216. UpdatePageElementTransform *UpdatePageElementTransformRequest `json:"updatePageElementTransform,omitempty"`
  4217. // UpdatePageElementsZOrder: Updates the Z-order of page elements.
  4218. UpdatePageElementsZOrder *UpdatePageElementsZOrderRequest `json:"updatePageElementsZOrder,omitempty"`
  4219. // UpdatePageProperties: Updates the properties of a Page.
  4220. UpdatePageProperties *UpdatePagePropertiesRequest `json:"updatePageProperties,omitempty"`
  4221. // UpdateParagraphStyle: Updates the styling of paragraphs within a
  4222. // Shape or Table.
  4223. UpdateParagraphStyle *UpdateParagraphStyleRequest `json:"updateParagraphStyle,omitempty"`
  4224. // UpdateShapeProperties: Updates the properties of a Shape.
  4225. UpdateShapeProperties *UpdateShapePropertiesRequest `json:"updateShapeProperties,omitempty"`
  4226. // UpdateSlidesPosition: Updates the position of a set of slides in the
  4227. // presentation.
  4228. UpdateSlidesPosition *UpdateSlidesPositionRequest `json:"updateSlidesPosition,omitempty"`
  4229. // UpdateTableBorderProperties: Updates the properties of the table
  4230. // borders in a Table.
  4231. UpdateTableBorderProperties *UpdateTableBorderPropertiesRequest `json:"updateTableBorderProperties,omitempty"`
  4232. // UpdateTableCellProperties: Updates the properties of a TableCell.
  4233. UpdateTableCellProperties *UpdateTableCellPropertiesRequest `json:"updateTableCellProperties,omitempty"`
  4234. // UpdateTableColumnProperties: Updates the properties of a
  4235. // Table
  4236. // column.
  4237. UpdateTableColumnProperties *UpdateTableColumnPropertiesRequest `json:"updateTableColumnProperties,omitempty"`
  4238. // UpdateTableRowProperties: Updates the properties of a Table row.
  4239. UpdateTableRowProperties *UpdateTableRowPropertiesRequest `json:"updateTableRowProperties,omitempty"`
  4240. // UpdateTextStyle: Updates the styling of text within a Shape or Table.
  4241. UpdateTextStyle *UpdateTextStyleRequest `json:"updateTextStyle,omitempty"`
  4242. // UpdateVideoProperties: Updates the properties of a Video.
  4243. UpdateVideoProperties *UpdateVideoPropertiesRequest `json:"updateVideoProperties,omitempty"`
  4244. // ForceSendFields is a list of field names (e.g. "CreateImage") to
  4245. // unconditionally include in API requests. By default, fields with
  4246. // empty values are omitted from API requests. However, any non-pointer,
  4247. // non-interface field appearing in ForceSendFields will be sent to the
  4248. // server regardless of whether the field is empty or not. This may be
  4249. // used to include empty fields in Patch requests.
  4250. ForceSendFields []string `json:"-"`
  4251. // NullFields is a list of field names (e.g. "CreateImage") to include
  4252. // in API requests with the JSON null value. By default, fields with
  4253. // empty values are omitted from API requests. However, any field with
  4254. // an empty value appearing in NullFields will be sent to the server as
  4255. // null. It is an error if a field in this list has a non-empty value.
  4256. // This may be used to include null fields in Patch requests.
  4257. NullFields []string `json:"-"`
  4258. }
  4259. func (s *Request) MarshalJSON() ([]byte, error) {
  4260. type NoMethod Request
  4261. raw := NoMethod(*s)
  4262. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4263. }
  4264. // RerouteLineRequest: Reroutes a line such that it's connected at
  4265. // the
  4266. // two closest connection sites on the connected page elements.
  4267. type RerouteLineRequest struct {
  4268. // ObjectId: The object ID of the line to reroute.
  4269. //
  4270. // Only a line with a category
  4271. // indicating it is a "connector" can be rerouted. The start and
  4272. // end
  4273. // connections of the line must be on different page elements.
  4274. ObjectId string `json:"objectId,omitempty"`
  4275. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  4276. // unconditionally include in API requests. By default, fields with
  4277. // empty values are omitted from API requests. However, any non-pointer,
  4278. // non-interface field appearing in ForceSendFields will be sent to the
  4279. // server regardless of whether the field is empty or not. This may be
  4280. // used to include empty fields in Patch requests.
  4281. ForceSendFields []string `json:"-"`
  4282. // NullFields is a list of field names (e.g. "ObjectId") to include in
  4283. // API requests with the JSON null value. By default, fields with empty
  4284. // values are omitted from API requests. However, any field with an
  4285. // empty value appearing in NullFields will be sent to the server as
  4286. // null. It is an error if a field in this list has a non-empty value.
  4287. // This may be used to include null fields in Patch requests.
  4288. NullFields []string `json:"-"`
  4289. }
  4290. func (s *RerouteLineRequest) MarshalJSON() ([]byte, error) {
  4291. type NoMethod RerouteLineRequest
  4292. raw := NoMethod(*s)
  4293. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4294. }
  4295. // Response: A single response from an update.
  4296. type Response struct {
  4297. // CreateImage: The result of creating an image.
  4298. CreateImage *CreateImageResponse `json:"createImage,omitempty"`
  4299. // CreateLine: The result of creating a line.
  4300. CreateLine *CreateLineResponse `json:"createLine,omitempty"`
  4301. // CreateShape: The result of creating a shape.
  4302. CreateShape *CreateShapeResponse `json:"createShape,omitempty"`
  4303. // CreateSheetsChart: The result of creating a Google Sheets chart.
  4304. CreateSheetsChart *CreateSheetsChartResponse `json:"createSheetsChart,omitempty"`
  4305. // CreateSlide: The result of creating a slide.
  4306. CreateSlide *CreateSlideResponse `json:"createSlide,omitempty"`
  4307. // CreateTable: The result of creating a table.
  4308. CreateTable *CreateTableResponse `json:"createTable,omitempty"`
  4309. // CreateVideo: The result of creating a video.
  4310. CreateVideo *CreateVideoResponse `json:"createVideo,omitempty"`
  4311. // DuplicateObject: The result of duplicating an object.
  4312. DuplicateObject *DuplicateObjectResponse `json:"duplicateObject,omitempty"`
  4313. // GroupObjects: The result of grouping objects.
  4314. GroupObjects *GroupObjectsResponse `json:"groupObjects,omitempty"`
  4315. // ReplaceAllShapesWithImage: The result of replacing all shapes
  4316. // matching some criteria with an
  4317. // image.
  4318. ReplaceAllShapesWithImage *ReplaceAllShapesWithImageResponse `json:"replaceAllShapesWithImage,omitempty"`
  4319. // ReplaceAllShapesWithSheetsChart: The result of replacing all shapes
  4320. // matching some criteria with a Google
  4321. // Sheets chart.
  4322. ReplaceAllShapesWithSheetsChart *ReplaceAllShapesWithSheetsChartResponse `json:"replaceAllShapesWithSheetsChart,omitempty"`
  4323. // ReplaceAllText: The result of replacing text.
  4324. ReplaceAllText *ReplaceAllTextResponse `json:"replaceAllText,omitempty"`
  4325. // ForceSendFields is a list of field names (e.g. "CreateImage") to
  4326. // unconditionally include in API requests. By default, fields with
  4327. // empty values are omitted from API requests. However, any non-pointer,
  4328. // non-interface field appearing in ForceSendFields will be sent to the
  4329. // server regardless of whether the field is empty or not. This may be
  4330. // used to include empty fields in Patch requests.
  4331. ForceSendFields []string `json:"-"`
  4332. // NullFields is a list of field names (e.g. "CreateImage") to include
  4333. // in API requests with the JSON null value. By default, fields with
  4334. // empty values are omitted from API requests. However, any field with
  4335. // an empty value appearing in NullFields will be sent to the server as
  4336. // null. It is an error if a field in this list has a non-empty value.
  4337. // This may be used to include null fields in Patch requests.
  4338. NullFields []string `json:"-"`
  4339. }
  4340. func (s *Response) MarshalJSON() ([]byte, error) {
  4341. type NoMethod Response
  4342. raw := NoMethod(*s)
  4343. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4344. }
  4345. // RgbColor: An RGB color.
  4346. type RgbColor struct {
  4347. // Blue: The blue component of the color, from 0.0 to 1.0.
  4348. Blue float64 `json:"blue,omitempty"`
  4349. // Green: The green component of the color, from 0.0 to 1.0.
  4350. Green float64 `json:"green,omitempty"`
  4351. // Red: The red component of the color, from 0.0 to 1.0.
  4352. Red float64 `json:"red,omitempty"`
  4353. // ForceSendFields is a list of field names (e.g. "Blue") to
  4354. // unconditionally include in API requests. By default, fields with
  4355. // empty values are omitted from API requests. However, any non-pointer,
  4356. // non-interface field appearing in ForceSendFields will be sent to the
  4357. // server regardless of whether the field is empty or not. This may be
  4358. // used to include empty fields in Patch requests.
  4359. ForceSendFields []string `json:"-"`
  4360. // NullFields is a list of field names (e.g. "Blue") to include in API
  4361. // requests with the JSON null value. By default, fields with empty
  4362. // values are omitted from API requests. However, any field with an
  4363. // empty value appearing in NullFields will be sent to the server as
  4364. // null. It is an error if a field in this list has a non-empty value.
  4365. // This may be used to include null fields in Patch requests.
  4366. NullFields []string `json:"-"`
  4367. }
  4368. func (s *RgbColor) MarshalJSON() ([]byte, error) {
  4369. type NoMethod RgbColor
  4370. raw := NoMethod(*s)
  4371. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4372. }
  4373. func (s *RgbColor) UnmarshalJSON(data []byte) error {
  4374. type NoMethod RgbColor
  4375. var s1 struct {
  4376. Blue gensupport.JSONFloat64 `json:"blue"`
  4377. Green gensupport.JSONFloat64 `json:"green"`
  4378. Red gensupport.JSONFloat64 `json:"red"`
  4379. *NoMethod
  4380. }
  4381. s1.NoMethod = (*NoMethod)(s)
  4382. if err := json.Unmarshal(data, &s1); err != nil {
  4383. return err
  4384. }
  4385. s.Blue = float64(s1.Blue)
  4386. s.Green = float64(s1.Green)
  4387. s.Red = float64(s1.Red)
  4388. return nil
  4389. }
  4390. // Shadow: The shadow properties of a page element.
  4391. //
  4392. // If these fields are unset, they may be inherited from a parent
  4393. // placeholder
  4394. // if it exists. If there is no parent, the fields will default to the
  4395. // value
  4396. // used for new page elements created in the Slides editor, which may
  4397. // depend on
  4398. // the page element kind.
  4399. type Shadow struct {
  4400. // Alignment: The alignment point of the shadow, that sets the origin
  4401. // for translate,
  4402. // scale and skew of the shadow. This property is read-only.
  4403. //
  4404. // Possible values:
  4405. // "RECTANGLE_POSITION_UNSPECIFIED" - Unspecified.
  4406. // "TOP_LEFT" - Top left.
  4407. // "TOP_CENTER" - Top center.
  4408. // "TOP_RIGHT" - Top right.
  4409. // "LEFT_CENTER" - Left center.
  4410. // "CENTER" - Center.
  4411. // "RIGHT_CENTER" - Right center.
  4412. // "BOTTOM_LEFT" - Bottom left.
  4413. // "BOTTOM_CENTER" - Bottom center.
  4414. // "BOTTOM_RIGHT" - Bottom right.
  4415. Alignment string `json:"alignment,omitempty"`
  4416. // Alpha: The alpha of the shadow's color, from 0.0 to 1.0.
  4417. Alpha float64 `json:"alpha,omitempty"`
  4418. // BlurRadius: The radius of the shadow blur. The larger the radius, the
  4419. // more diffuse the
  4420. // shadow becomes.
  4421. BlurRadius *Dimension `json:"blurRadius,omitempty"`
  4422. // Color: The shadow color value.
  4423. Color *OpaqueColor `json:"color,omitempty"`
  4424. // PropertyState: The shadow property state.
  4425. //
  4426. // Updating the shadow on a page element will implicitly update this
  4427. // field to
  4428. // `RENDERED`, unless another value is specified in the same request. To
  4429. // have
  4430. // no shadow on a page element, set this field to `NOT_RENDERED`. In
  4431. // this
  4432. // case, any other shadow fields set in the same request will be
  4433. // ignored.
  4434. //
  4435. // Possible values:
  4436. // "RENDERED" - If a property's state is RENDERED, then the element
  4437. // has the corresponding
  4438. // property when rendered on a page. If the element is a placeholder
  4439. // shape as
  4440. // determined by the placeholder
  4441. // field, and it inherits from a placeholder shape, the corresponding
  4442. // field
  4443. // may be unset, meaning that the property value is inherited from a
  4444. // parent
  4445. // placeholder. If the element does not inherit, then the field will
  4446. // contain
  4447. // the rendered value. This is the default value.
  4448. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  4449. // element does not have the
  4450. // corresponding property when rendered on a page. However, the field
  4451. // may
  4452. // still be set so it can be inherited by child shapes. To remove a
  4453. // property
  4454. // from a rendered element, set its property_state to NOT_RENDERED.
  4455. // "INHERIT" - If a property's state is INHERIT, then the property
  4456. // state uses the value of
  4457. // corresponding `property_state` field on the parent shape. Elements
  4458. // that do
  4459. // not inherit will never have an INHERIT property state.
  4460. PropertyState string `json:"propertyState,omitempty"`
  4461. // RotateWithShape: Whether the shadow should rotate with the shape.
  4462. // This property is
  4463. // read-only.
  4464. RotateWithShape bool `json:"rotateWithShape,omitempty"`
  4465. // Transform: Transform that encodes the translate, scale, and skew of
  4466. // the shadow,
  4467. // relative to the alignment position.
  4468. Transform *AffineTransform `json:"transform,omitempty"`
  4469. // Type: The type of the shadow. This property is read-only.
  4470. //
  4471. // Possible values:
  4472. // "SHADOW_TYPE_UNSPECIFIED" - Unspecified shadow type.
  4473. // "OUTER" - Outer shadow.
  4474. Type string `json:"type,omitempty"`
  4475. // ForceSendFields is a list of field names (e.g. "Alignment") to
  4476. // unconditionally include in API requests. By default, fields with
  4477. // empty values are omitted from API requests. However, any non-pointer,
  4478. // non-interface field appearing in ForceSendFields will be sent to the
  4479. // server regardless of whether the field is empty or not. This may be
  4480. // used to include empty fields in Patch requests.
  4481. ForceSendFields []string `json:"-"`
  4482. // NullFields is a list of field names (e.g. "Alignment") to include in
  4483. // API requests with the JSON null value. By default, fields with empty
  4484. // values are omitted from API requests. However, any field with an
  4485. // empty value appearing in NullFields will be sent to the server as
  4486. // null. It is an error if a field in this list has a non-empty value.
  4487. // This may be used to include null fields in Patch requests.
  4488. NullFields []string `json:"-"`
  4489. }
  4490. func (s *Shadow) MarshalJSON() ([]byte, error) {
  4491. type NoMethod Shadow
  4492. raw := NoMethod(*s)
  4493. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4494. }
  4495. func (s *Shadow) UnmarshalJSON(data []byte) error {
  4496. type NoMethod Shadow
  4497. var s1 struct {
  4498. Alpha gensupport.JSONFloat64 `json:"alpha"`
  4499. *NoMethod
  4500. }
  4501. s1.NoMethod = (*NoMethod)(s)
  4502. if err := json.Unmarshal(data, &s1); err != nil {
  4503. return err
  4504. }
  4505. s.Alpha = float64(s1.Alpha)
  4506. return nil
  4507. }
  4508. // Shape: A PageElement kind representing a
  4509. // generic shape that does not have a more specific classification.
  4510. type Shape struct {
  4511. // Placeholder: Placeholders are shapes that are inherit from
  4512. // corresponding placeholders on
  4513. // layouts and masters.
  4514. //
  4515. // If set, the shape is a placeholder shape and any inherited
  4516. // properties
  4517. // can be resolved by looking at the parent placeholder identified by
  4518. // the
  4519. // Placeholder.parent_object_id field.
  4520. Placeholder *Placeholder `json:"placeholder,omitempty"`
  4521. // ShapeProperties: The properties of the shape.
  4522. ShapeProperties *ShapeProperties `json:"shapeProperties,omitempty"`
  4523. // ShapeType: The type of the shape.
  4524. //
  4525. // Possible values:
  4526. // "TYPE_UNSPECIFIED" - The shape type that is not predefined.
  4527. // "TEXT_BOX" - Text box shape.
  4528. // "RECTANGLE" - Rectangle shape. Corresponds to ECMA-376 ST_ShapeType
  4529. // 'rect'.
  4530. // "ROUND_RECTANGLE" - Round corner rectangle shape. Corresponds to
  4531. // ECMA-376 ST_ShapeType
  4532. // 'roundRect'
  4533. // "ELLIPSE" - Ellipse shape. Corresponds to ECMA-376 ST_ShapeType
  4534. // 'ellipse'
  4535. // "ARC" - Curved arc shape. Corresponds to ECMA-376 ST_ShapeType
  4536. // 'arc'
  4537. // "BENT_ARROW" - Bent arrow shape. Corresponds to ECMA-376
  4538. // ST_ShapeType 'bentArrow'
  4539. // "BENT_UP_ARROW" - Bent up arrow shape. Corresponds to ECMA-376
  4540. // ST_ShapeType 'bentUpArrow'
  4541. // "BEVEL" - Bevel shape. Corresponds to ECMA-376 ST_ShapeType 'bevel'
  4542. // "BLOCK_ARC" - Block arc shape. Corresponds to ECMA-376 ST_ShapeType
  4543. // 'blockArc'
  4544. // "BRACE_PAIR" - Brace pair shape. Corresponds to ECMA-376
  4545. // ST_ShapeType 'bracePair'
  4546. // "BRACKET_PAIR" - Bracket pair shape. Corresponds to ECMA-376
  4547. // ST_ShapeType 'bracketPair'
  4548. // "CAN" - Can shape. Corresponds to ECMA-376 ST_ShapeType 'can'
  4549. // "CHEVRON" - Chevron shape. Corresponds to ECMA-376 ST_ShapeType
  4550. // 'chevron'
  4551. // "CHORD" - Chord shape. Corresponds to ECMA-376 ST_ShapeType 'chord'
  4552. // "CLOUD" - Cloud shape. Corresponds to ECMA-376 ST_ShapeType 'cloud'
  4553. // "CORNER" - Corner shape. Corresponds to ECMA-376 ST_ShapeType
  4554. // 'corner'
  4555. // "CUBE" - Cube shape. Corresponds to ECMA-376 ST_ShapeType 'cube'
  4556. // "CURVED_DOWN_ARROW" - Curved down arrow shape. Corresponds to
  4557. // ECMA-376 ST_ShapeType
  4558. // 'curvedDownArrow'
  4559. // "CURVED_LEFT_ARROW" - Curved left arrow shape. Corresponds to
  4560. // ECMA-376 ST_ShapeType
  4561. // 'curvedLeftArrow'
  4562. // "CURVED_RIGHT_ARROW" - Curved right arrow shape. Corresponds to
  4563. // ECMA-376 ST_ShapeType
  4564. // 'curvedRightArrow'
  4565. // "CURVED_UP_ARROW" - Curved up arrow shape. Corresponds to ECMA-376
  4566. // ST_ShapeType
  4567. // 'curvedUpArrow'
  4568. // "DECAGON" - Decagon shape. Corresponds to ECMA-376 ST_ShapeType
  4569. // 'decagon'
  4570. // "DIAGONAL_STRIPE" - Diagonal stripe shape. Corresponds to ECMA-376
  4571. // ST_ShapeType 'diagStripe'
  4572. // "DIAMOND" - Diamond shape. Corresponds to ECMA-376 ST_ShapeType
  4573. // 'diamond'
  4574. // "DODECAGON" - Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType
  4575. // 'dodecagon'
  4576. // "DONUT" - Donut shape. Corresponds to ECMA-376 ST_ShapeType 'donut'
  4577. // "DOUBLE_WAVE" - Double wave shape. Corresponds to ECMA-376
  4578. // ST_ShapeType 'doubleWave'
  4579. // "DOWN_ARROW" - Down arrow shape. Corresponds to ECMA-376
  4580. // ST_ShapeType 'downArrow'
  4581. // "DOWN_ARROW_CALLOUT" - Callout down arrow shape. Corresponds to
  4582. // ECMA-376 ST_ShapeType
  4583. // 'downArrowCallout'
  4584. // "FOLDED_CORNER" - Folded corner shape. Corresponds to ECMA-376
  4585. // ST_ShapeType 'foldedCorner'
  4586. // "FRAME" - Frame shape. Corresponds to ECMA-376 ST_ShapeType 'frame'
  4587. // "HALF_FRAME" - Half frame shape. Corresponds to ECMA-376
  4588. // ST_ShapeType 'halfFrame'
  4589. // "HEART" - Heart shape. Corresponds to ECMA-376 ST_ShapeType 'heart'
  4590. // "HEPTAGON" - Heptagon shape. Corresponds to ECMA-376 ST_ShapeType
  4591. // 'heptagon'
  4592. // "HEXAGON" - Hexagon shape. Corresponds to ECMA-376 ST_ShapeType
  4593. // 'hexagon'
  4594. // "HOME_PLATE" - Home plate shape. Corresponds to ECMA-376
  4595. // ST_ShapeType 'homePlate'
  4596. // "HORIZONTAL_SCROLL" - Horizontal scroll shape. Corresponds to
  4597. // ECMA-376 ST_ShapeType
  4598. // 'horizontalScroll'
  4599. // "IRREGULAR_SEAL_1" - Irregular seal 1 shape. Corresponds to
  4600. // ECMA-376 ST_ShapeType
  4601. // 'irregularSeal1'
  4602. // "IRREGULAR_SEAL_2" - Irregular seal 2 shape. Corresponds to
  4603. // ECMA-376 ST_ShapeType
  4604. // 'irregularSeal2'
  4605. // "LEFT_ARROW" - Left arrow shape. Corresponds to ECMA-376
  4606. // ST_ShapeType 'leftArrow'
  4607. // "LEFT_ARROW_CALLOUT" - Callout left arrow shape. Corresponds to
  4608. // ECMA-376 ST_ShapeType
  4609. // 'leftArrowCallout'
  4610. // "LEFT_BRACE" - Left brace shape. Corresponds to ECMA-376
  4611. // ST_ShapeType 'leftBrace'
  4612. // "LEFT_BRACKET" - Left bracket shape. Corresponds to ECMA-376
  4613. // ST_ShapeType 'leftBracket'
  4614. // "LEFT_RIGHT_ARROW" - Left right arrow shape. Corresponds to
  4615. // ECMA-376 ST_ShapeType
  4616. // 'leftRightArrow'
  4617. // "LEFT_RIGHT_ARROW_CALLOUT" - Callout left right arrow shape.
  4618. // Corresponds to ECMA-376 ST_ShapeType
  4619. // 'leftRightArrowCallout'
  4620. // "LEFT_RIGHT_UP_ARROW" - Left right up arrow shape. Corresponds to
  4621. // ECMA-376 ST_ShapeType
  4622. // 'leftRightUpArrow'
  4623. // "LEFT_UP_ARROW" - Left up arrow shape. Corresponds to ECMA-376
  4624. // ST_ShapeType 'leftUpArrow'
  4625. // "LIGHTNING_BOLT" - Lightning bolt shape. Corresponds to ECMA-376
  4626. // ST_ShapeType
  4627. // 'lightningBolt'
  4628. // "MATH_DIVIDE" - Divide math shape. Corresponds to ECMA-376
  4629. // ST_ShapeType 'mathDivide'
  4630. // "MATH_EQUAL" - Equal math shape. Corresponds to ECMA-376
  4631. // ST_ShapeType 'mathEqual'
  4632. // "MATH_MINUS" - Minus math shape. Corresponds to ECMA-376
  4633. // ST_ShapeType 'mathMinus'
  4634. // "MATH_MULTIPLY" - Multiply math shape. Corresponds to ECMA-376
  4635. // ST_ShapeType 'mathMultiply'
  4636. // "MATH_NOT_EQUAL" - Not equal math shape. Corresponds to ECMA-376
  4637. // ST_ShapeType 'mathNotEqual'
  4638. // "MATH_PLUS" - Plus math shape. Corresponds to ECMA-376 ST_ShapeType
  4639. // 'mathPlus'
  4640. // "MOON" - Moon shape. Corresponds to ECMA-376 ST_ShapeType 'moon'
  4641. // "NO_SMOKING" - No smoking shape. Corresponds to ECMA-376
  4642. // ST_ShapeType 'noSmoking'
  4643. // "NOTCHED_RIGHT_ARROW" - Notched right arrow shape. Corresponds to
  4644. // ECMA-376 ST_ShapeType
  4645. // 'notchedRightArrow'
  4646. // "OCTAGON" - Octagon shape. Corresponds to ECMA-376 ST_ShapeType
  4647. // 'octagon'
  4648. // "PARALLELOGRAM" - Parallelogram shape. Corresponds to ECMA-376
  4649. // ST_ShapeType 'parallelogram'
  4650. // "PENTAGON" - Pentagon shape. Corresponds to ECMA-376 ST_ShapeType
  4651. // 'pentagon'
  4652. // "PIE" - Pie shape. Corresponds to ECMA-376 ST_ShapeType 'pie'
  4653. // "PLAQUE" - Plaque shape. Corresponds to ECMA-376 ST_ShapeType
  4654. // 'plaque'
  4655. // "PLUS" - Plus shape. Corresponds to ECMA-376 ST_ShapeType 'plus'
  4656. // "QUAD_ARROW" - Quad-arrow shape. Corresponds to ECMA-376
  4657. // ST_ShapeType 'quadArrow'
  4658. // "QUAD_ARROW_CALLOUT" - Callout quad-arrow shape. Corresponds to
  4659. // ECMA-376 ST_ShapeType
  4660. // 'quadArrowCallout'
  4661. // "RIBBON" - Ribbon shape. Corresponds to ECMA-376 ST_ShapeType
  4662. // 'ribbon'
  4663. // "RIBBON_2" - Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType
  4664. // 'ribbon2'
  4665. // "RIGHT_ARROW" - Right arrow shape. Corresponds to ECMA-376
  4666. // ST_ShapeType 'rightArrow'
  4667. // "RIGHT_ARROW_CALLOUT" - Callout right arrow shape. Corresponds to
  4668. // ECMA-376 ST_ShapeType
  4669. // 'rightArrowCallout'
  4670. // "RIGHT_BRACE" - Right brace shape. Corresponds to ECMA-376
  4671. // ST_ShapeType 'rightBrace'
  4672. // "RIGHT_BRACKET" - Right bracket shape. Corresponds to ECMA-376
  4673. // ST_ShapeType 'rightBracket'
  4674. // "ROUND_1_RECTANGLE" - One round corner rectangle shape. Corresponds
  4675. // to ECMA-376 ST_ShapeType
  4676. // 'round1Rect'
  4677. // "ROUND_2_DIAGONAL_RECTANGLE" - Two diagonal round corner rectangle
  4678. // shape. Corresponds to ECMA-376
  4679. // ST_ShapeType 'round2DiagRect'
  4680. // "ROUND_2_SAME_RECTANGLE" - Two same-side round corner rectangle
  4681. // shape. Corresponds to ECMA-376
  4682. // ST_ShapeType 'round2SameRect'
  4683. // "RIGHT_TRIANGLE" - Right triangle shape. Corresponds to ECMA-376
  4684. // ST_ShapeType 'rtTriangle'
  4685. // "SMILEY_FACE" - Smiley face shape. Corresponds to ECMA-376
  4686. // ST_ShapeType 'smileyFace'
  4687. // "SNIP_1_RECTANGLE" - One snip corner rectangle shape. Corresponds
  4688. // to ECMA-376 ST_ShapeType
  4689. // 'snip1Rect'
  4690. // "SNIP_2_DIAGONAL_RECTANGLE" - Two diagonal snip corner rectangle
  4691. // shape. Corresponds to ECMA-376
  4692. // ST_ShapeType 'snip2DiagRect'
  4693. // "SNIP_2_SAME_RECTANGLE" - Two same-side snip corner rectangle
  4694. // shape. Corresponds to ECMA-376
  4695. // ST_ShapeType 'snip2SameRect'
  4696. // "SNIP_ROUND_RECTANGLE" - One snip one round corner rectangle shape.
  4697. // Corresponds to ECMA-376
  4698. // ST_ShapeType 'snipRoundRect'
  4699. // "STAR_10" - Ten pointed star shape. Corresponds to ECMA-376
  4700. // ST_ShapeType 'star10'
  4701. // "STAR_12" - Twelve pointed star shape. Corresponds to ECMA-376
  4702. // ST_ShapeType 'star12'
  4703. // "STAR_16" - Sixteen pointed star shape. Corresponds to ECMA-376
  4704. // ST_ShapeType 'star16'
  4705. // "STAR_24" - Twenty four pointed star shape. Corresponds to ECMA-376
  4706. // ST_ShapeType
  4707. // 'star24'
  4708. // "STAR_32" - Thirty two pointed star shape. Corresponds to ECMA-376
  4709. // ST_ShapeType
  4710. // 'star32'
  4711. // "STAR_4" - Four pointed star shape. Corresponds to ECMA-376
  4712. // ST_ShapeType 'star4'
  4713. // "STAR_5" - Five pointed star shape. Corresponds to ECMA-376
  4714. // ST_ShapeType 'star5'
  4715. // "STAR_6" - Six pointed star shape. Corresponds to ECMA-376
  4716. // ST_ShapeType 'star6'
  4717. // "STAR_7" - Seven pointed star shape. Corresponds to ECMA-376
  4718. // ST_ShapeType 'star7'
  4719. // "STAR_8" - Eight pointed star shape. Corresponds to ECMA-376
  4720. // ST_ShapeType 'star8'
  4721. // "STRIPED_RIGHT_ARROW" - Striped right arrow shape. Corresponds to
  4722. // ECMA-376 ST_ShapeType
  4723. // 'stripedRightArrow'
  4724. // "SUN" - Sun shape. Corresponds to ECMA-376 ST_ShapeType 'sun'
  4725. // "TRAPEZOID" - Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType
  4726. // 'trapezoid'
  4727. // "TRIANGLE" - Triangle shape. Corresponds to ECMA-376 ST_ShapeType
  4728. // 'triangle'
  4729. // "UP_ARROW" - Up arrow shape. Corresponds to ECMA-376 ST_ShapeType
  4730. // 'upArrow'
  4731. // "UP_ARROW_CALLOUT" - Callout up arrow shape. Corresponds to
  4732. // ECMA-376 ST_ShapeType
  4733. // 'upArrowCallout'
  4734. // "UP_DOWN_ARROW" - Up down arrow shape. Corresponds to ECMA-376
  4735. // ST_ShapeType 'upDownArrow'
  4736. // "UTURN_ARROW" - U-turn arrow shape. Corresponds to ECMA-376
  4737. // ST_ShapeType 'uturnArrow'
  4738. // "VERTICAL_SCROLL" - Vertical scroll shape. Corresponds to ECMA-376
  4739. // ST_ShapeType
  4740. // 'verticalScroll'
  4741. // "WAVE" - Wave shape. Corresponds to ECMA-376 ST_ShapeType 'wave'
  4742. // "WEDGE_ELLIPSE_CALLOUT" - Callout wedge ellipse shape. Corresponds
  4743. // to ECMA-376 ST_ShapeType
  4744. // 'wedgeEllipseCallout'
  4745. // "WEDGE_RECTANGLE_CALLOUT" - Callout wedge rectangle shape.
  4746. // Corresponds to ECMA-376 ST_ShapeType
  4747. // 'wedgeRectCallout'
  4748. // "WEDGE_ROUND_RECTANGLE_CALLOUT" - Callout wedge round rectangle
  4749. // shape. Corresponds to ECMA-376 ST_ShapeType
  4750. // 'wedgeRoundRectCallout'
  4751. // "FLOW_CHART_ALTERNATE_PROCESS" - Alternate process flow shape.
  4752. // Corresponds to ECMA-376 ST_ShapeType
  4753. // 'flowChartAlternateProcess'
  4754. // "FLOW_CHART_COLLATE" - Collate flow shape. Corresponds to ECMA-376
  4755. // ST_ShapeType
  4756. // 'flowChartCollate'
  4757. // "FLOW_CHART_CONNECTOR" - Connector flow shape. Corresponds to
  4758. // ECMA-376 ST_ShapeType
  4759. // 'flowChartConnector'
  4760. // "FLOW_CHART_DECISION" - Decision flow shape. Corresponds to
  4761. // ECMA-376 ST_ShapeType
  4762. // 'flowChartDecision'
  4763. // "FLOW_CHART_DELAY" - Delay flow shape. Corresponds to ECMA-376
  4764. // ST_ShapeType 'flowChartDelay'
  4765. // "FLOW_CHART_DISPLAY" - Display flow shape. Corresponds to ECMA-376
  4766. // ST_ShapeType
  4767. // 'flowChartDisplay'
  4768. // "FLOW_CHART_DOCUMENT" - Document flow shape. Corresponds to
  4769. // ECMA-376 ST_ShapeType
  4770. // 'flowChartDocument'
  4771. // "FLOW_CHART_EXTRACT" - Extract flow shape. Corresponds to ECMA-376
  4772. // ST_ShapeType
  4773. // 'flowChartExtract'
  4774. // "FLOW_CHART_INPUT_OUTPUT" - Input output flow shape. Corresponds to
  4775. // ECMA-376 ST_ShapeType
  4776. // 'flowChartInputOutput'
  4777. // "FLOW_CHART_INTERNAL_STORAGE" - Internal storage flow shape.
  4778. // Corresponds to ECMA-376 ST_ShapeType
  4779. // 'flowChartInternalStorage'
  4780. // "FLOW_CHART_MAGNETIC_DISK" - Magnetic disk flow shape. Corresponds
  4781. // to ECMA-376 ST_ShapeType
  4782. // 'flowChartMagneticDisk'
  4783. // "FLOW_CHART_MAGNETIC_DRUM" - Magnetic drum flow shape. Corresponds
  4784. // to ECMA-376 ST_ShapeType
  4785. // 'flowChartMagneticDrum'
  4786. // "FLOW_CHART_MAGNETIC_TAPE" - Magnetic tape flow shape. Corresponds
  4787. // to ECMA-376 ST_ShapeType
  4788. // 'flowChartMagneticTape'
  4789. // "FLOW_CHART_MANUAL_INPUT" - Manual input flow shape. Corresponds to
  4790. // ECMA-376 ST_ShapeType
  4791. // 'flowChartManualInput'
  4792. // "FLOW_CHART_MANUAL_OPERATION" - Manual operation flow shape.
  4793. // Corresponds to ECMA-376 ST_ShapeType
  4794. // 'flowChartManualOperation'
  4795. // "FLOW_CHART_MERGE" - Merge flow shape. Corresponds to ECMA-376
  4796. // ST_ShapeType 'flowChartMerge'
  4797. // "FLOW_CHART_MULTIDOCUMENT" - Multi-document flow shape. Corresponds
  4798. // to ECMA-376 ST_ShapeType
  4799. // 'flowChartMultidocument'
  4800. // "FLOW_CHART_OFFLINE_STORAGE" - Offline storage flow shape.
  4801. // Corresponds to ECMA-376 ST_ShapeType
  4802. // 'flowChartOfflineStorage'
  4803. // "FLOW_CHART_OFFPAGE_CONNECTOR" - Off-page connector flow shape.
  4804. // Corresponds to ECMA-376 ST_ShapeType
  4805. // 'flowChartOffpageConnector'
  4806. // "FLOW_CHART_ONLINE_STORAGE" - Online storage flow shape.
  4807. // Corresponds to ECMA-376 ST_ShapeType
  4808. // 'flowChartOnlineStorage'
  4809. // "FLOW_CHART_OR" - Or flow shape. Corresponds to ECMA-376
  4810. // ST_ShapeType 'flowChartOr'
  4811. // "FLOW_CHART_PREDEFINED_PROCESS" - Predefined process flow shape.
  4812. // Corresponds to ECMA-376 ST_ShapeType
  4813. // 'flowChartPredefinedProcess'
  4814. // "FLOW_CHART_PREPARATION" - Preparation flow shape. Corresponds to
  4815. // ECMA-376 ST_ShapeType
  4816. // 'flowChartPreparation'
  4817. // "FLOW_CHART_PROCESS" - Process flow shape. Corresponds to ECMA-376
  4818. // ST_ShapeType
  4819. // 'flowChartProcess'
  4820. // "FLOW_CHART_PUNCHED_CARD" - Punched card flow shape. Corresponds to
  4821. // ECMA-376 ST_ShapeType
  4822. // 'flowChartPunchedCard'
  4823. // "FLOW_CHART_PUNCHED_TAPE" - Punched tape flow shape. Corresponds to
  4824. // ECMA-376 ST_ShapeType
  4825. // 'flowChartPunchedTape'
  4826. // "FLOW_CHART_SORT" - Sort flow shape. Corresponds to ECMA-376
  4827. // ST_ShapeType 'flowChartSort'
  4828. // "FLOW_CHART_SUMMING_JUNCTION" - Summing junction flow shape.
  4829. // Corresponds to ECMA-376 ST_ShapeType
  4830. // 'flowChartSummingJunction'
  4831. // "FLOW_CHART_TERMINATOR" - Terminator flow shape. Corresponds to
  4832. // ECMA-376 ST_ShapeType
  4833. // 'flowChartTerminator'
  4834. // "ARROW_EAST" - East arrow shape.
  4835. // "ARROW_NORTH_EAST" - Northeast arrow shape.
  4836. // "ARROW_NORTH" - North arrow shape.
  4837. // "SPEECH" - Speech shape.
  4838. // "STARBURST" - Star burst shape.
  4839. // "TEARDROP" - Teardrop shape. Corresponds to ECMA-376 ST_ShapeType
  4840. // 'teardrop'
  4841. // "ELLIPSE_RIBBON" - Ellipse ribbon shape. Corresponds to ECMA-376
  4842. // ST_ShapeType
  4843. // 'ellipseRibbon'
  4844. // "ELLIPSE_RIBBON_2" - Ellipse ribbon 2 shape. Corresponds to
  4845. // ECMA-376 ST_ShapeType
  4846. // 'ellipseRibbon2'
  4847. // "CLOUD_CALLOUT" - Callout cloud shape. Corresponds to ECMA-376
  4848. // ST_ShapeType 'cloudCallout'
  4849. // "CUSTOM" - Custom shape.
  4850. ShapeType string `json:"shapeType,omitempty"`
  4851. // Text: The text content of the shape.
  4852. Text *TextContent `json:"text,omitempty"`
  4853. // ForceSendFields is a list of field names (e.g. "Placeholder") to
  4854. // unconditionally include in API requests. By default, fields with
  4855. // empty values are omitted from API requests. However, any non-pointer,
  4856. // non-interface field appearing in ForceSendFields will be sent to the
  4857. // server regardless of whether the field is empty or not. This may be
  4858. // used to include empty fields in Patch requests.
  4859. ForceSendFields []string `json:"-"`
  4860. // NullFields is a list of field names (e.g. "Placeholder") to include
  4861. // in API requests with the JSON null value. By default, fields with
  4862. // empty values are omitted from API requests. However, any field with
  4863. // an empty value appearing in NullFields will be sent to the server as
  4864. // null. It is an error if a field in this list has a non-empty value.
  4865. // This may be used to include null fields in Patch requests.
  4866. NullFields []string `json:"-"`
  4867. }
  4868. func (s *Shape) MarshalJSON() ([]byte, error) {
  4869. type NoMethod Shape
  4870. raw := NoMethod(*s)
  4871. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4872. }
  4873. // ShapeBackgroundFill: The shape background fill.
  4874. type ShapeBackgroundFill struct {
  4875. // PropertyState: The background fill property state.
  4876. //
  4877. // Updating the fill on a shape will implicitly update this field
  4878. // to
  4879. // `RENDERED`, unless another value is specified in the same request.
  4880. // To
  4881. // have no fill on a shape, set this field to `NOT_RENDERED`. In this
  4882. // case,
  4883. // any other fill fields set in the same request will be ignored.
  4884. //
  4885. // Possible values:
  4886. // "RENDERED" - If a property's state is RENDERED, then the element
  4887. // has the corresponding
  4888. // property when rendered on a page. If the element is a placeholder
  4889. // shape as
  4890. // determined by the placeholder
  4891. // field, and it inherits from a placeholder shape, the corresponding
  4892. // field
  4893. // may be unset, meaning that the property value is inherited from a
  4894. // parent
  4895. // placeholder. If the element does not inherit, then the field will
  4896. // contain
  4897. // the rendered value. This is the default value.
  4898. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  4899. // element does not have the
  4900. // corresponding property when rendered on a page. However, the field
  4901. // may
  4902. // still be set so it can be inherited by child shapes. To remove a
  4903. // property
  4904. // from a rendered element, set its property_state to NOT_RENDERED.
  4905. // "INHERIT" - If a property's state is INHERIT, then the property
  4906. // state uses the value of
  4907. // corresponding `property_state` field on the parent shape. Elements
  4908. // that do
  4909. // not inherit will never have an INHERIT property state.
  4910. PropertyState string `json:"propertyState,omitempty"`
  4911. // SolidFill: Solid color fill.
  4912. SolidFill *SolidFill `json:"solidFill,omitempty"`
  4913. // ForceSendFields is a list of field names (e.g. "PropertyState") to
  4914. // unconditionally include in API requests. By default, fields with
  4915. // empty values are omitted from API requests. However, any non-pointer,
  4916. // non-interface field appearing in ForceSendFields will be sent to the
  4917. // server regardless of whether the field is empty or not. This may be
  4918. // used to include empty fields in Patch requests.
  4919. ForceSendFields []string `json:"-"`
  4920. // NullFields is a list of field names (e.g. "PropertyState") to include
  4921. // in API requests with the JSON null value. By default, fields with
  4922. // empty values are omitted from API requests. However, any field with
  4923. // an empty value appearing in NullFields will be sent to the server as
  4924. // null. It is an error if a field in this list has a non-empty value.
  4925. // This may be used to include null fields in Patch requests.
  4926. NullFields []string `json:"-"`
  4927. }
  4928. func (s *ShapeBackgroundFill) MarshalJSON() ([]byte, error) {
  4929. type NoMethod ShapeBackgroundFill
  4930. raw := NoMethod(*s)
  4931. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4932. }
  4933. // ShapeProperties: The properties of a Shape.
  4934. //
  4935. // If the shape is a placeholder shape as determined by the
  4936. // placeholder field, then these
  4937. // properties may be inherited from a parent placeholder
  4938. // shape.
  4939. // Determining the rendered value of the property depends on the
  4940. // corresponding
  4941. // property_state field value.
  4942. type ShapeProperties struct {
  4943. // ContentAlignment: The alignment of the content in the shape. If
  4944. // unspecified,
  4945. // the alignment is inherited from a parent placeholder if it exists. If
  4946. // the
  4947. // shape has no parent, the default alignment matches the alignment for
  4948. // new
  4949. // shapes created in the Slides editor.
  4950. //
  4951. // Possible values:
  4952. // "CONTENT_ALIGNMENT_UNSPECIFIED" - An unspecified content alignment.
  4953. // The content alignment is inherited from
  4954. // the parent if it exists.
  4955. // "CONTENT_ALIGNMENT_UNSUPPORTED" - An unsupported content alignment.
  4956. // "TOP" - An alignment that aligns the content to the top of the
  4957. // content holder.
  4958. // Corresponds to ECMA-376 ST_TextAnchoringType 't'.
  4959. // "MIDDLE" - An alignment that aligns the content to the middle of
  4960. // the content
  4961. // holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'.
  4962. // "BOTTOM" - An alignment that aligns the content to the bottom of
  4963. // the content
  4964. // holder. Corresponds to ECMA-376 ST_TextAnchoringType 'b'.
  4965. ContentAlignment string `json:"contentAlignment,omitempty"`
  4966. // Link: The hyperlink destination of the shape. If unset, there is no
  4967. // link. Links
  4968. // are not inherited from parent placeholders.
  4969. Link *Link `json:"link,omitempty"`
  4970. // Outline: The outline of the shape. If unset, the outline is inherited
  4971. // from a
  4972. // parent placeholder if it exists. If the shape has no parent, then
  4973. // the
  4974. // default outline depends on the shape type, matching the defaults
  4975. // for
  4976. // new shapes created in the Slides editor.
  4977. Outline *Outline `json:"outline,omitempty"`
  4978. // Shadow: The shadow properties of the shape. If unset, the shadow is
  4979. // inherited from
  4980. // a parent placeholder if it exists. If the shape has no parent, then
  4981. // the
  4982. // default shadow matches the defaults for new shapes created in the
  4983. // Slides
  4984. // editor. This property is read-only.
  4985. Shadow *Shadow `json:"shadow,omitempty"`
  4986. // ShapeBackgroundFill: The background fill of the shape. If unset, the
  4987. // background fill is
  4988. // inherited from a parent placeholder if it exists. If the shape has
  4989. // no
  4990. // parent, then the default background fill depends on the shape
  4991. // type,
  4992. // matching the defaults for new shapes created in the Slides editor.
  4993. ShapeBackgroundFill *ShapeBackgroundFill `json:"shapeBackgroundFill,omitempty"`
  4994. // ForceSendFields is a list of field names (e.g. "ContentAlignment") to
  4995. // unconditionally include in API requests. By default, fields with
  4996. // empty values are omitted from API requests. However, any non-pointer,
  4997. // non-interface field appearing in ForceSendFields will be sent to the
  4998. // server regardless of whether the field is empty or not. This may be
  4999. // used to include empty fields in Patch requests.
  5000. ForceSendFields []string `json:"-"`
  5001. // NullFields is a list of field names (e.g. "ContentAlignment") to
  5002. // include in API requests with the JSON null value. By default, fields
  5003. // with empty values are omitted from API requests. However, any field
  5004. // with an empty value appearing in NullFields will be sent to the
  5005. // server as null. It is an error if a field in this list has a
  5006. // non-empty value. This may be used to include null fields in Patch
  5007. // requests.
  5008. NullFields []string `json:"-"`
  5009. }
  5010. func (s *ShapeProperties) MarshalJSON() ([]byte, error) {
  5011. type NoMethod ShapeProperties
  5012. raw := NoMethod(*s)
  5013. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5014. }
  5015. // SheetsChart: A PageElement kind representing
  5016. // a linked chart embedded from Google Sheets.
  5017. type SheetsChart struct {
  5018. // ChartId: The ID of the specific chart in the Google Sheets
  5019. // spreadsheet that is
  5020. // embedded.
  5021. ChartId int64 `json:"chartId,omitempty"`
  5022. // ContentUrl: The URL of an image of the embedded chart, with a default
  5023. // lifetime of 30
  5024. // minutes. This URL is tagged with the account of the requester. Anyone
  5025. // with
  5026. // the URL effectively accesses the image as the original requester.
  5027. // Access to
  5028. // the image may be lost if the presentation's sharing settings change.
  5029. ContentUrl string `json:"contentUrl,omitempty"`
  5030. // SheetsChartProperties: The properties of the Sheets chart.
  5031. SheetsChartProperties *SheetsChartProperties `json:"sheetsChartProperties,omitempty"`
  5032. // SpreadsheetId: The ID of the Google Sheets spreadsheet that contains
  5033. // the source chart.
  5034. SpreadsheetId string `json:"spreadsheetId,omitempty"`
  5035. // ForceSendFields is a list of field names (e.g. "ChartId") to
  5036. // unconditionally include in API requests. By default, fields with
  5037. // empty values are omitted from API requests. However, any non-pointer,
  5038. // non-interface field appearing in ForceSendFields will be sent to the
  5039. // server regardless of whether the field is empty or not. This may be
  5040. // used to include empty fields in Patch requests.
  5041. ForceSendFields []string `json:"-"`
  5042. // NullFields is a list of field names (e.g. "ChartId") to include in
  5043. // API requests with the JSON null value. By default, fields with empty
  5044. // values are omitted from API requests. However, any field with an
  5045. // empty value appearing in NullFields will be sent to the server as
  5046. // null. It is an error if a field in this list has a non-empty value.
  5047. // This may be used to include null fields in Patch requests.
  5048. NullFields []string `json:"-"`
  5049. }
  5050. func (s *SheetsChart) MarshalJSON() ([]byte, error) {
  5051. type NoMethod SheetsChart
  5052. raw := NoMethod(*s)
  5053. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5054. }
  5055. // SheetsChartProperties: The properties of the SheetsChart.
  5056. type SheetsChartProperties struct {
  5057. // ChartImageProperties: The properties of the embedded chart image.
  5058. ChartImageProperties *ImageProperties `json:"chartImageProperties,omitempty"`
  5059. // ForceSendFields is a list of field names (e.g.
  5060. // "ChartImageProperties") to unconditionally include in API requests.
  5061. // By default, fields with empty values are omitted from API requests.
  5062. // However, any non-pointer, non-interface field appearing in
  5063. // ForceSendFields will be sent to the server regardless of whether the
  5064. // field is empty or not. This may be used to include empty fields in
  5065. // Patch requests.
  5066. ForceSendFields []string `json:"-"`
  5067. // NullFields is a list of field names (e.g. "ChartImageProperties") to
  5068. // include in API requests with the JSON null value. By default, fields
  5069. // with empty values are omitted from API requests. However, any field
  5070. // with an empty value appearing in NullFields will be sent to the
  5071. // server as null. It is an error if a field in this list has a
  5072. // non-empty value. This may be used to include null fields in Patch
  5073. // requests.
  5074. NullFields []string `json:"-"`
  5075. }
  5076. func (s *SheetsChartProperties) MarshalJSON() ([]byte, error) {
  5077. type NoMethod SheetsChartProperties
  5078. raw := NoMethod(*s)
  5079. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5080. }
  5081. // Size: A width and height.
  5082. type Size struct {
  5083. // Height: The height of the object.
  5084. Height *Dimension `json:"height,omitempty"`
  5085. // Width: The width of the object.
  5086. Width *Dimension `json:"width,omitempty"`
  5087. // ForceSendFields is a list of field names (e.g. "Height") to
  5088. // unconditionally include in API requests. By default, fields with
  5089. // empty values are omitted from API requests. However, any non-pointer,
  5090. // non-interface field appearing in ForceSendFields will be sent to the
  5091. // server regardless of whether the field is empty or not. This may be
  5092. // used to include empty fields in Patch requests.
  5093. ForceSendFields []string `json:"-"`
  5094. // NullFields is a list of field names (e.g. "Height") to include in API
  5095. // requests with the JSON null value. By default, fields with empty
  5096. // values are omitted from API requests. However, any field with an
  5097. // empty value appearing in NullFields will be sent to the server as
  5098. // null. It is an error if a field in this list has a non-empty value.
  5099. // This may be used to include null fields in Patch requests.
  5100. NullFields []string `json:"-"`
  5101. }
  5102. func (s *Size) MarshalJSON() ([]byte, error) {
  5103. type NoMethod Size
  5104. raw := NoMethod(*s)
  5105. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5106. }
  5107. // SlideProperties: The properties of Page that are only
  5108. // relevant for pages with page_type SLIDE.
  5109. type SlideProperties struct {
  5110. // LayoutObjectId: The object ID of the layout that this slide is based
  5111. // on. This property is
  5112. // read-only.
  5113. LayoutObjectId string `json:"layoutObjectId,omitempty"`
  5114. // MasterObjectId: The object ID of the master that this slide is based
  5115. // on. This property is
  5116. // read-only.
  5117. MasterObjectId string `json:"masterObjectId,omitempty"`
  5118. // NotesPage: The notes page that this slide is associated with. It
  5119. // defines the visual
  5120. // appearance of a notes page when printing or exporting slides with
  5121. // speaker
  5122. // notes. A notes page inherits properties from the
  5123. // notes master.
  5124. // The placeholder shape with type BODY on the notes page contains the
  5125. // speaker
  5126. // notes for this slide. The ID of this shape is identified by
  5127. // the
  5128. // speakerNotesObjectId field.
  5129. // The notes page is read-only except for the text content and styles of
  5130. // the
  5131. // speaker notes shape. This property is read-only.
  5132. NotesPage *Page `json:"notesPage,omitempty"`
  5133. // ForceSendFields is a list of field names (e.g. "LayoutObjectId") to
  5134. // unconditionally include in API requests. By default, fields with
  5135. // empty values are omitted from API requests. However, any non-pointer,
  5136. // non-interface field appearing in ForceSendFields will be sent to the
  5137. // server regardless of whether the field is empty or not. This may be
  5138. // used to include empty fields in Patch requests.
  5139. ForceSendFields []string `json:"-"`
  5140. // NullFields is a list of field names (e.g. "LayoutObjectId") to
  5141. // include in API requests with the JSON null value. By default, fields
  5142. // with empty values are omitted from API requests. However, any field
  5143. // with an empty value appearing in NullFields will be sent to the
  5144. // server as null. It is an error if a field in this list has a
  5145. // non-empty value. This may be used to include null fields in Patch
  5146. // requests.
  5147. NullFields []string `json:"-"`
  5148. }
  5149. func (s *SlideProperties) MarshalJSON() ([]byte, error) {
  5150. type NoMethod SlideProperties
  5151. raw := NoMethod(*s)
  5152. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5153. }
  5154. // SolidFill: A solid color fill. The page or page element is filled
  5155. // entirely with the
  5156. // specified color value.
  5157. //
  5158. // If any field is unset, its value may be inherited from a parent
  5159. // placeholder
  5160. // if it exists.
  5161. type SolidFill struct {
  5162. // Alpha: The fraction of this `color` that should be applied to the
  5163. // pixel.
  5164. // That is, the final pixel color is defined by the equation:
  5165. //
  5166. // pixel color = alpha * (color) + (1.0 - alpha) * (background
  5167. // color)
  5168. //
  5169. // This means that a value of 1.0 corresponds to a solid color,
  5170. // whereas
  5171. // a value of 0.0 corresponds to a completely transparent color.
  5172. Alpha float64 `json:"alpha,omitempty"`
  5173. // Color: The color value of the solid fill.
  5174. Color *OpaqueColor `json:"color,omitempty"`
  5175. // ForceSendFields is a list of field names (e.g. "Alpha") to
  5176. // unconditionally include in API requests. By default, fields with
  5177. // empty values are omitted from API requests. However, any non-pointer,
  5178. // non-interface field appearing in ForceSendFields will be sent to the
  5179. // server regardless of whether the field is empty or not. This may be
  5180. // used to include empty fields in Patch requests.
  5181. ForceSendFields []string `json:"-"`
  5182. // NullFields is a list of field names (e.g. "Alpha") to include in API
  5183. // requests with the JSON null value. By default, fields with empty
  5184. // values are omitted from API requests. However, any field with an
  5185. // empty value appearing in NullFields will be sent to the server as
  5186. // null. It is an error if a field in this list has a non-empty value.
  5187. // This may be used to include null fields in Patch requests.
  5188. NullFields []string `json:"-"`
  5189. }
  5190. func (s *SolidFill) MarshalJSON() ([]byte, error) {
  5191. type NoMethod SolidFill
  5192. raw := NoMethod(*s)
  5193. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5194. }
  5195. func (s *SolidFill) UnmarshalJSON(data []byte) error {
  5196. type NoMethod SolidFill
  5197. var s1 struct {
  5198. Alpha gensupport.JSONFloat64 `json:"alpha"`
  5199. *NoMethod
  5200. }
  5201. s1.NoMethod = (*NoMethod)(s)
  5202. if err := json.Unmarshal(data, &s1); err != nil {
  5203. return err
  5204. }
  5205. s.Alpha = float64(s1.Alpha)
  5206. return nil
  5207. }
  5208. // StretchedPictureFill: The stretched picture fill. The page or page
  5209. // element is filled entirely with
  5210. // the specified picture. The picture is stretched to fit its container.
  5211. type StretchedPictureFill struct {
  5212. // ContentUrl: Reading the content_url:
  5213. //
  5214. // An URL to a picture with a default lifetime of 30 minutes.
  5215. // This URL is tagged with the account of the requester. Anyone with the
  5216. // URL
  5217. // effectively accesses the picture as the original requester. Access to
  5218. // the
  5219. // picture may be lost if the presentation's sharing settings
  5220. // change.
  5221. //
  5222. // Writing the content_url:
  5223. //
  5224. // The picture is fetched once at insertion time and a copy is stored
  5225. // for
  5226. // display inside the presentation. Pictures must be less than 50MB in
  5227. // size,
  5228. // cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
  5229. // GIF
  5230. // format.
  5231. //
  5232. // The provided URL can be at most 2 kB in length.
  5233. ContentUrl string `json:"contentUrl,omitempty"`
  5234. // Size: The original size of the picture fill. This field is read-only.
  5235. Size *Size `json:"size,omitempty"`
  5236. // ForceSendFields is a list of field names (e.g. "ContentUrl") to
  5237. // unconditionally include in API requests. By default, fields with
  5238. // empty values are omitted from API requests. However, any non-pointer,
  5239. // non-interface field appearing in ForceSendFields will be sent to the
  5240. // server regardless of whether the field is empty or not. This may be
  5241. // used to include empty fields in Patch requests.
  5242. ForceSendFields []string `json:"-"`
  5243. // NullFields is a list of field names (e.g. "ContentUrl") to include in
  5244. // API requests with the JSON null value. By default, fields with empty
  5245. // values are omitted from API requests. However, any field with an
  5246. // empty value appearing in NullFields will be sent to the server as
  5247. // null. It is an error if a field in this list has a non-empty value.
  5248. // This may be used to include null fields in Patch requests.
  5249. NullFields []string `json:"-"`
  5250. }
  5251. func (s *StretchedPictureFill) MarshalJSON() ([]byte, error) {
  5252. type NoMethod StretchedPictureFill
  5253. raw := NoMethod(*s)
  5254. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5255. }
  5256. // SubstringMatchCriteria: A criteria that matches a specific string of
  5257. // text in a shape or table.
  5258. type SubstringMatchCriteria struct {
  5259. // MatchCase: Indicates whether the search should respect case:
  5260. //
  5261. // - `True`: the search is case sensitive.
  5262. // - `False`: the search is case insensitive.
  5263. MatchCase bool `json:"matchCase,omitempty"`
  5264. // Text: The text to search for in the shape or table.
  5265. Text string `json:"text,omitempty"`
  5266. // ForceSendFields is a list of field names (e.g. "MatchCase") to
  5267. // unconditionally include in API requests. By default, fields with
  5268. // empty values are omitted from API requests. However, any non-pointer,
  5269. // non-interface field appearing in ForceSendFields will be sent to the
  5270. // server regardless of whether the field is empty or not. This may be
  5271. // used to include empty fields in Patch requests.
  5272. ForceSendFields []string `json:"-"`
  5273. // NullFields is a list of field names (e.g. "MatchCase") to include in
  5274. // API requests with the JSON null value. By default, fields with empty
  5275. // values are omitted from API requests. However, any field with an
  5276. // empty value appearing in NullFields will be sent to the server as
  5277. // null. It is an error if a field in this list has a non-empty value.
  5278. // This may be used to include null fields in Patch requests.
  5279. NullFields []string `json:"-"`
  5280. }
  5281. func (s *SubstringMatchCriteria) MarshalJSON() ([]byte, error) {
  5282. type NoMethod SubstringMatchCriteria
  5283. raw := NoMethod(*s)
  5284. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5285. }
  5286. // Table: A PageElement kind representing a
  5287. // table.
  5288. type Table struct {
  5289. // Columns: Number of columns in the table.
  5290. Columns int64 `json:"columns,omitempty"`
  5291. // HorizontalBorderRows: Properties of horizontal cell borders.
  5292. //
  5293. // A table's horizontal cell borders are represented as a grid. The grid
  5294. // has
  5295. // one more row than the number of rows in the table and the same number
  5296. // of
  5297. // columns as the table. For example, if the table is 3 x 3, its
  5298. // horizontal
  5299. // borders will be represented as a grid with 4 rows and 3 columns.
  5300. HorizontalBorderRows []*TableBorderRow `json:"horizontalBorderRows,omitempty"`
  5301. // Rows: Number of rows in the table.
  5302. Rows int64 `json:"rows,omitempty"`
  5303. // TableColumns: Properties of each column.
  5304. TableColumns []*TableColumnProperties `json:"tableColumns,omitempty"`
  5305. // TableRows: Properties and contents of each row.
  5306. //
  5307. // Cells that span multiple rows are contained in only one of these rows
  5308. // and
  5309. // have a row_span greater
  5310. // than 1.
  5311. TableRows []*TableRow `json:"tableRows,omitempty"`
  5312. // VerticalBorderRows: Properties of vertical cell borders.
  5313. //
  5314. // A table's vertical cell borders are represented as a grid. The grid
  5315. // has the
  5316. // same number of rows as the table and one more column than the number
  5317. // of
  5318. // columns in the table. For example, if the table is 3 x 3, its
  5319. // vertical
  5320. // borders will be represented as a grid with 3 rows and 4 columns.
  5321. VerticalBorderRows []*TableBorderRow `json:"verticalBorderRows,omitempty"`
  5322. // ForceSendFields is a list of field names (e.g. "Columns") to
  5323. // unconditionally include in API requests. By default, fields with
  5324. // empty values are omitted from API requests. However, any non-pointer,
  5325. // non-interface field appearing in ForceSendFields will be sent to the
  5326. // server regardless of whether the field is empty or not. This may be
  5327. // used to include empty fields in Patch requests.
  5328. ForceSendFields []string `json:"-"`
  5329. // NullFields is a list of field names (e.g. "Columns") to include in
  5330. // API requests with the JSON null value. By default, fields with empty
  5331. // values are omitted from API requests. However, any field with an
  5332. // empty value appearing in NullFields will be sent to the server as
  5333. // null. It is an error if a field in this list has a non-empty value.
  5334. // This may be used to include null fields in Patch requests.
  5335. NullFields []string `json:"-"`
  5336. }
  5337. func (s *Table) MarshalJSON() ([]byte, error) {
  5338. type NoMethod Table
  5339. raw := NoMethod(*s)
  5340. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5341. }
  5342. // TableBorderCell: The properties of each border cell.
  5343. type TableBorderCell struct {
  5344. // Location: The location of the border within the border table.
  5345. Location *TableCellLocation `json:"location,omitempty"`
  5346. // TableBorderProperties: The border properties.
  5347. TableBorderProperties *TableBorderProperties `json:"tableBorderProperties,omitempty"`
  5348. // ForceSendFields is a list of field names (e.g. "Location") to
  5349. // unconditionally include in API requests. By default, fields with
  5350. // empty values are omitted from API requests. However, any non-pointer,
  5351. // non-interface field appearing in ForceSendFields will be sent to the
  5352. // server regardless of whether the field is empty or not. This may be
  5353. // used to include empty fields in Patch requests.
  5354. ForceSendFields []string `json:"-"`
  5355. // NullFields is a list of field names (e.g. "Location") to include in
  5356. // API requests with the JSON null value. By default, fields with empty
  5357. // values are omitted from API requests. However, any field with an
  5358. // empty value appearing in NullFields will be sent to the server as
  5359. // null. It is an error if a field in this list has a non-empty value.
  5360. // This may be used to include null fields in Patch requests.
  5361. NullFields []string `json:"-"`
  5362. }
  5363. func (s *TableBorderCell) MarshalJSON() ([]byte, error) {
  5364. type NoMethod TableBorderCell
  5365. raw := NoMethod(*s)
  5366. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5367. }
  5368. // TableBorderFill: The fill of the border.
  5369. type TableBorderFill struct {
  5370. // SolidFill: Solid fill.
  5371. SolidFill *SolidFill `json:"solidFill,omitempty"`
  5372. // ForceSendFields is a list of field names (e.g. "SolidFill") to
  5373. // unconditionally include in API requests. By default, fields with
  5374. // empty values are omitted from API requests. However, any non-pointer,
  5375. // non-interface field appearing in ForceSendFields will be sent to the
  5376. // server regardless of whether the field is empty or not. This may be
  5377. // used to include empty fields in Patch requests.
  5378. ForceSendFields []string `json:"-"`
  5379. // NullFields is a list of field names (e.g. "SolidFill") to include in
  5380. // API requests with the JSON null value. By default, fields with empty
  5381. // values are omitted from API requests. However, any field with an
  5382. // empty value appearing in NullFields will be sent to the server as
  5383. // null. It is an error if a field in this list has a non-empty value.
  5384. // This may be used to include null fields in Patch requests.
  5385. NullFields []string `json:"-"`
  5386. }
  5387. func (s *TableBorderFill) MarshalJSON() ([]byte, error) {
  5388. type NoMethod TableBorderFill
  5389. raw := NoMethod(*s)
  5390. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5391. }
  5392. // TableBorderProperties: The border styling properties of
  5393. // the
  5394. // TableBorderCell.
  5395. type TableBorderProperties struct {
  5396. // DashStyle: The dash style of the border.
  5397. //
  5398. // Possible values:
  5399. // "DASH_STYLE_UNSPECIFIED" - Unspecified dash style.
  5400. // "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal
  5401. // value 'solid'.
  5402. // This is the default dash style.
  5403. // "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal
  5404. // value 'dot'.
  5405. // "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal
  5406. // value 'dash'.
  5407. // "DASH_DOT" - Alternating dashes and dots. Corresponds to ECMA-376
  5408. // ST_PresetLineDashVal
  5409. // value 'dashDot'.
  5410. // "LONG_DASH" - Line with large dashes. Corresponds to ECMA-376
  5411. // ST_PresetLineDashVal
  5412. // value 'lgDash'.
  5413. // "LONG_DASH_DOT" - Alternating large dashes and dots. Corresponds to
  5414. // ECMA-376
  5415. // ST_PresetLineDashVal value 'lgDashDot'.
  5416. DashStyle string `json:"dashStyle,omitempty"`
  5417. // TableBorderFill: The fill of the table border.
  5418. TableBorderFill *TableBorderFill `json:"tableBorderFill,omitempty"`
  5419. // Weight: The thickness of the border.
  5420. Weight *Dimension `json:"weight,omitempty"`
  5421. // ForceSendFields is a list of field names (e.g. "DashStyle") to
  5422. // unconditionally include in API requests. By default, fields with
  5423. // empty values are omitted from API requests. However, any non-pointer,
  5424. // non-interface field appearing in ForceSendFields will be sent to the
  5425. // server regardless of whether the field is empty or not. This may be
  5426. // used to include empty fields in Patch requests.
  5427. ForceSendFields []string `json:"-"`
  5428. // NullFields is a list of field names (e.g. "DashStyle") to include in
  5429. // API requests with the JSON null value. By default, fields with empty
  5430. // values are omitted from API requests. However, any field with an
  5431. // empty value appearing in NullFields will be sent to the server as
  5432. // null. It is an error if a field in this list has a non-empty value.
  5433. // This may be used to include null fields in Patch requests.
  5434. NullFields []string `json:"-"`
  5435. }
  5436. func (s *TableBorderProperties) MarshalJSON() ([]byte, error) {
  5437. type NoMethod TableBorderProperties
  5438. raw := NoMethod(*s)
  5439. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5440. }
  5441. // TableBorderRow: Contents of each border row in a table.
  5442. type TableBorderRow struct {
  5443. // TableBorderCells: Properties of each border cell. When a border's
  5444. // adjacent table cells are
  5445. // merged, it is not included in the response.
  5446. TableBorderCells []*TableBorderCell `json:"tableBorderCells,omitempty"`
  5447. // ForceSendFields is a list of field names (e.g. "TableBorderCells") to
  5448. // unconditionally include in API requests. By default, fields with
  5449. // empty values are omitted from API requests. However, any non-pointer,
  5450. // non-interface field appearing in ForceSendFields will be sent to the
  5451. // server regardless of whether the field is empty or not. This may be
  5452. // used to include empty fields in Patch requests.
  5453. ForceSendFields []string `json:"-"`
  5454. // NullFields is a list of field names (e.g. "TableBorderCells") to
  5455. // include in API requests with the JSON null value. By default, fields
  5456. // with empty values are omitted from API requests. However, any field
  5457. // with an empty value appearing in NullFields will be sent to the
  5458. // server as null. It is an error if a field in this list has a
  5459. // non-empty value. This may be used to include null fields in Patch
  5460. // requests.
  5461. NullFields []string `json:"-"`
  5462. }
  5463. func (s *TableBorderRow) MarshalJSON() ([]byte, error) {
  5464. type NoMethod TableBorderRow
  5465. raw := NoMethod(*s)
  5466. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5467. }
  5468. // TableCell: Properties and contents of each table cell.
  5469. type TableCell struct {
  5470. // ColumnSpan: Column span of the cell.
  5471. ColumnSpan int64 `json:"columnSpan,omitempty"`
  5472. // Location: The location of the cell within the table.
  5473. Location *TableCellLocation `json:"location,omitempty"`
  5474. // RowSpan: Row span of the cell.
  5475. RowSpan int64 `json:"rowSpan,omitempty"`
  5476. // TableCellProperties: The properties of the table cell.
  5477. TableCellProperties *TableCellProperties `json:"tableCellProperties,omitempty"`
  5478. // Text: The text content of the cell.
  5479. Text *TextContent `json:"text,omitempty"`
  5480. // ForceSendFields is a list of field names (e.g. "ColumnSpan") to
  5481. // unconditionally include in API requests. By default, fields with
  5482. // empty values are omitted from API requests. However, any non-pointer,
  5483. // non-interface field appearing in ForceSendFields will be sent to the
  5484. // server regardless of whether the field is empty or not. This may be
  5485. // used to include empty fields in Patch requests.
  5486. ForceSendFields []string `json:"-"`
  5487. // NullFields is a list of field names (e.g. "ColumnSpan") to include in
  5488. // API requests with the JSON null value. By default, fields with empty
  5489. // values are omitted from API requests. However, any field with an
  5490. // empty value appearing in NullFields will be sent to the server as
  5491. // null. It is an error if a field in this list has a non-empty value.
  5492. // This may be used to include null fields in Patch requests.
  5493. NullFields []string `json:"-"`
  5494. }
  5495. func (s *TableCell) MarshalJSON() ([]byte, error) {
  5496. type NoMethod TableCell
  5497. raw := NoMethod(*s)
  5498. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5499. }
  5500. // TableCellBackgroundFill: The table cell background fill.
  5501. type TableCellBackgroundFill struct {
  5502. // PropertyState: The background fill property state.
  5503. //
  5504. // Updating the fill on a table cell will implicitly update this
  5505. // field
  5506. // to `RENDERED`, unless another value is specified in the same request.
  5507. // To
  5508. // have no fill on a table cell, set this field to `NOT_RENDERED`. In
  5509. // this
  5510. // case, any other fill fields set in the same request will be ignored.
  5511. //
  5512. // Possible values:
  5513. // "RENDERED" - If a property's state is RENDERED, then the element
  5514. // has the corresponding
  5515. // property when rendered on a page. If the element is a placeholder
  5516. // shape as
  5517. // determined by the placeholder
  5518. // field, and it inherits from a placeholder shape, the corresponding
  5519. // field
  5520. // may be unset, meaning that the property value is inherited from a
  5521. // parent
  5522. // placeholder. If the element does not inherit, then the field will
  5523. // contain
  5524. // the rendered value. This is the default value.
  5525. // "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
  5526. // element does not have the
  5527. // corresponding property when rendered on a page. However, the field
  5528. // may
  5529. // still be set so it can be inherited by child shapes. To remove a
  5530. // property
  5531. // from a rendered element, set its property_state to NOT_RENDERED.
  5532. // "INHERIT" - If a property's state is INHERIT, then the property
  5533. // state uses the value of
  5534. // corresponding `property_state` field on the parent shape. Elements
  5535. // that do
  5536. // not inherit will never have an INHERIT property state.
  5537. PropertyState string `json:"propertyState,omitempty"`
  5538. // SolidFill: Solid color fill.
  5539. SolidFill *SolidFill `json:"solidFill,omitempty"`
  5540. // ForceSendFields is a list of field names (e.g. "PropertyState") to
  5541. // unconditionally include in API requests. By default, fields with
  5542. // empty values are omitted from API requests. However, any non-pointer,
  5543. // non-interface field appearing in ForceSendFields will be sent to the
  5544. // server regardless of whether the field is empty or not. This may be
  5545. // used to include empty fields in Patch requests.
  5546. ForceSendFields []string `json:"-"`
  5547. // NullFields is a list of field names (e.g. "PropertyState") to include
  5548. // in API requests with the JSON null value. By default, fields with
  5549. // empty values are omitted from API requests. However, any field with
  5550. // an empty value appearing in NullFields will be sent to the server as
  5551. // null. It is an error if a field in this list has a non-empty value.
  5552. // This may be used to include null fields in Patch requests.
  5553. NullFields []string `json:"-"`
  5554. }
  5555. func (s *TableCellBackgroundFill) MarshalJSON() ([]byte, error) {
  5556. type NoMethod TableCellBackgroundFill
  5557. raw := NoMethod(*s)
  5558. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5559. }
  5560. // TableCellLocation: A location of a single table cell within a table.
  5561. type TableCellLocation struct {
  5562. // ColumnIndex: The 0-based column index.
  5563. ColumnIndex int64 `json:"columnIndex,omitempty"`
  5564. // RowIndex: The 0-based row index.
  5565. RowIndex int64 `json:"rowIndex,omitempty"`
  5566. // ForceSendFields is a list of field names (e.g. "ColumnIndex") to
  5567. // unconditionally include in API requests. By default, fields with
  5568. // empty values are omitted from API requests. However, any non-pointer,
  5569. // non-interface field appearing in ForceSendFields will be sent to the
  5570. // server regardless of whether the field is empty or not. This may be
  5571. // used to include empty fields in Patch requests.
  5572. ForceSendFields []string `json:"-"`
  5573. // NullFields is a list of field names (e.g. "ColumnIndex") to include
  5574. // in API requests with the JSON null value. By default, fields with
  5575. // empty values are omitted from API requests. However, any field with
  5576. // an empty value appearing in NullFields will be sent to the server as
  5577. // null. It is an error if a field in this list has a non-empty value.
  5578. // This may be used to include null fields in Patch requests.
  5579. NullFields []string `json:"-"`
  5580. }
  5581. func (s *TableCellLocation) MarshalJSON() ([]byte, error) {
  5582. type NoMethod TableCellLocation
  5583. raw := NoMethod(*s)
  5584. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5585. }
  5586. // TableCellProperties: The properties of the TableCell.
  5587. type TableCellProperties struct {
  5588. // ContentAlignment: The alignment of the content in the table cell. The
  5589. // default alignment
  5590. // matches the alignment for newly created table cells in the Slides
  5591. // editor.
  5592. //
  5593. // Possible values:
  5594. // "CONTENT_ALIGNMENT_UNSPECIFIED" - An unspecified content alignment.
  5595. // The content alignment is inherited from
  5596. // the parent if it exists.
  5597. // "CONTENT_ALIGNMENT_UNSUPPORTED" - An unsupported content alignment.
  5598. // "TOP" - An alignment that aligns the content to the top of the
  5599. // content holder.
  5600. // Corresponds to ECMA-376 ST_TextAnchoringType 't'.
  5601. // "MIDDLE" - An alignment that aligns the content to the middle of
  5602. // the content
  5603. // holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'.
  5604. // "BOTTOM" - An alignment that aligns the content to the bottom of
  5605. // the content
  5606. // holder. Corresponds to ECMA-376 ST_TextAnchoringType 'b'.
  5607. ContentAlignment string `json:"contentAlignment,omitempty"`
  5608. // TableCellBackgroundFill: The background fill of the table cell. The
  5609. // default fill matches the fill
  5610. // for newly created table cells in the Slides editor.
  5611. TableCellBackgroundFill *TableCellBackgroundFill `json:"tableCellBackgroundFill,omitempty"`
  5612. // ForceSendFields is a list of field names (e.g. "ContentAlignment") to
  5613. // unconditionally include in API requests. By default, fields with
  5614. // empty values are omitted from API requests. However, any non-pointer,
  5615. // non-interface field appearing in ForceSendFields will be sent to the
  5616. // server regardless of whether the field is empty or not. This may be
  5617. // used to include empty fields in Patch requests.
  5618. ForceSendFields []string `json:"-"`
  5619. // NullFields is a list of field names (e.g. "ContentAlignment") to
  5620. // include in API requests with the JSON null value. By default, fields
  5621. // with empty values are omitted from API requests. However, any field
  5622. // with an empty value appearing in NullFields will be sent to the
  5623. // server as null. It is an error if a field in this list has a
  5624. // non-empty value. This may be used to include null fields in Patch
  5625. // requests.
  5626. NullFields []string `json:"-"`
  5627. }
  5628. func (s *TableCellProperties) MarshalJSON() ([]byte, error) {
  5629. type NoMethod TableCellProperties
  5630. raw := NoMethod(*s)
  5631. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5632. }
  5633. // TableColumnProperties: Properties of each column in a table.
  5634. type TableColumnProperties struct {
  5635. // ColumnWidth: Width of a column.
  5636. ColumnWidth *Dimension `json:"columnWidth,omitempty"`
  5637. // ForceSendFields is a list of field names (e.g. "ColumnWidth") to
  5638. // unconditionally include in API requests. By default, fields with
  5639. // empty values are omitted from API requests. However, any non-pointer,
  5640. // non-interface field appearing in ForceSendFields will be sent to the
  5641. // server regardless of whether the field is empty or not. This may be
  5642. // used to include empty fields in Patch requests.
  5643. ForceSendFields []string `json:"-"`
  5644. // NullFields is a list of field names (e.g. "ColumnWidth") to include
  5645. // in API requests with the JSON null value. By default, fields with
  5646. // empty values are omitted from API requests. However, any field with
  5647. // an empty value appearing in NullFields will be sent to the server as
  5648. // null. It is an error if a field in this list has a non-empty value.
  5649. // This may be used to include null fields in Patch requests.
  5650. NullFields []string `json:"-"`
  5651. }
  5652. func (s *TableColumnProperties) MarshalJSON() ([]byte, error) {
  5653. type NoMethod TableColumnProperties
  5654. raw := NoMethod(*s)
  5655. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5656. }
  5657. // TableRange: A table range represents a reference to a subset of a
  5658. // table.
  5659. //
  5660. // It's important to note that the cells specified by a table range do
  5661. // not
  5662. // necessarily form a rectangle. For example, let's say we have a 3 x 3
  5663. // table
  5664. // where all the cells of the last row are merged together. The table
  5665. // looks
  5666. // like this:
  5667. //
  5668. //
  5669. // [ ]
  5670. //
  5671. // A table range with location = (0, 0), row span = 3 and column span =
  5672. // 2
  5673. // specifies the following cells:
  5674. //
  5675. // x x
  5676. // [ x x x ]
  5677. type TableRange struct {
  5678. // ColumnSpan: The column span of the table range.
  5679. ColumnSpan int64 `json:"columnSpan,omitempty"`
  5680. // Location: The starting location of the table range.
  5681. Location *TableCellLocation `json:"location,omitempty"`
  5682. // RowSpan: The row span of the table range.
  5683. RowSpan int64 `json:"rowSpan,omitempty"`
  5684. // ForceSendFields is a list of field names (e.g. "ColumnSpan") to
  5685. // unconditionally include in API requests. By default, fields with
  5686. // empty values are omitted from API requests. However, any non-pointer,
  5687. // non-interface field appearing in ForceSendFields will be sent to the
  5688. // server regardless of whether the field is empty or not. This may be
  5689. // used to include empty fields in Patch requests.
  5690. ForceSendFields []string `json:"-"`
  5691. // NullFields is a list of field names (e.g. "ColumnSpan") to include in
  5692. // API requests with the JSON null value. By default, fields with empty
  5693. // values are omitted from API requests. However, any field with an
  5694. // empty value appearing in NullFields will be sent to the server as
  5695. // null. It is an error if a field in this list has a non-empty value.
  5696. // This may be used to include null fields in Patch requests.
  5697. NullFields []string `json:"-"`
  5698. }
  5699. func (s *TableRange) MarshalJSON() ([]byte, error) {
  5700. type NoMethod TableRange
  5701. raw := NoMethod(*s)
  5702. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5703. }
  5704. // TableRow: Properties and contents of each row in a table.
  5705. type TableRow struct {
  5706. // RowHeight: Height of a row.
  5707. RowHeight *Dimension `json:"rowHeight,omitempty"`
  5708. // TableCells: Properties and contents of each cell.
  5709. //
  5710. // Cells that span multiple columns are represented only once with
  5711. // a
  5712. // column_span greater
  5713. // than 1. As a result, the length of this collection does not always
  5714. // match
  5715. // the number of columns of the entire table.
  5716. TableCells []*TableCell `json:"tableCells,omitempty"`
  5717. // TableRowProperties: Properties of the row.
  5718. TableRowProperties *TableRowProperties `json:"tableRowProperties,omitempty"`
  5719. // ForceSendFields is a list of field names (e.g. "RowHeight") to
  5720. // unconditionally include in API requests. By default, fields with
  5721. // empty values are omitted from API requests. However, any non-pointer,
  5722. // non-interface field appearing in ForceSendFields will be sent to the
  5723. // server regardless of whether the field is empty or not. This may be
  5724. // used to include empty fields in Patch requests.
  5725. ForceSendFields []string `json:"-"`
  5726. // NullFields is a list of field names (e.g. "RowHeight") to include in
  5727. // API requests with the JSON null value. By default, fields with empty
  5728. // values are omitted from API requests. However, any field with an
  5729. // empty value appearing in NullFields will be sent to the server as
  5730. // null. It is an error if a field in this list has a non-empty value.
  5731. // This may be used to include null fields in Patch requests.
  5732. NullFields []string `json:"-"`
  5733. }
  5734. func (s *TableRow) MarshalJSON() ([]byte, error) {
  5735. type NoMethod TableRow
  5736. raw := NoMethod(*s)
  5737. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5738. }
  5739. // TableRowProperties: Properties of each row in a table.
  5740. type TableRowProperties struct {
  5741. // MinRowHeight: Minimum height of the row. The row will be rendered in
  5742. // the Slides editor at
  5743. // a height equal to or greater than this value in order to show all the
  5744. // text
  5745. // in the row's cell(s).
  5746. MinRowHeight *Dimension `json:"minRowHeight,omitempty"`
  5747. // ForceSendFields is a list of field names (e.g. "MinRowHeight") to
  5748. // unconditionally include in API requests. By default, fields with
  5749. // empty values are omitted from API requests. However, any non-pointer,
  5750. // non-interface field appearing in ForceSendFields will be sent to the
  5751. // server regardless of whether the field is empty or not. This may be
  5752. // used to include empty fields in Patch requests.
  5753. ForceSendFields []string `json:"-"`
  5754. // NullFields is a list of field names (e.g. "MinRowHeight") to include
  5755. // in API requests with the JSON null value. By default, fields with
  5756. // empty values are omitted from API requests. However, any field with
  5757. // an empty value appearing in NullFields will be sent to the server as
  5758. // null. It is an error if a field in this list has a non-empty value.
  5759. // This may be used to include null fields in Patch requests.
  5760. NullFields []string `json:"-"`
  5761. }
  5762. func (s *TableRowProperties) MarshalJSON() ([]byte, error) {
  5763. type NoMethod TableRowProperties
  5764. raw := NoMethod(*s)
  5765. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5766. }
  5767. // TextContent: The general text content. The text must reside in a
  5768. // compatible shape (e.g.
  5769. // text box or rectangle) or a table cell in a page.
  5770. type TextContent struct {
  5771. // Lists: The bulleted lists contained in this text, keyed by list ID.
  5772. Lists map[string]List `json:"lists,omitempty"`
  5773. // TextElements: The text contents broken down into its component parts,
  5774. // including styling
  5775. // information. This property is read-only.
  5776. TextElements []*TextElement `json:"textElements,omitempty"`
  5777. // ForceSendFields is a list of field names (e.g. "Lists") to
  5778. // unconditionally include in API requests. By default, fields with
  5779. // empty values are omitted from API requests. However, any non-pointer,
  5780. // non-interface field appearing in ForceSendFields will be sent to the
  5781. // server regardless of whether the field is empty or not. This may be
  5782. // used to include empty fields in Patch requests.
  5783. ForceSendFields []string `json:"-"`
  5784. // NullFields is a list of field names (e.g. "Lists") to include in API
  5785. // requests with the JSON null value. By default, fields with empty
  5786. // values are omitted from API requests. However, any field with an
  5787. // empty value appearing in NullFields will be sent to the server as
  5788. // null. It is an error if a field in this list has a non-empty value.
  5789. // This may be used to include null fields in Patch requests.
  5790. NullFields []string `json:"-"`
  5791. }
  5792. func (s *TextContent) MarshalJSON() ([]byte, error) {
  5793. type NoMethod TextContent
  5794. raw := NoMethod(*s)
  5795. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5796. }
  5797. // TextElement: A TextElement describes the content of a range of
  5798. // indices in the text content
  5799. // of a Shape or TableCell.
  5800. type TextElement struct {
  5801. // AutoText: A TextElement representing a spot in the text that is
  5802. // dynamically
  5803. // replaced with content that can change over time.
  5804. AutoText *AutoText `json:"autoText,omitempty"`
  5805. // EndIndex: The zero-based end index of this text element, exclusive,
  5806. // in Unicode code
  5807. // units.
  5808. EndIndex int64 `json:"endIndex,omitempty"`
  5809. // ParagraphMarker: A marker representing the beginning of a new
  5810. // paragraph.
  5811. //
  5812. // The `start_index` and `end_index` of this TextElement represent
  5813. // the
  5814. // range of the paragraph. Other TextElements with an index range
  5815. // contained
  5816. // inside this paragraph's range are considered to be part of
  5817. // this
  5818. // paragraph. The range of indices of two separate paragraphs will
  5819. // never
  5820. // overlap.
  5821. ParagraphMarker *ParagraphMarker `json:"paragraphMarker,omitempty"`
  5822. // StartIndex: The zero-based start index of this text element, in
  5823. // Unicode code units.
  5824. StartIndex int64 `json:"startIndex,omitempty"`
  5825. // TextRun: A TextElement representing a run of text where all of the
  5826. // characters
  5827. // in the run have the same TextStyle.
  5828. //
  5829. // The `start_index` and `end_index` of TextRuns will always be
  5830. // fully
  5831. // contained in the index range of a single `paragraph_marker`
  5832. // TextElement.
  5833. // In other words, a TextRun will never span multiple paragraphs.
  5834. TextRun *TextRun `json:"textRun,omitempty"`
  5835. // ForceSendFields is a list of field names (e.g. "AutoText") to
  5836. // unconditionally include in API requests. By default, fields with
  5837. // empty values are omitted from API requests. However, any non-pointer,
  5838. // non-interface field appearing in ForceSendFields will be sent to the
  5839. // server regardless of whether the field is empty or not. This may be
  5840. // used to include empty fields in Patch requests.
  5841. ForceSendFields []string `json:"-"`
  5842. // NullFields is a list of field names (e.g. "AutoText") to include in
  5843. // API requests with the JSON null value. By default, fields with empty
  5844. // values are omitted from API requests. However, any field with an
  5845. // empty value appearing in NullFields will be sent to the server as
  5846. // null. It is an error if a field in this list has a non-empty value.
  5847. // This may be used to include null fields in Patch requests.
  5848. NullFields []string `json:"-"`
  5849. }
  5850. func (s *TextElement) MarshalJSON() ([]byte, error) {
  5851. type NoMethod TextElement
  5852. raw := NoMethod(*s)
  5853. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5854. }
  5855. // TextRun: A TextElement kind that represents a run of text that all
  5856. // has the same
  5857. // styling.
  5858. type TextRun struct {
  5859. // Content: The text of this run.
  5860. Content string `json:"content,omitempty"`
  5861. // Style: The styling applied to this run.
  5862. Style *TextStyle `json:"style,omitempty"`
  5863. // ForceSendFields is a list of field names (e.g. "Content") to
  5864. // unconditionally include in API requests. By default, fields with
  5865. // empty values are omitted from API requests. However, any non-pointer,
  5866. // non-interface field appearing in ForceSendFields will be sent to the
  5867. // server regardless of whether the field is empty or not. This may be
  5868. // used to include empty fields in Patch requests.
  5869. ForceSendFields []string `json:"-"`
  5870. // NullFields is a list of field names (e.g. "Content") to include in
  5871. // API requests with the JSON null value. By default, fields with empty
  5872. // values are omitted from API requests. However, any field with an
  5873. // empty value appearing in NullFields will be sent to the server as
  5874. // null. It is an error if a field in this list has a non-empty value.
  5875. // This may be used to include null fields in Patch requests.
  5876. NullFields []string `json:"-"`
  5877. }
  5878. func (s *TextRun) MarshalJSON() ([]byte, error) {
  5879. type NoMethod TextRun
  5880. raw := NoMethod(*s)
  5881. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  5882. }
  5883. // TextStyle: Represents the styling that can be applied to a
  5884. // TextRun.
  5885. //
  5886. // If this text is contained in a shape with a parent placeholder, then
  5887. // these text styles may be
  5888. // inherited from the parent. Which text styles are inherited depend on
  5889. // the
  5890. // nesting level of lists:
  5891. //
  5892. // * A text run in a paragraph that is not in a list will inherit its
  5893. // text style
  5894. // from the the newline character in the paragraph at the 0 nesting
  5895. // level of
  5896. // the list inside the parent placeholder.
  5897. // * A text run in a paragraph that is in a list will inherit its text
  5898. // style
  5899. // from the newline character in the paragraph at its corresponding
  5900. // nesting
  5901. // level of the list inside the parent placeholder.
  5902. //
  5903. // Inherited text styles are represented as unset fields in this
  5904. // message. If
  5905. // text is contained in a shape without a parent placeholder, unsetting
  5906. // these
  5907. // fields will revert the style to a value matching the defaults in the
  5908. // Slides
  5909. // editor.
  5910. type TextStyle struct {
  5911. // BackgroundColor: The background color of the text. If set, the color
  5912. // is either opaque or
  5913. // transparent, depending on if the `opaque_color` field in it is set.
  5914. BackgroundColor *OptionalColor `json:"backgroundColor,omitempty"`
  5915. // BaselineOffset: The text's vertical offset from its normal
  5916. // position.
  5917. //
  5918. // Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is
  5919. // automatically
  5920. // rendered in a smaller font size, computed based on the `font_size`
  5921. // field.
  5922. // The `font_size` itself is not affected by changes in this field.
  5923. //
  5924. // Possible values:
  5925. // "BASELINE_OFFSET_UNSPECIFIED" - The text's baseline offset is
  5926. // inherited from the parent.
  5927. // "NONE" - The text is not vertically offset.
  5928. // "SUPERSCRIPT" - The text is vertically offset upwards
  5929. // (superscript).
  5930. // "SUBSCRIPT" - The text is vertically offset downwards (subscript).
  5931. BaselineOffset string `json:"baselineOffset,omitempty"`
  5932. // Bold: Whether or not the text is rendered as bold.
  5933. Bold bool `json:"bold,omitempty"`
  5934. // FontFamily: The font family of the text.
  5935. //
  5936. // The font family can be any font from the Font menu in Slides or
  5937. // from
  5938. // [Google Fonts] (https://fonts.google.com/). If the font name
  5939. // is
  5940. // unrecognized, the text is rendered in `Arial`.
  5941. //
  5942. // Some fonts can affect the weight of the text. If an update
  5943. // request
  5944. // specifies values for both `font_family` and `bold`, the
  5945. // explicitly-set
  5946. // `bold` value is used.
  5947. FontFamily string `json:"fontFamily,omitempty"`
  5948. // FontSize: The size of the text's font. When read, the `font_size`
  5949. // will specified in
  5950. // points.
  5951. FontSize *Dimension `json:"fontSize,omitempty"`
  5952. // ForegroundColor: The color of the text itself. If set, the color is
  5953. // either opaque or
  5954. // transparent, depending on if the `opaque_color` field in it is set.
  5955. ForegroundColor *OptionalColor `json:"foregroundColor,omitempty"`
  5956. // Italic: Whether or not the text is italicized.
  5957. Italic bool `json:"italic,omitempty"`
  5958. // Link: The hyperlink destination of the text. If unset, there is no
  5959. // link. Links
  5960. // are not inherited from parent text.
  5961. //
  5962. // Changing the link in an update request causes some other changes to
  5963. // the
  5964. // text style of the range:
  5965. //
  5966. // * When setting a link, the text foreground color will be set to
  5967. // ThemeColorType.HYPERLINK and the text will
  5968. // be underlined. If these fields are modified in the same
  5969. // request, those values will be used instead of the link defaults.
  5970. // * Setting a link on a text range that overlaps with an existing link
  5971. // will
  5972. // also update the existing link to point to the new URL.
  5973. // * Links are not settable on newline characters. As a result, setting
  5974. // a link
  5975. // on a text range that crosses a paragraph boundary, such as
  5976. // "ABC\n123",
  5977. // will separate the newline character(s) into their own text runs.
  5978. // The
  5979. // link will be applied separately to the runs before and after the
  5980. // newline.
  5981. // * Removing a link will update the text style of the range to match
  5982. // the
  5983. // style of the preceding text (or the default text styles if the
  5984. // preceding
  5985. // text is another link) unless different styles are being set in the
  5986. // same
  5987. // request.
  5988. Link *Link `json:"link,omitempty"`
  5989. // SmallCaps: Whether or not the text is in small capital letters.
  5990. SmallCaps bool `json:"smallCaps,omitempty"`
  5991. // Strikethrough: Whether or not the text is struck through.
  5992. Strikethrough bool `json:"strikethrough,omitempty"`
  5993. // Underline: Whether or not the text is underlined.
  5994. Underline bool `json:"underline,omitempty"`
  5995. // WeightedFontFamily: The font family and rendered weight of the
  5996. // text.
  5997. //
  5998. // This field is an extension of `font_family` meant to support explicit
  5999. // font
  6000. // weights without breaking backwards compatibility. As such, when
  6001. // reading the
  6002. // style of a range of text, the value of
  6003. // `weighted_font_family#font_family`
  6004. // will always be equal to that of `font_family`. However, when writing,
  6005. // if
  6006. // both fields are included in the field mask (either explicitly or
  6007. // through
  6008. // the wildcard "*"), their values are reconciled as follows:
  6009. //
  6010. // * If `font_family` is set and `weighted_font_family` is not, the
  6011. // value of
  6012. // `font_family` is applied with weight `400` ("normal").
  6013. // * If both fields are set, the value of `font_family` must match that
  6014. // of
  6015. // `weighted_font_family#font_family`. If so, the font family and
  6016. // weight of
  6017. // `weighted_font_family` is applied. Otherwise, a 400 bad request
  6018. // error is
  6019. // returned.
  6020. // * If `weighted_font_family` is set and `font_family` is not, the
  6021. // font
  6022. // family and weight of `weighted_font_family` is applied.
  6023. // * If neither field is set, the font family and weight of the text
  6024. // inherit
  6025. // from the parent. Note that these properties cannot inherit
  6026. // separately
  6027. // from each other.
  6028. //
  6029. // If an update request specifies values for both `weighted_font_family`
  6030. // and
  6031. // `bold`, the `weighted_font_family` is applied first, then `bold`.
  6032. //
  6033. // If `weighted_font_family#weight` is not set, it defaults to
  6034. // `400`.
  6035. //
  6036. // If `weighted_font_family` is set, then
  6037. // `weighted_font_family#font_family`
  6038. // must also be set with a non-empty value. Otherwise, a 400 bad request
  6039. // error
  6040. // is returned.
  6041. WeightedFontFamily *WeightedFontFamily `json:"weightedFontFamily,omitempty"`
  6042. // ForceSendFields is a list of field names (e.g. "BackgroundColor") to
  6043. // unconditionally include in API requests. By default, fields with
  6044. // empty values are omitted from API requests. However, any non-pointer,
  6045. // non-interface field appearing in ForceSendFields will be sent to the
  6046. // server regardless of whether the field is empty or not. This may be
  6047. // used to include empty fields in Patch requests.
  6048. ForceSendFields []string `json:"-"`
  6049. // NullFields is a list of field names (e.g. "BackgroundColor") to
  6050. // include in API requests with the JSON null value. By default, fields
  6051. // with empty values are omitted from API requests. However, any field
  6052. // with an empty value appearing in NullFields will be sent to the
  6053. // server as null. It is an error if a field in this list has a
  6054. // non-empty value. This may be used to include null fields in Patch
  6055. // requests.
  6056. NullFields []string `json:"-"`
  6057. }
  6058. func (s *TextStyle) MarshalJSON() ([]byte, error) {
  6059. type NoMethod TextStyle
  6060. raw := NoMethod(*s)
  6061. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6062. }
  6063. // ThemeColorPair: A pair mapping a theme color type to the concrete
  6064. // color it represents.
  6065. type ThemeColorPair struct {
  6066. // Color: The concrete color corresponding to the theme color type
  6067. // above.
  6068. Color *RgbColor `json:"color,omitempty"`
  6069. // Type: The type of the theme color.
  6070. //
  6071. // Possible values:
  6072. // "THEME_COLOR_TYPE_UNSPECIFIED" - Unspecified theme color. This
  6073. // value should not be used.
  6074. // "DARK1" - Represents the first dark color.
  6075. // "LIGHT1" - Represents the first light color.
  6076. // "DARK2" - Represents the second dark color.
  6077. // "LIGHT2" - Represents the second light color.
  6078. // "ACCENT1" - Represents the first accent color.
  6079. // "ACCENT2" - Represents the second accent color.
  6080. // "ACCENT3" - Represents the third accent color.
  6081. // "ACCENT4" - Represents the fourth accent color.
  6082. // "ACCENT5" - Represents the fifth accent color.
  6083. // "ACCENT6" - Represents the sixth accent color.
  6084. // "HYPERLINK" - Represents the color to use for hyperlinks.
  6085. // "FOLLOWED_HYPERLINK" - Represents the color to use for visited
  6086. // hyperlinks.
  6087. // "TEXT1" - Represents the first text color.
  6088. // "BACKGROUND1" - Represents the first background color.
  6089. // "TEXT2" - Represents the second text color.
  6090. // "BACKGROUND2" - Represents the second background color.
  6091. Type string `json:"type,omitempty"`
  6092. // ForceSendFields is a list of field names (e.g. "Color") to
  6093. // unconditionally include in API requests. By default, fields with
  6094. // empty values are omitted from API requests. However, any non-pointer,
  6095. // non-interface field appearing in ForceSendFields will be sent to the
  6096. // server regardless of whether the field is empty or not. This may be
  6097. // used to include empty fields in Patch requests.
  6098. ForceSendFields []string `json:"-"`
  6099. // NullFields is a list of field names (e.g. "Color") to include in API
  6100. // requests with the JSON null value. By default, fields with empty
  6101. // values are omitted from API requests. However, any field with an
  6102. // empty value appearing in NullFields will be sent to the server as
  6103. // null. It is an error if a field in this list has a non-empty value.
  6104. // This may be used to include null fields in Patch requests.
  6105. NullFields []string `json:"-"`
  6106. }
  6107. func (s *ThemeColorPair) MarshalJSON() ([]byte, error) {
  6108. type NoMethod ThemeColorPair
  6109. raw := NoMethod(*s)
  6110. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6111. }
  6112. // Thumbnail: The thumbnail of a page.
  6113. type Thumbnail struct {
  6114. // ContentUrl: The content URL of the thumbnail image.
  6115. //
  6116. // The URL to the image has a default lifetime of 30 minutes.
  6117. // This URL is tagged with the account of the requester. Anyone with the
  6118. // URL
  6119. // effectively accesses the image as the original requester. Access to
  6120. // the
  6121. // image may be lost if the presentation's sharing settings change.
  6122. // The mime type of the thumbnail image is the same as specified in
  6123. // the
  6124. // `GetPageThumbnailRequest`.
  6125. ContentUrl string `json:"contentUrl,omitempty"`
  6126. // Height: The positive height in pixels of the thumbnail image.
  6127. Height int64 `json:"height,omitempty"`
  6128. // Width: The positive width in pixels of the thumbnail image.
  6129. Width int64 `json:"width,omitempty"`
  6130. // ServerResponse contains the HTTP response code and headers from the
  6131. // server.
  6132. googleapi.ServerResponse `json:"-"`
  6133. // ForceSendFields is a list of field names (e.g. "ContentUrl") to
  6134. // unconditionally include in API requests. By default, fields with
  6135. // empty values are omitted from API requests. However, any non-pointer,
  6136. // non-interface field appearing in ForceSendFields will be sent to the
  6137. // server regardless of whether the field is empty or not. This may be
  6138. // used to include empty fields in Patch requests.
  6139. ForceSendFields []string `json:"-"`
  6140. // NullFields is a list of field names (e.g. "ContentUrl") to include in
  6141. // API requests with the JSON null value. By default, fields with empty
  6142. // values are omitted from API requests. However, any field with an
  6143. // empty value appearing in NullFields will be sent to the server as
  6144. // null. It is an error if a field in this list has a non-empty value.
  6145. // This may be used to include null fields in Patch requests.
  6146. NullFields []string `json:"-"`
  6147. }
  6148. func (s *Thumbnail) MarshalJSON() ([]byte, error) {
  6149. type NoMethod Thumbnail
  6150. raw := NoMethod(*s)
  6151. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6152. }
  6153. // UngroupObjectsRequest: Ungroups objects, such as groups.
  6154. type UngroupObjectsRequest struct {
  6155. // ObjectIds: The object IDs of the objects to ungroup.
  6156. //
  6157. // Only groups that are not inside other
  6158. // groups can be ungrouped. All the groups
  6159. // should be on the same page. The group itself is deleted. The visual
  6160. // sizes
  6161. // and positions of all the children are preserved.
  6162. ObjectIds []string `json:"objectIds,omitempty"`
  6163. // ForceSendFields is a list of field names (e.g. "ObjectIds") to
  6164. // unconditionally include in API requests. By default, fields with
  6165. // empty values are omitted from API requests. However, any non-pointer,
  6166. // non-interface field appearing in ForceSendFields will be sent to the
  6167. // server regardless of whether the field is empty or not. This may be
  6168. // used to include empty fields in Patch requests.
  6169. ForceSendFields []string `json:"-"`
  6170. // NullFields is a list of field names (e.g. "ObjectIds") to include in
  6171. // API requests with the JSON null value. By default, fields with empty
  6172. // values are omitted from API requests. However, any field with an
  6173. // empty value appearing in NullFields will be sent to the server as
  6174. // null. It is an error if a field in this list has a non-empty value.
  6175. // This may be used to include null fields in Patch requests.
  6176. NullFields []string `json:"-"`
  6177. }
  6178. func (s *UngroupObjectsRequest) MarshalJSON() ([]byte, error) {
  6179. type NoMethod UngroupObjectsRequest
  6180. raw := NoMethod(*s)
  6181. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6182. }
  6183. // UnmergeTableCellsRequest: Unmerges cells in a Table.
  6184. type UnmergeTableCellsRequest struct {
  6185. // ObjectId: The object ID of the table.
  6186. ObjectId string `json:"objectId,omitempty"`
  6187. // TableRange: The table range specifying which cells of the table to
  6188. // unmerge.
  6189. //
  6190. // All merged cells in this range will be unmerged, and cells that are
  6191. // already
  6192. // unmerged will not be affected. If the range has no merged cells,
  6193. // the
  6194. // request will do nothing. If there is text in any of the merged cells,
  6195. // the
  6196. // text will remain in the upper-left ("head") cell of the resulting
  6197. // block of
  6198. // unmerged cells.
  6199. TableRange *TableRange `json:"tableRange,omitempty"`
  6200. // ForceSendFields is a list of field names (e.g. "ObjectId") to
  6201. // unconditionally include in API requests. By default, fields with
  6202. // empty values are omitted from API requests. However, any non-pointer,
  6203. // non-interface field appearing in ForceSendFields will be sent to the
  6204. // server regardless of whether the field is empty or not. This may be
  6205. // used to include empty fields in Patch requests.
  6206. ForceSendFields []string `json:"-"`
  6207. // NullFields is a list of field names (e.g. "ObjectId") to include in
  6208. // API requests with the JSON null value. By default, fields with empty
  6209. // values are omitted from API requests. However, any field with an
  6210. // empty value appearing in NullFields will be sent to the server as
  6211. // null. It is an error if a field in this list has a non-empty value.
  6212. // This may be used to include null fields in Patch requests.
  6213. NullFields []string `json:"-"`
  6214. }
  6215. func (s *UnmergeTableCellsRequest) MarshalJSON() ([]byte, error) {
  6216. type NoMethod UnmergeTableCellsRequest
  6217. raw := NoMethod(*s)
  6218. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6219. }
  6220. // UpdateImagePropertiesRequest: Update the properties of an Image.
  6221. type UpdateImagePropertiesRequest struct {
  6222. // Fields: The fields that should be updated.
  6223. //
  6224. // At least one field must be specified. The root `imageProperties`
  6225. // is
  6226. // implied and should not be specified. A single "*" can be used
  6227. // as
  6228. // short-hand for listing every field.
  6229. //
  6230. // For example to update the image outline color, set `fields`
  6231. // to
  6232. // "outline.outlineFill.solidFill.color".
  6233. //
  6234. // To reset a property to its default value, include its field name in
  6235. // the
  6236. // field mask but leave the field itself unset.
  6237. Fields string `json:"fields,omitempty"`
  6238. // ImageProperties: The image properties to update.
  6239. ImageProperties *ImageProperties `json:"imageProperties,omitempty"`
  6240. // ObjectId: The object ID of the image the updates are applied to.
  6241. ObjectId string `json:"objectId,omitempty"`
  6242. // ForceSendFields is a list of field names (e.g. "Fields") to
  6243. // unconditionally include in API requests. By default, fields with
  6244. // empty values are omitted from API requests. However, any non-pointer,
  6245. // non-interface field appearing in ForceSendFields will be sent to the
  6246. // server regardless of whether the field is empty or not. This may be
  6247. // used to include empty fields in Patch requests.
  6248. ForceSendFields []string `json:"-"`
  6249. // NullFields is a list of field names (e.g. "Fields") to include in API
  6250. // requests with the JSON null value. By default, fields with empty
  6251. // values are omitted from API requests. However, any field with an
  6252. // empty value appearing in NullFields will be sent to the server as
  6253. // null. It is an error if a field in this list has a non-empty value.
  6254. // This may be used to include null fields in Patch requests.
  6255. NullFields []string `json:"-"`
  6256. }
  6257. func (s *UpdateImagePropertiesRequest) MarshalJSON() ([]byte, error) {
  6258. type NoMethod UpdateImagePropertiesRequest
  6259. raw := NoMethod(*s)
  6260. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6261. }
  6262. // UpdateLineCategoryRequest: Updates the category of a line.
  6263. type UpdateLineCategoryRequest struct {
  6264. // LineCategory: The line category to update to.
  6265. //
  6266. // The exact line type is determined based
  6267. // on the category to update to and how it's routed to connect to other
  6268. // page
  6269. // elements.
  6270. //
  6271. // Possible values:
  6272. // "LINE_CATEGORY_UNSPECIFIED" - Unspecified line category.
  6273. // "STRAIGHT" - Straight connectors, including straight connector 1.
  6274. // "BENT" - Bent connectors, including bent connector 2 to 5.
  6275. // "CURVED" - Curved connectors, including curved connector 2 to 5.
  6276. LineCategory string `json:"lineCategory,omitempty"`
  6277. // ObjectId: The object ID of the line the update is applied to.
  6278. //
  6279. // Only a line with a category
  6280. // indicating it is a "connector" can be updated.
  6281. //
  6282. // The line may be rerouted after updating its category.
  6283. ObjectId string `json:"objectId,omitempty"`
  6284. // ForceSendFields is a list of field names (e.g. "LineCategory") to
  6285. // unconditionally include in API requests. By default, fields with
  6286. // empty values are omitted from API requests. However, any non-pointer,
  6287. // non-interface field appearing in ForceSendFields will be sent to the
  6288. // server regardless of whether the field is empty or not. This may be
  6289. // used to include empty fields in Patch requests.
  6290. ForceSendFields []string `json:"-"`
  6291. // NullFields is a list of field names (e.g. "LineCategory") to include
  6292. // in API requests with the JSON null value. By default, fields with
  6293. // empty values are omitted from API requests. However, any field with
  6294. // an empty value appearing in NullFields will be sent to the server as
  6295. // null. It is an error if a field in this list has a non-empty value.
  6296. // This may be used to include null fields in Patch requests.
  6297. NullFields []string `json:"-"`
  6298. }
  6299. func (s *UpdateLineCategoryRequest) MarshalJSON() ([]byte, error) {
  6300. type NoMethod UpdateLineCategoryRequest
  6301. raw := NoMethod(*s)
  6302. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6303. }
  6304. // UpdateLinePropertiesRequest: Updates the properties of a Line.
  6305. type UpdateLinePropertiesRequest struct {
  6306. // Fields: The fields that should be updated.
  6307. //
  6308. // At least one field must be specified. The root `lineProperties`
  6309. // is
  6310. // implied and should not be specified. A single "*" can be used
  6311. // as
  6312. // short-hand for listing every field.
  6313. //
  6314. // For example to update the line solid fill color, set `fields`
  6315. // to
  6316. // "lineFill.solidFill.color".
  6317. //
  6318. // To reset a property to its default value, include its field name in
  6319. // the
  6320. // field mask but leave the field itself unset.
  6321. Fields string `json:"fields,omitempty"`
  6322. // LineProperties: The line properties to update.
  6323. LineProperties *LineProperties `json:"lineProperties,omitempty"`
  6324. // ObjectId: The object ID of the line the update is applied to.
  6325. ObjectId string `json:"objectId,omitempty"`
  6326. // ForceSendFields is a list of field names (e.g. "Fields") to
  6327. // unconditionally include in API requests. By default, fields with
  6328. // empty values are omitted from API requests. However, any non-pointer,
  6329. // non-interface field appearing in ForceSendFields will be sent to the
  6330. // server regardless of whether the field is empty or not. This may be
  6331. // used to include empty fields in Patch requests.
  6332. ForceSendFields []string `json:"-"`
  6333. // NullFields is a list of field names (e.g. "Fields") to include in API
  6334. // requests with the JSON null value. By default, fields with empty
  6335. // values are omitted from API requests. However, any field with an
  6336. // empty value appearing in NullFields will be sent to the server as
  6337. // null. It is an error if a field in this list has a non-empty value.
  6338. // This may be used to include null fields in Patch requests.
  6339. NullFields []string `json:"-"`
  6340. }
  6341. func (s *UpdateLinePropertiesRequest) MarshalJSON() ([]byte, error) {
  6342. type NoMethod UpdateLinePropertiesRequest
  6343. raw := NoMethod(*s)
  6344. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6345. }
  6346. // UpdatePageElementAltTextRequest: Updates the alt text title and/or
  6347. // description of a
  6348. // page element.
  6349. type UpdatePageElementAltTextRequest struct {
  6350. // Description: The updated alt text description of the page element. If
  6351. // unset the existing
  6352. // value will be maintained. The description is exposed to screen
  6353. // readers
  6354. // and other accessibility interfaces. Only use human readable values
  6355. // related
  6356. // to the content of the page element.
  6357. Description string `json:"description,omitempty"`
  6358. // ObjectId: The object ID of the page element the updates are applied
  6359. // to.
  6360. ObjectId string `json:"objectId,omitempty"`
  6361. // Title: The updated alt text title of the page element. If unset
  6362. // the
  6363. // existing value will be maintained. The title is exposed to screen
  6364. // readers
  6365. // and other accessibility interfaces. Only use human readable values
  6366. // related
  6367. // to the content of the page element.
  6368. Title string `json:"title,omitempty"`
  6369. // ForceSendFields is a list of field names (e.g. "Description") to
  6370. // unconditionally include in API requests. By default, fields with
  6371. // empty values are omitted from API requests. However, any non-pointer,
  6372. // non-interface field appearing in ForceSendFields will be sent to the
  6373. // server regardless of whether the field is empty or not. This may be
  6374. // used to include empty fields in Patch requests.
  6375. ForceSendFields []string `json:"-"`
  6376. // NullFields is a list of field names (e.g. "Description") to include
  6377. // in API requests with the JSON null value. By default, fields with
  6378. // empty values are omitted from API requests. However, any field with
  6379. // an empty value appearing in NullFields will be sent to the server as
  6380. // null. It is an error if a field in this list has a non-empty value.
  6381. // This may be used to include null fields in Patch requests.
  6382. NullFields []string `json:"-"`
  6383. }
  6384. func (s *UpdatePageElementAltTextRequest) MarshalJSON() ([]byte, error) {
  6385. type NoMethod UpdatePageElementAltTextRequest
  6386. raw := NoMethod(*s)
  6387. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6388. }
  6389. // UpdatePageElementTransformRequest: Updates the transform of a page
  6390. // element.
  6391. //
  6392. // Updating the transform of a group will change the absolute transform
  6393. // of the
  6394. // page elements in that group, which can change their visual
  6395. // appearance. See
  6396. // the documentation for PageElement.transform for more details.
  6397. type UpdatePageElementTransformRequest struct {
  6398. // ApplyMode: The apply mode of the transform update.
  6399. //
  6400. // Possible values:
  6401. // "APPLY_MODE_UNSPECIFIED" - Unspecified mode.
  6402. // "RELATIVE" - Applies the new AffineTransform matrix to the existing
  6403. // one, and
  6404. // replaces the existing one with the resulting concatenation.
  6405. // "ABSOLUTE" - Replaces the existing AffineTransform matrix with the
  6406. // new one.
  6407. ApplyMode string `json:"applyMode,omitempty"`
  6408. // ObjectId: The object ID of the page element to update.
  6409. ObjectId string `json:"objectId,omitempty"`
  6410. // Transform: The input transform matrix used to update the page
  6411. // element.
  6412. Transform *AffineTransform `json:"transform,omitempty"`
  6413. // ForceSendFields is a list of field names (e.g. "ApplyMode") to
  6414. // unconditionally include in API requests. By default, fields with
  6415. // empty values are omitted from API requests. However, any non-pointer,
  6416. // non-interface field appearing in ForceSendFields will be sent to the
  6417. // server regardless of whether the field is empty or not. This may be
  6418. // used to include empty fields in Patch requests.
  6419. ForceSendFields []string `json:"-"`
  6420. // NullFields is a list of field names (e.g. "ApplyMode") to include in
  6421. // API requests with the JSON null value. By default, fields with empty
  6422. // values are omitted from API requests. However, any field with an
  6423. // empty value appearing in NullFields will be sent to the server as
  6424. // null. It is an error if a field in this list has a non-empty value.
  6425. // This may be used to include null fields in Patch requests.
  6426. NullFields []string `json:"-"`
  6427. }
  6428. func (s *UpdatePageElementTransformRequest) MarshalJSON() ([]byte, error) {
  6429. type NoMethod UpdatePageElementTransformRequest
  6430. raw := NoMethod(*s)
  6431. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6432. }
  6433. // UpdatePageElementsZOrderRequest: Updates the Z-order of page
  6434. // elements. Z-order is an ordering of the elements
  6435. // on the page from back to front. The page element in the front may
  6436. // cover the
  6437. // elements that are behind it.
  6438. type UpdatePageElementsZOrderRequest struct {
  6439. // Operation: The Z-order operation to apply on the page elements.
  6440. //
  6441. // When applying the operation on multiple page elements, the
  6442. // relative
  6443. // Z-orders within these page elements before the operation is
  6444. // maintained.
  6445. //
  6446. // Possible values:
  6447. // "Z_ORDER_OPERATION_UNSPECIFIED" - Unspecified operation.
  6448. // "BRING_TO_FRONT" - Brings the page elements to the front of the
  6449. // page.
  6450. // "BRING_FORWARD" - Brings the page elements forward on the page by
  6451. // one element relative to the
  6452. // forwardmost one in the specified page elements.
  6453. // "SEND_BACKWARD" - Sends the page elements backward on the page by
  6454. // one element relative to the
  6455. // furthest behind one in the specified page elements.
  6456. // "SEND_TO_BACK" - Sends the page elements to the back of the page.
  6457. Operation string `json:"operation,omitempty"`
  6458. // PageElementObjectIds: The object IDs of the page elements to
  6459. // update.
  6460. //
  6461. // All the page elements must be on the same page and must not be
  6462. // grouped.
  6463. PageElementObjectIds []string `json:"pageElementObjectIds,omitempty"`
  6464. // ForceSendFields is a list of field names (e.g. "Operation") to
  6465. // unconditionally include in API requests. By default, fields with
  6466. // empty values are omitted from API requests. However, any non-pointer,
  6467. // non-interface field appearing in ForceSendFields will be sent to the
  6468. // server regardless of whether the field is empty or not. This may be
  6469. // used to include empty fields in Patch requests.
  6470. ForceSendFields []string `json:"-"`
  6471. // NullFields is a list of field names (e.g. "Operation") to include in
  6472. // API requests with the JSON null value. By default, fields with empty
  6473. // values are omitted from API requests. However, any field with an
  6474. // empty value appearing in NullFields will be sent to the server as
  6475. // null. It is an error if a field in this list has a non-empty value.
  6476. // This may be used to include null fields in Patch requests.
  6477. NullFields []string `json:"-"`
  6478. }
  6479. func (s *UpdatePageElementsZOrderRequest) MarshalJSON() ([]byte, error) {
  6480. type NoMethod UpdatePageElementsZOrderRequest
  6481. raw := NoMethod(*s)
  6482. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6483. }
  6484. // UpdatePagePropertiesRequest: Updates the properties of a Page.
  6485. type UpdatePagePropertiesRequest struct {
  6486. // Fields: The fields that should be updated.
  6487. //
  6488. // At least one field must be specified. The root `pageProperties`
  6489. // is
  6490. // implied and should not be specified. A single "*" can be used
  6491. // as
  6492. // short-hand for listing every field.
  6493. //
  6494. // For example to update the page background solid fill color, set
  6495. // `fields`
  6496. // to "pageBackgroundFill.solidFill.color".
  6497. //
  6498. // To reset a property to its default value, include its field name in
  6499. // the
  6500. // field mask but leave the field itself unset.
  6501. Fields string `json:"fields,omitempty"`
  6502. // ObjectId: The object ID of the page the update is applied to.
  6503. ObjectId string `json:"objectId,omitempty"`
  6504. // PageProperties: The page properties to update.
  6505. PageProperties *PageProperties `json:"pageProperties,omitempty"`
  6506. // ForceSendFields is a list of field names (e.g. "Fields") to
  6507. // unconditionally include in API requests. By default, fields with
  6508. // empty values are omitted from API requests. However, any non-pointer,
  6509. // non-interface field appearing in ForceSendFields will be sent to the
  6510. // server regardless of whether the field is empty or not. This may be
  6511. // used to include empty fields in Patch requests.
  6512. ForceSendFields []string `json:"-"`
  6513. // NullFields is a list of field names (e.g. "Fields") to include in API
  6514. // requests with the JSON null value. By default, fields with empty
  6515. // values are omitted from API requests. However, any field with an
  6516. // empty value appearing in NullFields will be sent to the server as
  6517. // null. It is an error if a field in this list has a non-empty value.
  6518. // This may be used to include null fields in Patch requests.
  6519. NullFields []string `json:"-"`
  6520. }
  6521. func (s *UpdatePagePropertiesRequest) MarshalJSON() ([]byte, error) {
  6522. type NoMethod UpdatePagePropertiesRequest
  6523. raw := NoMethod(*s)
  6524. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6525. }
  6526. // UpdateParagraphStyleRequest: Updates the styling for all of the
  6527. // paragraphs within a Shape or Table that
  6528. // overlap with the given text index range.
  6529. type UpdateParagraphStyleRequest struct {
  6530. // CellLocation: The location of the cell in the table containing the
  6531. // paragraph(s) to
  6532. // style. If `object_id` refers to a table, `cell_location` must have a
  6533. // value.
  6534. // Otherwise, it must not.
  6535. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  6536. // Fields: The fields that should be updated.
  6537. //
  6538. // At least one field must be specified. The root `style` is implied
  6539. // and
  6540. // should not be specified. A single "*" can be used as short-hand
  6541. // for
  6542. // listing every field.
  6543. //
  6544. // For example, to update the paragraph alignment, set `fields`
  6545. // to
  6546. // "alignment".
  6547. //
  6548. // To reset a property to its default value, include its field name in
  6549. // the
  6550. // field mask but leave the field itself unset.
  6551. Fields string `json:"fields,omitempty"`
  6552. // ObjectId: The object ID of the shape or table with the text to be
  6553. // styled.
  6554. ObjectId string `json:"objectId,omitempty"`
  6555. // Style: The paragraph's style.
  6556. Style *ParagraphStyle `json:"style,omitempty"`
  6557. // TextRange: The range of text containing the paragraph(s) to style.
  6558. TextRange *Range `json:"textRange,omitempty"`
  6559. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  6560. // unconditionally include in API requests. By default, fields with
  6561. // empty values are omitted from API requests. However, any non-pointer,
  6562. // non-interface field appearing in ForceSendFields will be sent to the
  6563. // server regardless of whether the field is empty or not. This may be
  6564. // used to include empty fields in Patch requests.
  6565. ForceSendFields []string `json:"-"`
  6566. // NullFields is a list of field names (e.g. "CellLocation") to include
  6567. // in API requests with the JSON null value. By default, fields with
  6568. // empty values are omitted from API requests. However, any field with
  6569. // an empty value appearing in NullFields will be sent to the server as
  6570. // null. It is an error if a field in this list has a non-empty value.
  6571. // This may be used to include null fields in Patch requests.
  6572. NullFields []string `json:"-"`
  6573. }
  6574. func (s *UpdateParagraphStyleRequest) MarshalJSON() ([]byte, error) {
  6575. type NoMethod UpdateParagraphStyleRequest
  6576. raw := NoMethod(*s)
  6577. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6578. }
  6579. // UpdateShapePropertiesRequest: Update the properties of a Shape.
  6580. type UpdateShapePropertiesRequest struct {
  6581. // Fields: The fields that should be updated.
  6582. //
  6583. // At least one field must be specified. The root `shapeProperties`
  6584. // is
  6585. // implied and should not be specified. A single "*" can be used
  6586. // as
  6587. // short-hand for listing every field.
  6588. //
  6589. // For example to update the shape background solid fill color, set
  6590. // `fields`
  6591. // to "shapeBackgroundFill.solidFill.color".
  6592. //
  6593. // To reset a property to its default value, include its field name in
  6594. // the
  6595. // field mask but leave the field itself unset.
  6596. Fields string `json:"fields,omitempty"`
  6597. // ObjectId: The object ID of the shape the updates are applied to.
  6598. ObjectId string `json:"objectId,omitempty"`
  6599. // ShapeProperties: The shape properties to update.
  6600. ShapeProperties *ShapeProperties `json:"shapeProperties,omitempty"`
  6601. // ForceSendFields is a list of field names (e.g. "Fields") to
  6602. // unconditionally include in API requests. By default, fields with
  6603. // empty values are omitted from API requests. However, any non-pointer,
  6604. // non-interface field appearing in ForceSendFields will be sent to the
  6605. // server regardless of whether the field is empty or not. This may be
  6606. // used to include empty fields in Patch requests.
  6607. ForceSendFields []string `json:"-"`
  6608. // NullFields is a list of field names (e.g. "Fields") to include in API
  6609. // requests with the JSON null value. By default, fields with empty
  6610. // values are omitted from API requests. However, any field with an
  6611. // empty value appearing in NullFields will be sent to the server as
  6612. // null. It is an error if a field in this list has a non-empty value.
  6613. // This may be used to include null fields in Patch requests.
  6614. NullFields []string `json:"-"`
  6615. }
  6616. func (s *UpdateShapePropertiesRequest) MarshalJSON() ([]byte, error) {
  6617. type NoMethod UpdateShapePropertiesRequest
  6618. raw := NoMethod(*s)
  6619. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6620. }
  6621. // UpdateSlidesPositionRequest: Updates the position of slides in the
  6622. // presentation.
  6623. type UpdateSlidesPositionRequest struct {
  6624. // InsertionIndex: The index where the slides should be inserted, based
  6625. // on the slide
  6626. // arrangement before the move takes place. Must be between zero and
  6627. // the
  6628. // number of slides in the presentation, inclusive.
  6629. InsertionIndex int64 `json:"insertionIndex,omitempty"`
  6630. // SlideObjectIds: The IDs of the slides in the presentation that should
  6631. // be moved.
  6632. // The slides in this list must be in existing presentation order,
  6633. // without
  6634. // duplicates.
  6635. SlideObjectIds []string `json:"slideObjectIds,omitempty"`
  6636. // ForceSendFields is a list of field names (e.g. "InsertionIndex") to
  6637. // unconditionally include in API requests. By default, fields with
  6638. // empty values are omitted from API requests. However, any non-pointer,
  6639. // non-interface field appearing in ForceSendFields will be sent to the
  6640. // server regardless of whether the field is empty or not. This may be
  6641. // used to include empty fields in Patch requests.
  6642. ForceSendFields []string `json:"-"`
  6643. // NullFields is a list of field names (e.g. "InsertionIndex") to
  6644. // include in API requests with the JSON null value. By default, fields
  6645. // with empty values are omitted from API requests. However, any field
  6646. // with an empty value appearing in NullFields will be sent to the
  6647. // server as null. It is an error if a field in this list has a
  6648. // non-empty value. This may be used to include null fields in Patch
  6649. // requests.
  6650. NullFields []string `json:"-"`
  6651. }
  6652. func (s *UpdateSlidesPositionRequest) MarshalJSON() ([]byte, error) {
  6653. type NoMethod UpdateSlidesPositionRequest
  6654. raw := NoMethod(*s)
  6655. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6656. }
  6657. // UpdateTableBorderPropertiesRequest: Updates the properties of the
  6658. // table borders in a Table.
  6659. type UpdateTableBorderPropertiesRequest struct {
  6660. // BorderPosition: The border position in the table range the updates
  6661. // should apply to. If a
  6662. // border position is not specified, the updates will apply to all
  6663. // borders in
  6664. // the table range.
  6665. //
  6666. // Possible values:
  6667. // "ALL" - All borders in the range.
  6668. // "BOTTOM" - Borders at the bottom of the range.
  6669. // "INNER" - Borders on the inside of the range.
  6670. // "INNER_HORIZONTAL" - Horizontal borders on the inside of the range.
  6671. // "INNER_VERTICAL" - Vertical borders on the inside of the range.
  6672. // "LEFT" - Borders at the left of the range.
  6673. // "OUTER" - Borders along the outside of the range.
  6674. // "RIGHT" - Borders at the right of the range.
  6675. // "TOP" - Borders at the top of the range.
  6676. BorderPosition string `json:"borderPosition,omitempty"`
  6677. // Fields: The fields that should be updated.
  6678. //
  6679. // At least one field must be specified. The root
  6680. // `tableBorderProperties` is
  6681. // implied and should not be specified. A single "*" can be used
  6682. // as
  6683. // short-hand for listing every field.
  6684. //
  6685. // For example to update the table border solid fill color, set
  6686. // `fields` to "tableBorderFill.solidFill.color".
  6687. //
  6688. // To reset a property to its default value, include its field name in
  6689. // the
  6690. // field mask but leave the field itself unset.
  6691. Fields string `json:"fields,omitempty"`
  6692. // ObjectId: The object ID of the table.
  6693. ObjectId string `json:"objectId,omitempty"`
  6694. // TableBorderProperties: The table border properties to update.
  6695. TableBorderProperties *TableBorderProperties `json:"tableBorderProperties,omitempty"`
  6696. // TableRange: The table range representing the subset of the table to
  6697. // which the updates
  6698. // are applied. If a table range is not specified, the updates will
  6699. // apply to
  6700. // the entire table.
  6701. TableRange *TableRange `json:"tableRange,omitempty"`
  6702. // ForceSendFields is a list of field names (e.g. "BorderPosition") to
  6703. // unconditionally include in API requests. By default, fields with
  6704. // empty values are omitted from API requests. However, any non-pointer,
  6705. // non-interface field appearing in ForceSendFields will be sent to the
  6706. // server regardless of whether the field is empty or not. This may be
  6707. // used to include empty fields in Patch requests.
  6708. ForceSendFields []string `json:"-"`
  6709. // NullFields is a list of field names (e.g. "BorderPosition") to
  6710. // include in API requests with the JSON null value. By default, fields
  6711. // with empty values are omitted from API requests. However, any field
  6712. // with an empty value appearing in NullFields will be sent to the
  6713. // server as null. It is an error if a field in this list has a
  6714. // non-empty value. This may be used to include null fields in Patch
  6715. // requests.
  6716. NullFields []string `json:"-"`
  6717. }
  6718. func (s *UpdateTableBorderPropertiesRequest) MarshalJSON() ([]byte, error) {
  6719. type NoMethod UpdateTableBorderPropertiesRequest
  6720. raw := NoMethod(*s)
  6721. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6722. }
  6723. // UpdateTableCellPropertiesRequest: Update the properties of a
  6724. // TableCell.
  6725. type UpdateTableCellPropertiesRequest struct {
  6726. // Fields: The fields that should be updated.
  6727. //
  6728. // At least one field must be specified. The root `tableCellProperties`
  6729. // is
  6730. // implied and should not be specified. A single "*" can be used
  6731. // as
  6732. // short-hand for listing every field.
  6733. //
  6734. // For example to update the table cell background solid fill color,
  6735. // set
  6736. // `fields` to "tableCellBackgroundFill.solidFill.color".
  6737. //
  6738. // To reset a property to its default value, include its field name in
  6739. // the
  6740. // field mask but leave the field itself unset.
  6741. Fields string `json:"fields,omitempty"`
  6742. // ObjectId: The object ID of the table.
  6743. ObjectId string `json:"objectId,omitempty"`
  6744. // TableCellProperties: The table cell properties to update.
  6745. TableCellProperties *TableCellProperties `json:"tableCellProperties,omitempty"`
  6746. // TableRange: The table range representing the subset of the table to
  6747. // which the updates
  6748. // are applied. If a table range is not specified, the updates will
  6749. // apply to
  6750. // the entire table.
  6751. TableRange *TableRange `json:"tableRange,omitempty"`
  6752. // ForceSendFields is a list of field names (e.g. "Fields") to
  6753. // unconditionally include in API requests. By default, fields with
  6754. // empty values are omitted from API requests. However, any non-pointer,
  6755. // non-interface field appearing in ForceSendFields will be sent to the
  6756. // server regardless of whether the field is empty or not. This may be
  6757. // used to include empty fields in Patch requests.
  6758. ForceSendFields []string `json:"-"`
  6759. // NullFields is a list of field names (e.g. "Fields") to include in API
  6760. // requests with the JSON null value. By default, fields with empty
  6761. // values are omitted from API requests. However, any field with an
  6762. // empty value appearing in NullFields will be sent to the server as
  6763. // null. It is an error if a field in this list has a non-empty value.
  6764. // This may be used to include null fields in Patch requests.
  6765. NullFields []string `json:"-"`
  6766. }
  6767. func (s *UpdateTableCellPropertiesRequest) MarshalJSON() ([]byte, error) {
  6768. type NoMethod UpdateTableCellPropertiesRequest
  6769. raw := NoMethod(*s)
  6770. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6771. }
  6772. // UpdateTableColumnPropertiesRequest: Updates the properties of a Table
  6773. // column.
  6774. type UpdateTableColumnPropertiesRequest struct {
  6775. // ColumnIndices: The list of zero-based indices specifying which
  6776. // columns to update. If no
  6777. // indices are provided, all columns in the table will be updated.
  6778. ColumnIndices []int64 `json:"columnIndices,omitempty"`
  6779. // Fields: The fields that should be updated.
  6780. //
  6781. // At least one field must be specified. The root
  6782. // `tableColumnProperties` is
  6783. // implied and should not be specified. A single "*" can be used
  6784. // as
  6785. // short-hand for listing every field.
  6786. //
  6787. // For example to update the column width, set `fields` to
  6788. // "column_width".
  6789. //
  6790. // If '"column_width"' is included in the field mask but the property is
  6791. // left
  6792. // unset, the column width will default to 406,400 EMU (32 points).
  6793. Fields string `json:"fields,omitempty"`
  6794. // ObjectId: The object ID of the table.
  6795. ObjectId string `json:"objectId,omitempty"`
  6796. // TableColumnProperties: The table column properties to update.
  6797. //
  6798. // If the value of `table_column_properties#column_width` in the request
  6799. // is
  6800. // less than 406,400 EMU (32 points), a 400 bad request error is
  6801. // returned.
  6802. TableColumnProperties *TableColumnProperties `json:"tableColumnProperties,omitempty"`
  6803. // ForceSendFields is a list of field names (e.g. "ColumnIndices") to
  6804. // unconditionally include in API requests. By default, fields with
  6805. // empty values are omitted from API requests. However, any non-pointer,
  6806. // non-interface field appearing in ForceSendFields will be sent to the
  6807. // server regardless of whether the field is empty or not. This may be
  6808. // used to include empty fields in Patch requests.
  6809. ForceSendFields []string `json:"-"`
  6810. // NullFields is a list of field names (e.g. "ColumnIndices") to include
  6811. // in API requests with the JSON null value. By default, fields with
  6812. // empty values are omitted from API requests. However, any field with
  6813. // an empty value appearing in NullFields will be sent to the server as
  6814. // null. It is an error if a field in this list has a non-empty value.
  6815. // This may be used to include null fields in Patch requests.
  6816. NullFields []string `json:"-"`
  6817. }
  6818. func (s *UpdateTableColumnPropertiesRequest) MarshalJSON() ([]byte, error) {
  6819. type NoMethod UpdateTableColumnPropertiesRequest
  6820. raw := NoMethod(*s)
  6821. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6822. }
  6823. // UpdateTableRowPropertiesRequest: Updates the properties of a Table
  6824. // row.
  6825. type UpdateTableRowPropertiesRequest struct {
  6826. // Fields: The fields that should be updated.
  6827. //
  6828. // At least one field must be specified. The root `tableRowProperties`
  6829. // is
  6830. // implied and should not be specified. A single "*" can be used
  6831. // as
  6832. // short-hand for listing every field.
  6833. //
  6834. // For example to update the minimum row height, set `fields`
  6835. // to
  6836. // "min_row_height".
  6837. //
  6838. // If '"min_row_height"' is included in the field mask but the property
  6839. // is
  6840. // left unset, the minimum row height will default to 0.
  6841. Fields string `json:"fields,omitempty"`
  6842. // ObjectId: The object ID of the table.
  6843. ObjectId string `json:"objectId,omitempty"`
  6844. // RowIndices: The list of zero-based indices specifying which rows to
  6845. // update. If no
  6846. // indices are provided, all rows in the table will be updated.
  6847. RowIndices []int64 `json:"rowIndices,omitempty"`
  6848. // TableRowProperties: The table row properties to update.
  6849. TableRowProperties *TableRowProperties `json:"tableRowProperties,omitempty"`
  6850. // ForceSendFields is a list of field names (e.g. "Fields") to
  6851. // unconditionally include in API requests. By default, fields with
  6852. // empty values are omitted from API requests. However, any non-pointer,
  6853. // non-interface field appearing in ForceSendFields will be sent to the
  6854. // server regardless of whether the field is empty or not. This may be
  6855. // used to include empty fields in Patch requests.
  6856. ForceSendFields []string `json:"-"`
  6857. // NullFields is a list of field names (e.g. "Fields") to include in API
  6858. // requests with the JSON null value. By default, fields with empty
  6859. // values are omitted from API requests. However, any field with an
  6860. // empty value appearing in NullFields will be sent to the server as
  6861. // null. It is an error if a field in this list has a non-empty value.
  6862. // This may be used to include null fields in Patch requests.
  6863. NullFields []string `json:"-"`
  6864. }
  6865. func (s *UpdateTableRowPropertiesRequest) MarshalJSON() ([]byte, error) {
  6866. type NoMethod UpdateTableRowPropertiesRequest
  6867. raw := NoMethod(*s)
  6868. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6869. }
  6870. // UpdateTextStyleRequest: Update the styling of text in a Shape
  6871. // or
  6872. // Table.
  6873. type UpdateTextStyleRequest struct {
  6874. // CellLocation: The location of the cell in the table containing the
  6875. // text to style. If
  6876. // `object_id` refers to a table, `cell_location` must have a
  6877. // value.
  6878. // Otherwise, it must not.
  6879. CellLocation *TableCellLocation `json:"cellLocation,omitempty"`
  6880. // Fields: The fields that should be updated.
  6881. //
  6882. // At least one field must be specified. The root `style` is implied
  6883. // and
  6884. // should not be specified. A single "*" can be used as short-hand
  6885. // for
  6886. // listing every field.
  6887. //
  6888. // For example, to update the text style to bold, set `fields` to
  6889. // "bold".
  6890. //
  6891. // To reset a property to its default value, include its field name in
  6892. // the
  6893. // field mask but leave the field itself unset.
  6894. Fields string `json:"fields,omitempty"`
  6895. // ObjectId: The object ID of the shape or table with the text to be
  6896. // styled.
  6897. ObjectId string `json:"objectId,omitempty"`
  6898. // Style: The style(s) to set on the text.
  6899. //
  6900. // If the value for a particular style matches that of the parent, that
  6901. // style
  6902. // will be set to inherit.
  6903. //
  6904. // Certain text style changes may cause other changes meant to mirror
  6905. // the
  6906. // behavior of the Slides editor. See the documentation of
  6907. // TextStyle for more information.
  6908. Style *TextStyle `json:"style,omitempty"`
  6909. // TextRange: The range of text to style.
  6910. //
  6911. // The range may be extended to include adjacent newlines.
  6912. //
  6913. // If the range fully contains a paragraph belonging to a list,
  6914. // the
  6915. // paragraph's bullet is also updated with the matching text style.
  6916. TextRange *Range `json:"textRange,omitempty"`
  6917. // ForceSendFields is a list of field names (e.g. "CellLocation") to
  6918. // unconditionally include in API requests. By default, fields with
  6919. // empty values are omitted from API requests. However, any non-pointer,
  6920. // non-interface field appearing in ForceSendFields will be sent to the
  6921. // server regardless of whether the field is empty or not. This may be
  6922. // used to include empty fields in Patch requests.
  6923. ForceSendFields []string `json:"-"`
  6924. // NullFields is a list of field names (e.g. "CellLocation") to include
  6925. // in API requests with the JSON null value. By default, fields with
  6926. // empty values are omitted from API requests. However, any field with
  6927. // an empty value appearing in NullFields will be sent to the server as
  6928. // null. It is an error if a field in this list has a non-empty value.
  6929. // This may be used to include null fields in Patch requests.
  6930. NullFields []string `json:"-"`
  6931. }
  6932. func (s *UpdateTextStyleRequest) MarshalJSON() ([]byte, error) {
  6933. type NoMethod UpdateTextStyleRequest
  6934. raw := NoMethod(*s)
  6935. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6936. }
  6937. // UpdateVideoPropertiesRequest: Update the properties of a Video.
  6938. type UpdateVideoPropertiesRequest struct {
  6939. // Fields: The fields that should be updated.
  6940. //
  6941. // At least one field must be specified. The root `videoProperties`
  6942. // is
  6943. // implied and should not be specified. A single "*" can be used
  6944. // as
  6945. // short-hand for listing every field.
  6946. //
  6947. // For example to update the video outline color, set `fields`
  6948. // to
  6949. // "outline.outlineFill.solidFill.color".
  6950. //
  6951. // To reset a property to its default value, include its field name in
  6952. // the
  6953. // field mask but leave the field itself unset.
  6954. Fields string `json:"fields,omitempty"`
  6955. // ObjectId: The object ID of the video the updates are applied to.
  6956. ObjectId string `json:"objectId,omitempty"`
  6957. // VideoProperties: The video properties to update.
  6958. VideoProperties *VideoProperties `json:"videoProperties,omitempty"`
  6959. // ForceSendFields is a list of field names (e.g. "Fields") to
  6960. // unconditionally include in API requests. By default, fields with
  6961. // empty values are omitted from API requests. However, any non-pointer,
  6962. // non-interface field appearing in ForceSendFields will be sent to the
  6963. // server regardless of whether the field is empty or not. This may be
  6964. // used to include empty fields in Patch requests.
  6965. ForceSendFields []string `json:"-"`
  6966. // NullFields is a list of field names (e.g. "Fields") to include in API
  6967. // requests with the JSON null value. By default, fields with empty
  6968. // values are omitted from API requests. However, any field with an
  6969. // empty value appearing in NullFields will be sent to the server as
  6970. // null. It is an error if a field in this list has a non-empty value.
  6971. // This may be used to include null fields in Patch requests.
  6972. NullFields []string `json:"-"`
  6973. }
  6974. func (s *UpdateVideoPropertiesRequest) MarshalJSON() ([]byte, error) {
  6975. type NoMethod UpdateVideoPropertiesRequest
  6976. raw := NoMethod(*s)
  6977. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  6978. }
  6979. // Video: A PageElement kind representing a
  6980. // video.
  6981. type Video struct {
  6982. // Id: The video source's unique identifier for this video.
  6983. Id string `json:"id,omitempty"`
  6984. // Source: The video source.
  6985. //
  6986. // Possible values:
  6987. // "SOURCE_UNSPECIFIED" - The video source is unspecified.
  6988. // "YOUTUBE" - The video source is YouTube.
  6989. // "DRIVE" - The video source is Google Drive.
  6990. Source string `json:"source,omitempty"`
  6991. // Url: An URL to a video. The URL is valid as long as the source video
  6992. // exists and
  6993. // sharing settings do not change.
  6994. Url string `json:"url,omitempty"`
  6995. // VideoProperties: The properties of the video.
  6996. VideoProperties *VideoProperties `json:"videoProperties,omitempty"`
  6997. // ForceSendFields is a list of field names (e.g. "Id") to
  6998. // unconditionally include in API requests. By default, fields with
  6999. // empty values are omitted from API requests. However, any non-pointer,
  7000. // non-interface field appearing in ForceSendFields will be sent to the
  7001. // server regardless of whether the field is empty or not. This may be
  7002. // used to include empty fields in Patch requests.
  7003. ForceSendFields []string `json:"-"`
  7004. // NullFields is a list of field names (e.g. "Id") to include in API
  7005. // requests with the JSON null value. By default, fields with empty
  7006. // values are omitted from API requests. However, any field with an
  7007. // empty value appearing in NullFields will be sent to the server as
  7008. // null. It is an error if a field in this list has a non-empty value.
  7009. // This may be used to include null fields in Patch requests.
  7010. NullFields []string `json:"-"`
  7011. }
  7012. func (s *Video) MarshalJSON() ([]byte, error) {
  7013. type NoMethod Video
  7014. raw := NoMethod(*s)
  7015. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  7016. }
  7017. // VideoProperties: The properties of the Video.
  7018. type VideoProperties struct {
  7019. // AutoPlay: Whether to enable video autoplay when the page is displayed
  7020. // in present
  7021. // mode. Defaults to false.
  7022. AutoPlay bool `json:"autoPlay,omitempty"`
  7023. // End: The time at which to end playback, measured in seconds from the
  7024. // beginning
  7025. // of the video.
  7026. // If set, the end time should be after the start time.
  7027. // If not set or if you set this to a value that exceeds the video's
  7028. // length,
  7029. // the video will be played until its end.
  7030. End int64 `json:"end,omitempty"`
  7031. // Mute: Whether to mute the audio during video playback. Defaults to
  7032. // false.
  7033. Mute bool `json:"mute,omitempty"`
  7034. // Outline: The outline of the video. The default outline matches the
  7035. // defaults for new
  7036. // videos created in the Slides editor.
  7037. Outline *Outline `json:"outline,omitempty"`
  7038. // Start: The time at which to start playback, measured in seconds from
  7039. // the beginning
  7040. // of the video.
  7041. // If set, the start time should be before the end time.
  7042. // If you set this to a value that exceeds the video's length in
  7043. // seconds, the
  7044. // video will be played from the last second.
  7045. // If not set, the video will be played from the beginning.
  7046. Start int64 `json:"start,omitempty"`
  7047. // ForceSendFields is a list of field names (e.g. "AutoPlay") to
  7048. // unconditionally include in API requests. By default, fields with
  7049. // empty values are omitted from API requests. However, any non-pointer,
  7050. // non-interface field appearing in ForceSendFields will be sent to the
  7051. // server regardless of whether the field is empty or not. This may be
  7052. // used to include empty fields in Patch requests.
  7053. ForceSendFields []string `json:"-"`
  7054. // NullFields is a list of field names (e.g. "AutoPlay") to include in
  7055. // API requests with the JSON null value. By default, fields with empty
  7056. // values are omitted from API requests. However, any field with an
  7057. // empty value appearing in NullFields will be sent to the server as
  7058. // null. It is an error if a field in this list has a non-empty value.
  7059. // This may be used to include null fields in Patch requests.
  7060. NullFields []string `json:"-"`
  7061. }
  7062. func (s *VideoProperties) MarshalJSON() ([]byte, error) {
  7063. type NoMethod VideoProperties
  7064. raw := NoMethod(*s)
  7065. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  7066. }
  7067. // WeightedFontFamily: Represents a font family and weight used to style
  7068. // a TextRun.
  7069. type WeightedFontFamily struct {
  7070. // FontFamily: The font family of the text.
  7071. //
  7072. // The font family can be any font from the Font menu in Slides or
  7073. // from
  7074. // [Google Fonts] (https://fonts.google.com/). If the font name
  7075. // is
  7076. // unrecognized, the text is rendered in `Arial`.
  7077. FontFamily string `json:"fontFamily,omitempty"`
  7078. // Weight: The rendered weight of the text. This field can have any
  7079. // value that is a
  7080. // multiple of `100` between `100` and `900`, inclusive. This
  7081. // range
  7082. // corresponds to the numerical values described in the CSS
  7083. // 2.1
  7084. // Specification,
  7085. // [section
  7086. // 15.6](https://www.w3.org/TR/CSS21/fonts.html#font-boldness),
  7087. // with non-numerical values disallowed. Weights greater than or equal
  7088. // to
  7089. // `700` are considered bold, and weights less than `700`are not bold.
  7090. // The
  7091. // default value is `400` ("normal").
  7092. Weight int64 `json:"weight,omitempty"`
  7093. // ForceSendFields is a list of field names (e.g. "FontFamily") to
  7094. // unconditionally include in API requests. By default, fields with
  7095. // empty values are omitted from API requests. However, any non-pointer,
  7096. // non-interface field appearing in ForceSendFields will be sent to the
  7097. // server regardless of whether the field is empty or not. This may be
  7098. // used to include empty fields in Patch requests.
  7099. ForceSendFields []string `json:"-"`
  7100. // NullFields is a list of field names (e.g. "FontFamily") to include in
  7101. // API requests with the JSON null value. By default, fields with empty
  7102. // values are omitted from API requests. However, any field with an
  7103. // empty value appearing in NullFields will be sent to the server as
  7104. // null. It is an error if a field in this list has a non-empty value.
  7105. // This may be used to include null fields in Patch requests.
  7106. NullFields []string `json:"-"`
  7107. }
  7108. func (s *WeightedFontFamily) MarshalJSON() ([]byte, error) {
  7109. type NoMethod WeightedFontFamily
  7110. raw := NoMethod(*s)
  7111. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  7112. }
  7113. // WordArt: A PageElement kind representing
  7114. // word art.
  7115. type WordArt struct {
  7116. // RenderedText: The text rendered as word art.
  7117. RenderedText string `json:"renderedText,omitempty"`
  7118. // ForceSendFields is a list of field names (e.g. "RenderedText") to
  7119. // unconditionally include in API requests. By default, fields with
  7120. // empty values are omitted from API requests. However, any non-pointer,
  7121. // non-interface field appearing in ForceSendFields will be sent to the
  7122. // server regardless of whether the field is empty or not. This may be
  7123. // used to include empty fields in Patch requests.
  7124. ForceSendFields []string `json:"-"`
  7125. // NullFields is a list of field names (e.g. "RenderedText") to include
  7126. // in API requests with the JSON null value. By default, fields with
  7127. // empty values are omitted from API requests. However, any field with
  7128. // an empty value appearing in NullFields will be sent to the server as
  7129. // null. It is an error if a field in this list has a non-empty value.
  7130. // This may be used to include null fields in Patch requests.
  7131. NullFields []string `json:"-"`
  7132. }
  7133. func (s *WordArt) MarshalJSON() ([]byte, error) {
  7134. type NoMethod WordArt
  7135. raw := NoMethod(*s)
  7136. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  7137. }
  7138. // WriteControl: Provides control over how write requests are executed.
  7139. type WriteControl struct {
  7140. // RequiredRevisionId: The revision ID of the presentation required for
  7141. // the write request. If
  7142. // specified and the `required_revision_id` doesn't exactly match
  7143. // the
  7144. // presentation's current `revision_id`, the request will not be
  7145. // processed and
  7146. // will return a 400 bad request error.
  7147. RequiredRevisionId string `json:"requiredRevisionId,omitempty"`
  7148. // ForceSendFields is a list of field names (e.g. "RequiredRevisionId")
  7149. // to unconditionally include in API requests. By default, fields with
  7150. // empty values are omitted from API requests. However, any non-pointer,
  7151. // non-interface field appearing in ForceSendFields will be sent to the
  7152. // server regardless of whether the field is empty or not. This may be
  7153. // used to include empty fields in Patch requests.
  7154. ForceSendFields []string `json:"-"`
  7155. // NullFields is a list of field names (e.g. "RequiredRevisionId") to
  7156. // include in API requests with the JSON null value. By default, fields
  7157. // with empty values are omitted from API requests. However, any field
  7158. // with an empty value appearing in NullFields will be sent to the
  7159. // server as null. It is an error if a field in this list has a
  7160. // non-empty value. This may be used to include null fields in Patch
  7161. // requests.
  7162. NullFields []string `json:"-"`
  7163. }
  7164. func (s *WriteControl) MarshalJSON() ([]byte, error) {
  7165. type NoMethod WriteControl
  7166. raw := NoMethod(*s)
  7167. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  7168. }
  7169. // method id "slides.presentations.batchUpdate":
  7170. type PresentationsBatchUpdateCall struct {
  7171. s *Service
  7172. presentationId string
  7173. batchupdatepresentationrequest *BatchUpdatePresentationRequest
  7174. urlParams_ gensupport.URLParams
  7175. ctx_ context.Context
  7176. header_ http.Header
  7177. }
  7178. // BatchUpdate: Applies one or more updates to the presentation.
  7179. //
  7180. // Each request is validated before
  7181. // being applied. If any request is not valid, then the entire request
  7182. // will
  7183. // fail and nothing will be applied.
  7184. //
  7185. // Some requests have replies to
  7186. // give you some information about how they are applied. Other requests
  7187. // do
  7188. // not need to return information; these each return an empty reply.
  7189. // The order of replies matches that of the requests.
  7190. //
  7191. // For example, suppose you call batchUpdate with four updates, and only
  7192. // the
  7193. // third one returns information. The response would have two empty
  7194. // replies:
  7195. // the reply to the third request, and another empty reply, in that
  7196. // order.
  7197. //
  7198. // Because other users may be editing the presentation, the
  7199. // presentation
  7200. // might not exactly reflect your changes: your changes may
  7201. // be altered with respect to collaborator changes. If there are
  7202. // no
  7203. // collaborators, the presentation should reflect your changes. In any
  7204. // case,
  7205. // the updates in your request are guaranteed to be applied
  7206. // together
  7207. // atomically.
  7208. func (r *PresentationsService) BatchUpdate(presentationId string, batchupdatepresentationrequest *BatchUpdatePresentationRequest) *PresentationsBatchUpdateCall {
  7209. c := &PresentationsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7210. c.presentationId = presentationId
  7211. c.batchupdatepresentationrequest = batchupdatepresentationrequest
  7212. return c
  7213. }
  7214. // Fields allows partial responses to be retrieved. See
  7215. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7216. // for more information.
  7217. func (c *PresentationsBatchUpdateCall) Fields(s ...googleapi.Field) *PresentationsBatchUpdateCall {
  7218. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7219. return c
  7220. }
  7221. // Context sets the context to be used in this call's Do method. Any
  7222. // pending HTTP request will be aborted if the provided context is
  7223. // canceled.
  7224. func (c *PresentationsBatchUpdateCall) Context(ctx context.Context) *PresentationsBatchUpdateCall {
  7225. c.ctx_ = ctx
  7226. return c
  7227. }
  7228. // Header returns an http.Header that can be modified by the caller to
  7229. // add HTTP headers to the request.
  7230. func (c *PresentationsBatchUpdateCall) Header() http.Header {
  7231. if c.header_ == nil {
  7232. c.header_ = make(http.Header)
  7233. }
  7234. return c.header_
  7235. }
  7236. func (c *PresentationsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
  7237. reqHeaders := make(http.Header)
  7238. for k, v := range c.header_ {
  7239. reqHeaders[k] = v
  7240. }
  7241. reqHeaders.Set("User-Agent", c.s.userAgent())
  7242. var body io.Reader = nil
  7243. body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchupdatepresentationrequest)
  7244. if err != nil {
  7245. return nil, err
  7246. }
  7247. reqHeaders.Set("Content-Type", "application/json")
  7248. c.urlParams_.Set("alt", alt)
  7249. c.urlParams_.Set("prettyPrint", "false")
  7250. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations/{presentationId}:batchUpdate")
  7251. urls += "?" + c.urlParams_.Encode()
  7252. req, err := http.NewRequest("POST", urls, body)
  7253. if err != nil {
  7254. return nil, err
  7255. }
  7256. req.Header = reqHeaders
  7257. googleapi.Expand(req.URL, map[string]string{
  7258. "presentationId": c.presentationId,
  7259. })
  7260. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7261. }
  7262. // Do executes the "slides.presentations.batchUpdate" call.
  7263. // Exactly one of *BatchUpdatePresentationResponse or error will be
  7264. // non-nil. Any non-2xx status code is an error. Response headers are in
  7265. // either *BatchUpdatePresentationResponse.ServerResponse.Header or (if
  7266. // a response was returned at all) in error.(*googleapi.Error).Header.
  7267. // Use googleapi.IsNotModified to check whether the returned error was
  7268. // because http.StatusNotModified was returned.
  7269. func (c *PresentationsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdatePresentationResponse, error) {
  7270. gensupport.SetOptions(c.urlParams_, opts...)
  7271. res, err := c.doRequest("json")
  7272. if res != nil && res.StatusCode == http.StatusNotModified {
  7273. if res.Body != nil {
  7274. res.Body.Close()
  7275. }
  7276. return nil, &googleapi.Error{
  7277. Code: res.StatusCode,
  7278. Header: res.Header,
  7279. }
  7280. }
  7281. if err != nil {
  7282. return nil, err
  7283. }
  7284. defer googleapi.CloseBody(res)
  7285. if err := googleapi.CheckResponse(res); err != nil {
  7286. return nil, err
  7287. }
  7288. ret := &BatchUpdatePresentationResponse{
  7289. ServerResponse: googleapi.ServerResponse{
  7290. Header: res.Header,
  7291. HTTPStatusCode: res.StatusCode,
  7292. },
  7293. }
  7294. target := &ret
  7295. if err := gensupport.DecodeResponse(target, res); err != nil {
  7296. return nil, err
  7297. }
  7298. return ret, nil
  7299. // {
  7300. // "description": "Applies one or more updates to the presentation.\n\nEach request is validated before\nbeing applied. If any request is not valid, then the entire request will\nfail and nothing will be applied.\n\nSome requests have replies to\ngive you some information about how they are applied. Other requests do\nnot need to return information; these each return an empty reply.\nThe order of replies matches that of the requests.\n\nFor example, suppose you call batchUpdate with four updates, and only the\nthird one returns information. The response would have two empty replies:\nthe reply to the third request, and another empty reply, in that order.\n\nBecause other users may be editing the presentation, the presentation\nmight not exactly reflect your changes: your changes may\nbe altered with respect to collaborator changes. If there are no\ncollaborators, the presentation should reflect your changes. In any case,\nthe updates in your request are guaranteed to be applied together\natomically.",
  7301. // "flatPath": "v1/presentations/{presentationId}:batchUpdate",
  7302. // "httpMethod": "POST",
  7303. // "id": "slides.presentations.batchUpdate",
  7304. // "parameterOrder": [
  7305. // "presentationId"
  7306. // ],
  7307. // "parameters": {
  7308. // "presentationId": {
  7309. // "description": "The presentation to apply the updates to.",
  7310. // "location": "path",
  7311. // "required": true,
  7312. // "type": "string"
  7313. // }
  7314. // },
  7315. // "path": "v1/presentations/{presentationId}:batchUpdate",
  7316. // "request": {
  7317. // "$ref": "BatchUpdatePresentationRequest"
  7318. // },
  7319. // "response": {
  7320. // "$ref": "BatchUpdatePresentationResponse"
  7321. // },
  7322. // "scopes": [
  7323. // "https://www.googleapis.com/auth/drive",
  7324. // "https://www.googleapis.com/auth/drive.file",
  7325. // "https://www.googleapis.com/auth/drive.readonly",
  7326. // "https://www.googleapis.com/auth/presentations",
  7327. // "https://www.googleapis.com/auth/spreadsheets",
  7328. // "https://www.googleapis.com/auth/spreadsheets.readonly"
  7329. // ]
  7330. // }
  7331. }
  7332. // method id "slides.presentations.create":
  7333. type PresentationsCreateCall struct {
  7334. s *Service
  7335. presentation *Presentation
  7336. urlParams_ gensupport.URLParams
  7337. ctx_ context.Context
  7338. header_ http.Header
  7339. }
  7340. // Create: Creates a blank presentation using the title given in the
  7341. // request. If a
  7342. // `presentationId` is provided, it is used as the ID of the new
  7343. // presentation.
  7344. // Otherwise, a new ID is generated. Other fields in the request,
  7345. // including
  7346. // any provided content, are ignored.
  7347. // Returns the created presentation.
  7348. func (r *PresentationsService) Create(presentation *Presentation) *PresentationsCreateCall {
  7349. c := &PresentationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7350. c.presentation = presentation
  7351. return c
  7352. }
  7353. // Fields allows partial responses to be retrieved. See
  7354. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7355. // for more information.
  7356. func (c *PresentationsCreateCall) Fields(s ...googleapi.Field) *PresentationsCreateCall {
  7357. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7358. return c
  7359. }
  7360. // Context sets the context to be used in this call's Do method. Any
  7361. // pending HTTP request will be aborted if the provided context is
  7362. // canceled.
  7363. func (c *PresentationsCreateCall) Context(ctx context.Context) *PresentationsCreateCall {
  7364. c.ctx_ = ctx
  7365. return c
  7366. }
  7367. // Header returns an http.Header that can be modified by the caller to
  7368. // add HTTP headers to the request.
  7369. func (c *PresentationsCreateCall) Header() http.Header {
  7370. if c.header_ == nil {
  7371. c.header_ = make(http.Header)
  7372. }
  7373. return c.header_
  7374. }
  7375. func (c *PresentationsCreateCall) doRequest(alt string) (*http.Response, error) {
  7376. reqHeaders := make(http.Header)
  7377. for k, v := range c.header_ {
  7378. reqHeaders[k] = v
  7379. }
  7380. reqHeaders.Set("User-Agent", c.s.userAgent())
  7381. var body io.Reader = nil
  7382. body, err := googleapi.WithoutDataWrapper.JSONReader(c.presentation)
  7383. if err != nil {
  7384. return nil, err
  7385. }
  7386. reqHeaders.Set("Content-Type", "application/json")
  7387. c.urlParams_.Set("alt", alt)
  7388. c.urlParams_.Set("prettyPrint", "false")
  7389. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations")
  7390. urls += "?" + c.urlParams_.Encode()
  7391. req, err := http.NewRequest("POST", urls, body)
  7392. if err != nil {
  7393. return nil, err
  7394. }
  7395. req.Header = reqHeaders
  7396. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7397. }
  7398. // Do executes the "slides.presentations.create" call.
  7399. // Exactly one of *Presentation or error will be non-nil. Any non-2xx
  7400. // status code is an error. Response headers are in either
  7401. // *Presentation.ServerResponse.Header or (if a response was returned at
  7402. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  7403. // to check whether the returned error was because
  7404. // http.StatusNotModified was returned.
  7405. func (c *PresentationsCreateCall) Do(opts ...googleapi.CallOption) (*Presentation, error) {
  7406. gensupport.SetOptions(c.urlParams_, opts...)
  7407. res, err := c.doRequest("json")
  7408. if res != nil && res.StatusCode == http.StatusNotModified {
  7409. if res.Body != nil {
  7410. res.Body.Close()
  7411. }
  7412. return nil, &googleapi.Error{
  7413. Code: res.StatusCode,
  7414. Header: res.Header,
  7415. }
  7416. }
  7417. if err != nil {
  7418. return nil, err
  7419. }
  7420. defer googleapi.CloseBody(res)
  7421. if err := googleapi.CheckResponse(res); err != nil {
  7422. return nil, err
  7423. }
  7424. ret := &Presentation{
  7425. ServerResponse: googleapi.ServerResponse{
  7426. Header: res.Header,
  7427. HTTPStatusCode: res.StatusCode,
  7428. },
  7429. }
  7430. target := &ret
  7431. if err := gensupport.DecodeResponse(target, res); err != nil {
  7432. return nil, err
  7433. }
  7434. return ret, nil
  7435. // {
  7436. // "description": "Creates a blank presentation using the title given in the request. If a\n`presentationId` is provided, it is used as the ID of the new presentation.\nOtherwise, a new ID is generated. Other fields in the request, including\nany provided content, are ignored.\nReturns the created presentation.",
  7437. // "flatPath": "v1/presentations",
  7438. // "httpMethod": "POST",
  7439. // "id": "slides.presentations.create",
  7440. // "parameterOrder": [],
  7441. // "parameters": {},
  7442. // "path": "v1/presentations",
  7443. // "request": {
  7444. // "$ref": "Presentation"
  7445. // },
  7446. // "response": {
  7447. // "$ref": "Presentation"
  7448. // },
  7449. // "scopes": [
  7450. // "https://www.googleapis.com/auth/drive",
  7451. // "https://www.googleapis.com/auth/drive.file",
  7452. // "https://www.googleapis.com/auth/presentations"
  7453. // ]
  7454. // }
  7455. }
  7456. // method id "slides.presentations.get":
  7457. type PresentationsGetCall struct {
  7458. s *Service
  7459. presentationId string
  7460. urlParams_ gensupport.URLParams
  7461. ifNoneMatch_ string
  7462. ctx_ context.Context
  7463. header_ http.Header
  7464. }
  7465. // Get: Gets the latest version of the specified presentation.
  7466. func (r *PresentationsService) Get(presentationId string) *PresentationsGetCall {
  7467. c := &PresentationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7468. c.presentationId = presentationId
  7469. return c
  7470. }
  7471. // Fields allows partial responses to be retrieved. See
  7472. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7473. // for more information.
  7474. func (c *PresentationsGetCall) Fields(s ...googleapi.Field) *PresentationsGetCall {
  7475. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7476. return c
  7477. }
  7478. // IfNoneMatch sets the optional parameter which makes the operation
  7479. // fail if the object's ETag matches the given value. This is useful for
  7480. // getting updates only after the object has changed since the last
  7481. // request. Use googleapi.IsNotModified to check whether the response
  7482. // error from Do is the result of In-None-Match.
  7483. func (c *PresentationsGetCall) IfNoneMatch(entityTag string) *PresentationsGetCall {
  7484. c.ifNoneMatch_ = entityTag
  7485. return c
  7486. }
  7487. // Context sets the context to be used in this call's Do method. Any
  7488. // pending HTTP request will be aborted if the provided context is
  7489. // canceled.
  7490. func (c *PresentationsGetCall) Context(ctx context.Context) *PresentationsGetCall {
  7491. c.ctx_ = ctx
  7492. return c
  7493. }
  7494. // Header returns an http.Header that can be modified by the caller to
  7495. // add HTTP headers to the request.
  7496. func (c *PresentationsGetCall) Header() http.Header {
  7497. if c.header_ == nil {
  7498. c.header_ = make(http.Header)
  7499. }
  7500. return c.header_
  7501. }
  7502. func (c *PresentationsGetCall) doRequest(alt string) (*http.Response, error) {
  7503. reqHeaders := make(http.Header)
  7504. for k, v := range c.header_ {
  7505. reqHeaders[k] = v
  7506. }
  7507. reqHeaders.Set("User-Agent", c.s.userAgent())
  7508. if c.ifNoneMatch_ != "" {
  7509. reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7510. }
  7511. var body io.Reader = nil
  7512. c.urlParams_.Set("alt", alt)
  7513. c.urlParams_.Set("prettyPrint", "false")
  7514. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations/{+presentationId}")
  7515. urls += "?" + c.urlParams_.Encode()
  7516. req, err := http.NewRequest("GET", urls, body)
  7517. if err != nil {
  7518. return nil, err
  7519. }
  7520. req.Header = reqHeaders
  7521. googleapi.Expand(req.URL, map[string]string{
  7522. "presentationId": c.presentationId,
  7523. })
  7524. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7525. }
  7526. // Do executes the "slides.presentations.get" call.
  7527. // Exactly one of *Presentation or error will be non-nil. Any non-2xx
  7528. // status code is an error. Response headers are in either
  7529. // *Presentation.ServerResponse.Header or (if a response was returned at
  7530. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  7531. // to check whether the returned error was because
  7532. // http.StatusNotModified was returned.
  7533. func (c *PresentationsGetCall) Do(opts ...googleapi.CallOption) (*Presentation, error) {
  7534. gensupport.SetOptions(c.urlParams_, opts...)
  7535. res, err := c.doRequest("json")
  7536. if res != nil && res.StatusCode == http.StatusNotModified {
  7537. if res.Body != nil {
  7538. res.Body.Close()
  7539. }
  7540. return nil, &googleapi.Error{
  7541. Code: res.StatusCode,
  7542. Header: res.Header,
  7543. }
  7544. }
  7545. if err != nil {
  7546. return nil, err
  7547. }
  7548. defer googleapi.CloseBody(res)
  7549. if err := googleapi.CheckResponse(res); err != nil {
  7550. return nil, err
  7551. }
  7552. ret := &Presentation{
  7553. ServerResponse: googleapi.ServerResponse{
  7554. Header: res.Header,
  7555. HTTPStatusCode: res.StatusCode,
  7556. },
  7557. }
  7558. target := &ret
  7559. if err := gensupport.DecodeResponse(target, res); err != nil {
  7560. return nil, err
  7561. }
  7562. return ret, nil
  7563. // {
  7564. // "description": "Gets the latest version of the specified presentation.",
  7565. // "flatPath": "v1/presentations/{presentationsId}",
  7566. // "httpMethod": "GET",
  7567. // "id": "slides.presentations.get",
  7568. // "parameterOrder": [
  7569. // "presentationId"
  7570. // ],
  7571. // "parameters": {
  7572. // "presentationId": {
  7573. // "description": "The ID of the presentation to retrieve.",
  7574. // "location": "path",
  7575. // "pattern": "^[^/]+$",
  7576. // "required": true,
  7577. // "type": "string"
  7578. // }
  7579. // },
  7580. // "path": "v1/presentations/{+presentationId}",
  7581. // "response": {
  7582. // "$ref": "Presentation"
  7583. // },
  7584. // "scopes": [
  7585. // "https://www.googleapis.com/auth/drive",
  7586. // "https://www.googleapis.com/auth/drive.file",
  7587. // "https://www.googleapis.com/auth/drive.readonly",
  7588. // "https://www.googleapis.com/auth/presentations",
  7589. // "https://www.googleapis.com/auth/presentations.readonly"
  7590. // ]
  7591. // }
  7592. }
  7593. // method id "slides.presentations.pages.get":
  7594. type PresentationsPagesGetCall struct {
  7595. s *Service
  7596. presentationId string
  7597. pageObjectId string
  7598. urlParams_ gensupport.URLParams
  7599. ifNoneMatch_ string
  7600. ctx_ context.Context
  7601. header_ http.Header
  7602. }
  7603. // Get: Gets the latest version of the specified page in the
  7604. // presentation.
  7605. func (r *PresentationsPagesService) Get(presentationId string, pageObjectId string) *PresentationsPagesGetCall {
  7606. c := &PresentationsPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7607. c.presentationId = presentationId
  7608. c.pageObjectId = pageObjectId
  7609. return c
  7610. }
  7611. // Fields allows partial responses to be retrieved. See
  7612. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7613. // for more information.
  7614. func (c *PresentationsPagesGetCall) Fields(s ...googleapi.Field) *PresentationsPagesGetCall {
  7615. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7616. return c
  7617. }
  7618. // IfNoneMatch sets the optional parameter which makes the operation
  7619. // fail if the object's ETag matches the given value. This is useful for
  7620. // getting updates only after the object has changed since the last
  7621. // request. Use googleapi.IsNotModified to check whether the response
  7622. // error from Do is the result of In-None-Match.
  7623. func (c *PresentationsPagesGetCall) IfNoneMatch(entityTag string) *PresentationsPagesGetCall {
  7624. c.ifNoneMatch_ = entityTag
  7625. return c
  7626. }
  7627. // Context sets the context to be used in this call's Do method. Any
  7628. // pending HTTP request will be aborted if the provided context is
  7629. // canceled.
  7630. func (c *PresentationsPagesGetCall) Context(ctx context.Context) *PresentationsPagesGetCall {
  7631. c.ctx_ = ctx
  7632. return c
  7633. }
  7634. // Header returns an http.Header that can be modified by the caller to
  7635. // add HTTP headers to the request.
  7636. func (c *PresentationsPagesGetCall) Header() http.Header {
  7637. if c.header_ == nil {
  7638. c.header_ = make(http.Header)
  7639. }
  7640. return c.header_
  7641. }
  7642. func (c *PresentationsPagesGetCall) doRequest(alt string) (*http.Response, error) {
  7643. reqHeaders := make(http.Header)
  7644. for k, v := range c.header_ {
  7645. reqHeaders[k] = v
  7646. }
  7647. reqHeaders.Set("User-Agent", c.s.userAgent())
  7648. if c.ifNoneMatch_ != "" {
  7649. reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7650. }
  7651. var body io.Reader = nil
  7652. c.urlParams_.Set("alt", alt)
  7653. c.urlParams_.Set("prettyPrint", "false")
  7654. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations/{presentationId}/pages/{pageObjectId}")
  7655. urls += "?" + c.urlParams_.Encode()
  7656. req, err := http.NewRequest("GET", urls, body)
  7657. if err != nil {
  7658. return nil, err
  7659. }
  7660. req.Header = reqHeaders
  7661. googleapi.Expand(req.URL, map[string]string{
  7662. "presentationId": c.presentationId,
  7663. "pageObjectId": c.pageObjectId,
  7664. })
  7665. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7666. }
  7667. // Do executes the "slides.presentations.pages.get" call.
  7668. // Exactly one of *Page or error will be non-nil. Any non-2xx status
  7669. // code is an error. Response headers are in either
  7670. // *Page.ServerResponse.Header or (if a response was returned at all) in
  7671. // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7672. // whether the returned error was because http.StatusNotModified was
  7673. // returned.
  7674. func (c *PresentationsPagesGetCall) Do(opts ...googleapi.CallOption) (*Page, error) {
  7675. gensupport.SetOptions(c.urlParams_, opts...)
  7676. res, err := c.doRequest("json")
  7677. if res != nil && res.StatusCode == http.StatusNotModified {
  7678. if res.Body != nil {
  7679. res.Body.Close()
  7680. }
  7681. return nil, &googleapi.Error{
  7682. Code: res.StatusCode,
  7683. Header: res.Header,
  7684. }
  7685. }
  7686. if err != nil {
  7687. return nil, err
  7688. }
  7689. defer googleapi.CloseBody(res)
  7690. if err := googleapi.CheckResponse(res); err != nil {
  7691. return nil, err
  7692. }
  7693. ret := &Page{
  7694. ServerResponse: googleapi.ServerResponse{
  7695. Header: res.Header,
  7696. HTTPStatusCode: res.StatusCode,
  7697. },
  7698. }
  7699. target := &ret
  7700. if err := gensupport.DecodeResponse(target, res); err != nil {
  7701. return nil, err
  7702. }
  7703. return ret, nil
  7704. // {
  7705. // "description": "Gets the latest version of the specified page in the presentation.",
  7706. // "flatPath": "v1/presentations/{presentationId}/pages/{pageObjectId}",
  7707. // "httpMethod": "GET",
  7708. // "id": "slides.presentations.pages.get",
  7709. // "parameterOrder": [
  7710. // "presentationId",
  7711. // "pageObjectId"
  7712. // ],
  7713. // "parameters": {
  7714. // "pageObjectId": {
  7715. // "description": "The object ID of the page to retrieve.",
  7716. // "location": "path",
  7717. // "required": true,
  7718. // "type": "string"
  7719. // },
  7720. // "presentationId": {
  7721. // "description": "The ID of the presentation to retrieve.",
  7722. // "location": "path",
  7723. // "required": true,
  7724. // "type": "string"
  7725. // }
  7726. // },
  7727. // "path": "v1/presentations/{presentationId}/pages/{pageObjectId}",
  7728. // "response": {
  7729. // "$ref": "Page"
  7730. // },
  7731. // "scopes": [
  7732. // "https://www.googleapis.com/auth/drive",
  7733. // "https://www.googleapis.com/auth/drive.file",
  7734. // "https://www.googleapis.com/auth/drive.readonly",
  7735. // "https://www.googleapis.com/auth/presentations",
  7736. // "https://www.googleapis.com/auth/presentations.readonly"
  7737. // ]
  7738. // }
  7739. }
  7740. // method id "slides.presentations.pages.getThumbnail":
  7741. type PresentationsPagesGetThumbnailCall struct {
  7742. s *Service
  7743. presentationId string
  7744. pageObjectId string
  7745. urlParams_ gensupport.URLParams
  7746. ifNoneMatch_ string
  7747. ctx_ context.Context
  7748. header_ http.Header
  7749. }
  7750. // GetThumbnail: Generates a thumbnail of the latest version of the
  7751. // specified page in the
  7752. // presentation and returns a URL to the thumbnail image.
  7753. //
  7754. // This request counts as an [expensive read request](/slides/limits)
  7755. // for
  7756. // quota purposes.
  7757. func (r *PresentationsPagesService) GetThumbnail(presentationId string, pageObjectId string) *PresentationsPagesGetThumbnailCall {
  7758. c := &PresentationsPagesGetThumbnailCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7759. c.presentationId = presentationId
  7760. c.pageObjectId = pageObjectId
  7761. return c
  7762. }
  7763. // ThumbnailPropertiesMimeType sets the optional parameter
  7764. // "thumbnailProperties.mimeType": The optional mime type of the
  7765. // thumbnail image.
  7766. //
  7767. // If you don't specify the mime type, the default mime type will be
  7768. // PNG.
  7769. //
  7770. // Possible values:
  7771. // "PNG"
  7772. func (c *PresentationsPagesGetThumbnailCall) ThumbnailPropertiesMimeType(thumbnailPropertiesMimeType string) *PresentationsPagesGetThumbnailCall {
  7773. c.urlParams_.Set("thumbnailProperties.mimeType", thumbnailPropertiesMimeType)
  7774. return c
  7775. }
  7776. // ThumbnailPropertiesThumbnailSize sets the optional parameter
  7777. // "thumbnailProperties.thumbnailSize": The optional thumbnail image
  7778. // size.
  7779. //
  7780. // If you don't specify the size, the server chooses a default size of
  7781. // the
  7782. // image.
  7783. //
  7784. // Possible values:
  7785. // "THUMBNAIL_SIZE_UNSPECIFIED"
  7786. // "LARGE"
  7787. // "MEDIUM"
  7788. // "SMALL"
  7789. func (c *PresentationsPagesGetThumbnailCall) ThumbnailPropertiesThumbnailSize(thumbnailPropertiesThumbnailSize string) *PresentationsPagesGetThumbnailCall {
  7790. c.urlParams_.Set("thumbnailProperties.thumbnailSize", thumbnailPropertiesThumbnailSize)
  7791. return c
  7792. }
  7793. // Fields allows partial responses to be retrieved. See
  7794. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7795. // for more information.
  7796. func (c *PresentationsPagesGetThumbnailCall) Fields(s ...googleapi.Field) *PresentationsPagesGetThumbnailCall {
  7797. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7798. return c
  7799. }
  7800. // IfNoneMatch sets the optional parameter which makes the operation
  7801. // fail if the object's ETag matches the given value. This is useful for
  7802. // getting updates only after the object has changed since the last
  7803. // request. Use googleapi.IsNotModified to check whether the response
  7804. // error from Do is the result of In-None-Match.
  7805. func (c *PresentationsPagesGetThumbnailCall) IfNoneMatch(entityTag string) *PresentationsPagesGetThumbnailCall {
  7806. c.ifNoneMatch_ = entityTag
  7807. return c
  7808. }
  7809. // Context sets the context to be used in this call's Do method. Any
  7810. // pending HTTP request will be aborted if the provided context is
  7811. // canceled.
  7812. func (c *PresentationsPagesGetThumbnailCall) Context(ctx context.Context) *PresentationsPagesGetThumbnailCall {
  7813. c.ctx_ = ctx
  7814. return c
  7815. }
  7816. // Header returns an http.Header that can be modified by the caller to
  7817. // add HTTP headers to the request.
  7818. func (c *PresentationsPagesGetThumbnailCall) Header() http.Header {
  7819. if c.header_ == nil {
  7820. c.header_ = make(http.Header)
  7821. }
  7822. return c.header_
  7823. }
  7824. func (c *PresentationsPagesGetThumbnailCall) doRequest(alt string) (*http.Response, error) {
  7825. reqHeaders := make(http.Header)
  7826. for k, v := range c.header_ {
  7827. reqHeaders[k] = v
  7828. }
  7829. reqHeaders.Set("User-Agent", c.s.userAgent())
  7830. if c.ifNoneMatch_ != "" {
  7831. reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7832. }
  7833. var body io.Reader = nil
  7834. c.urlParams_.Set("alt", alt)
  7835. c.urlParams_.Set("prettyPrint", "false")
  7836. urls := googleapi.ResolveRelative(c.s.BasePath, "v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail")
  7837. urls += "?" + c.urlParams_.Encode()
  7838. req, err := http.NewRequest("GET", urls, body)
  7839. if err != nil {
  7840. return nil, err
  7841. }
  7842. req.Header = reqHeaders
  7843. googleapi.Expand(req.URL, map[string]string{
  7844. "presentationId": c.presentationId,
  7845. "pageObjectId": c.pageObjectId,
  7846. })
  7847. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7848. }
  7849. // Do executes the "slides.presentations.pages.getThumbnail" call.
  7850. // Exactly one of *Thumbnail or error will be non-nil. Any non-2xx
  7851. // status code is an error. Response headers are in either
  7852. // *Thumbnail.ServerResponse.Header or (if a response was returned at
  7853. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  7854. // to check whether the returned error was because
  7855. // http.StatusNotModified was returned.
  7856. func (c *PresentationsPagesGetThumbnailCall) Do(opts ...googleapi.CallOption) (*Thumbnail, error) {
  7857. gensupport.SetOptions(c.urlParams_, opts...)
  7858. res, err := c.doRequest("json")
  7859. if res != nil && res.StatusCode == http.StatusNotModified {
  7860. if res.Body != nil {
  7861. res.Body.Close()
  7862. }
  7863. return nil, &googleapi.Error{
  7864. Code: res.StatusCode,
  7865. Header: res.Header,
  7866. }
  7867. }
  7868. if err != nil {
  7869. return nil, err
  7870. }
  7871. defer googleapi.CloseBody(res)
  7872. if err := googleapi.CheckResponse(res); err != nil {
  7873. return nil, err
  7874. }
  7875. ret := &Thumbnail{
  7876. ServerResponse: googleapi.ServerResponse{
  7877. Header: res.Header,
  7878. HTTPStatusCode: res.StatusCode,
  7879. },
  7880. }
  7881. target := &ret
  7882. if err := gensupport.DecodeResponse(target, res); err != nil {
  7883. return nil, err
  7884. }
  7885. return ret, nil
  7886. // {
  7887. // "description": "Generates a thumbnail of the latest version of the specified page in the\npresentation and returns a URL to the thumbnail image.\n\nThis request counts as an [expensive read request](/slides/limits) for\nquota purposes.",
  7888. // "flatPath": "v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail",
  7889. // "httpMethod": "GET",
  7890. // "id": "slides.presentations.pages.getThumbnail",
  7891. // "parameterOrder": [
  7892. // "presentationId",
  7893. // "pageObjectId"
  7894. // ],
  7895. // "parameters": {
  7896. // "pageObjectId": {
  7897. // "description": "The object ID of the page whose thumbnail to retrieve.",
  7898. // "location": "path",
  7899. // "required": true,
  7900. // "type": "string"
  7901. // },
  7902. // "presentationId": {
  7903. // "description": "The ID of the presentation to retrieve.",
  7904. // "location": "path",
  7905. // "required": true,
  7906. // "type": "string"
  7907. // },
  7908. // "thumbnailProperties.mimeType": {
  7909. // "description": "The optional mime type of the thumbnail image.\n\nIf you don't specify the mime type, the default mime type will be PNG.",
  7910. // "enum": [
  7911. // "PNG"
  7912. // ],
  7913. // "location": "query",
  7914. // "type": "string"
  7915. // },
  7916. // "thumbnailProperties.thumbnailSize": {
  7917. // "description": "The optional thumbnail image size.\n\nIf you don't specify the size, the server chooses a default size of the\nimage.",
  7918. // "enum": [
  7919. // "THUMBNAIL_SIZE_UNSPECIFIED",
  7920. // "LARGE",
  7921. // "MEDIUM",
  7922. // "SMALL"
  7923. // ],
  7924. // "location": "query",
  7925. // "type": "string"
  7926. // }
  7927. // },
  7928. // "path": "v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail",
  7929. // "response": {
  7930. // "$ref": "Thumbnail"
  7931. // },
  7932. // "scopes": [
  7933. // "https://www.googleapis.com/auth/drive",
  7934. // "https://www.googleapis.com/auth/drive.file",
  7935. // "https://www.googleapis.com/auth/drive.readonly",
  7936. // "https://www.googleapis.com/auth/presentations",
  7937. // "https://www.googleapis.com/auth/presentations.readonly"
  7938. // ]
  7939. // }
  7940. }